Documentation ¶
Index ¶
- type Flag
- type Node
- func (n *Node) BranchLen() int
- func (n *Node) FirstSubNodeHashInBranch() (*crypto.HashType, int)
- func (n *Node) FromProtoMessage(msg proto.Message) error
- func (n *Node) Marshal() (data []byte, err error)
- func (n *Node) ToProtoMessage() (proto.Message, error)
- func (n *Node) Type() Flag
- func (n *Node) Unmarshal(data []byte) error
- type Trie
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
Node in trie. Branch [hash_0, hash_1, ..., hash_f] Extension [path, next hash] Leaf [path, value, terminator]
func (*Node) FirstSubNodeHashInBranch ¶
FirstSubNodeHashInBranch returns the first sub node hash in branch node.
func (*Node) FromProtoMessage ¶
FromProtoMessage converts proto message to node.
func (*Node) ToProtoMessage ¶
ToProtoMessage converts node to proto message.
Click to show internal directories.
Click to hide internal directories.