Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MerkleDB ¶
type MerkleDB interface { // Put a node and its subtree in the DB Put(slot uint64, node Node, fn HashFn) error // Get a node from the DB Get(gindex Gindex, key Root) (SlottedNode, error) // Has the node or not Has(gindex Gindex, key Root) (bool, error) // Delete the node at (gindex, key), does not remove any subtree Delete(gindex Gindex, key Root) error // Range retrieval of slotted values from the DB, between startSlot and endSlot, at the given gindex. // There may be multiple nodes per slot. Range(startSlot uint64, endSlot uint64, gindex Gindex) ([]SlottedNode, error) }
type SlottedNode ¶
type SlottedNode struct { Slot uint64 Node Node }
type VirtualNode ¶
type VirtualNode interface {
Node
Detach() error
}
func NewVirtualNode ¶
func NewVirtualNode(db MerkleDB, gindex Gindex, key Root, left Root, right Root) VirtualNode
Click to show internal directories.
Click to hide internal directories.