package
0.0.0-20230816035547-f94ef0f6cb83
Repository: https://github.com/digitallabs-web3/neo-go-evm.git
Documentation: pkg.go.dev

# Functions

DecodeNodeWithType decodes node together with it's type.
GetChildrenPaths returns a set of paths to node's children who are non-empty HashNodes based on the node's path.
No description provided by the author
MapToMPTBatch makes a Batch from unordered set of storage changes.
NewBillet returns new billet for MPT trie restoring.
NewBranchNode returns new branch node.
NewExtensionNode returns hash node with the specified key and next node.
NewHashNode returns hash node with the specified hash.
NewLeafNode returns hash node with the specified value.
NewTrie returns new MPT trie.
VerifyProof verifies that path indeed belongs to a MPT with the specified root hash.

# Constants

Node types definitions.
Node types definitions.
Node types definitions.
Node types definitions.
Node types definitions.
MaxKeyLength is the max length of the key to put in trie before transforming to nibbles.
MaxValueLength is a max length of a leaf node value.
ModeAll is used to store everything.
ModeGC is used to store a set of roots with GC possible, it combines GCFlag and Latest (because it needs RC, but it has GC enabled).
ModeGCFlag is a flag for GC.
ModeLatest is used to only store the latest root.

# Variables

ErrNotFound is returned when requested trie item is missing.
ErrRestoreFailed is returned when replacing HashNode by its "unhashed" candidate fails.

# Structs

BaseNode implements basic things every node needs like caching hash and serialized representation.
Batch is batch of storage changes.
Billet is a part of MPT trie with missing hash nodes that need to be restored.
BranchNode represents MPT's branch node.
EmptyNode represents empty node.
ExtensionNode represents MPT's extension node.
HashNode represents MPT's hash node.
LeafNode represents MPT's leaf node.
NodeObject represents Node together with it's type.
Trie is an MPT trie storing all key-value pairs.

# Interfaces

BaseNodeIface abstracts away basic Node functions.
Node represents common interface of all MPT nodes.

# Type aliases

NodeType represents node type..
TrieMode is the storage mode of trie, it affects the DB scheme.