drafts

package
v0.0.0-...-05bc493 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallRequestRecord

type CallRequestRecord struct {
	PayloadTypeAndFlags uint32
	// SmallPayload
	// FullPayload
	OutgoingReq DropEntry // compacted version that doesn't include calculable fields
}

type CustomCryptographyItem

type CustomCryptographyItem []byte

type CustomCryptographySectionEntry

type CustomCryptographySectionEntry struct {
	// contains filtered or unexported fields
}

type DropEntry

type DropEntry struct {
	RegistrantSign longbits.Bits512 // byteSize=64,  sign of DropEntryRegistration

	RegistryRecord DropEntryRegistration // byteSize=132
	RecordBody     DropRecordBody        // byteSize=128
	RecordPayload  DropRecordPayload
}

type DropEntryLocator

type DropEntryLocator uint32

type DropEntryRegistration

type DropEntryRegistration struct {
	EntryTypeAndFlags DropEntryType

	EntryLocator DropEntryLocator // PrimarySection indicator
	EntryHash    longbits.Bits224 // hash of DropRecordBody

	PredecessorRef ShortRef

	ProducerSign longbits.Bits512 // sign of EntryHash + pulse + ?
}

type DropEntryType

type DropEntryType uint32

type DropRecordBody

type DropRecordBody struct {
	RecordTypeAndFlags  DropEntryType // DelegationFlag, PayloadIsHash
	PayloadTypeAndFlags uint32

	ProducerNodeHash   longbits.Bits224 // hash part of NodeRef
	RegistrantNodeHash longbits.Bits224 // hash part of NodeRef - optional, depends on Flags

	LifelineRef []ShortRef // 0, 1 or 2 - depends on Flags

	//	PayloadHash        longbits.Bits256 // optional - depends on Flags
	SmallPayload []byte //0-256-512, hash-or-content - depends on Flags
}

type DropRecordPayload

type DropRecordPayload struct {
	DelegationTokens []byte

	CustomPayload []byte
}

type FullRef

type FullRef [2]ShortRef

type ShortRef

type ShortRef longbits.Bits256

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL