Documentation ¶
Index ¶
- Variables
- func Hash(node Node) []byte
- func IsEmptyNode(node Node) bool
- func Serialize(node Node) []byte
- type BranchNode
- func (b BranchNode) HasValue() bool
- func (b BranchNode) Hash() []byte
- func (b BranchNode) Raw() []interface{}
- func (b *BranchNode) RemoveBranch(nibble nibble.Nibble)
- func (b *BranchNode) RemoveValue()
- func (b BranchNode) Serialize() []byte
- func (b *BranchNode) SetBranch(nibble nibble.Nibble, node Node)
- func (b *BranchNode) SetValue(value []byte)
- type ExtensionNode
- type LeafNode
- type Node
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EmptyNodeRaw = []byte{} EmptyNodeHash, _ = hex.DecodeString("56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421") )
Functions ¶
func IsEmptyNode ¶
Types ¶
type BranchNode ¶
func NewBranchNode ¶
func NewBranchNode() *BranchNode
func (BranchNode) HasValue ¶
func (b BranchNode) HasValue() bool
func (BranchNode) Hash ¶
func (b BranchNode) Hash() []byte
func (BranchNode) Raw ¶
func (b BranchNode) Raw() []interface{}
func (*BranchNode) RemoveBranch ¶
func (b *BranchNode) RemoveBranch(nibble nibble.Nibble)
func (*BranchNode) RemoveValue ¶
func (b *BranchNode) RemoveValue()
func (BranchNode) Serialize ¶
func (b BranchNode) Serialize() []byte
func (*BranchNode) SetValue ¶
func (b *BranchNode) SetValue(value []byte)
type ExtensionNode ¶
func NewExtensionNode ¶
func NewExtensionNode(nibbles []nibble.Nibble, next Node) *ExtensionNode
func (ExtensionNode) Hash ¶
func (e ExtensionNode) Hash() []byte
func (ExtensionNode) Raw ¶
func (e ExtensionNode) Raw() []interface{}
func (ExtensionNode) Serialize ¶
func (e ExtensionNode) Serialize() []byte
type LeafNode ¶
func NewLeafNodeFromBytes ¶
func NewLeafNodeFromKeyValue ¶
func NewLeafNodeFromNibbles ¶
Click to show internal directories.
Click to hide internal directories.