Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FullNode ¶
type FullNode struct { Children [257]Node // contains filtered or unexported fields }
func (*FullNode) CachedHash ¶
func (*FullNode) Save ¶
func (fn *FullNode) Save(store storage.StorageAdapter)
type HashNode ¶
type HashNode []byte
func (*HashNode) CachedHash ¶
func (*HashNode) Save ¶
func (hn *HashNode) Save(store storage.StorageAdapter)
type Node ¶
type Node interface { Hash() []byte CachedHash() []byte Serialize() []byte Save(storage.StorageAdapter) }
func DeserializeNode ¶
type PersistNodeBase ¶
type PersistNodeBase struct { Full *PersistNodeFull `cbor:"10,keyasint,omitempty"` Short *PersistNodeShort `cbor:"11,keyasint,omitempty"` Value *PersistNodeValue `cbor:"12,keyasint,omitempty"` }
type PersistNodeFull ¶
type PersistNodeFull struct { Children [][]byte // contains filtered or unexported fields }
type PersistNodeShort ¶
type PersistNodeValue ¶
type PersistNodeValue []byte
type PersistTrie ¶
type PersistTrie struct { Pairs []*PersistTriePair // contains filtered or unexported fields }
type PersistTriePair ¶
type ShortNode ¶
func (*ShortNode) CachedHash ¶
func (*ShortNode) Save ¶
func (sn *ShortNode) Save(store storage.StorageAdapter)
type Trie ¶
type Trie struct {
// contains filtered or unexported fields
}
func (*Trie) Deserialize ¶
type ValueNode ¶
type ValueNode struct { Value []byte // contains filtered or unexported fields }
func (*ValueNode) CachedHash ¶
func (*ValueNode) Save ¶
func (vn *ValueNode) Save(store storage.StorageAdapter)
Click to show internal directories.
Click to hide internal directories.