package
5.2.0
Repository: https://github.com/prysmaticlabs/prysm.git
Documentation: pkg.go.dev

# Functions

DepositTreeFromSnapshotProto generates a deposit tree object from a provided snapshot.
New instantiates a new deposit cache.
NewDepositTree creates an empty deposit tree.

# Constants

DepositContractDepth is the maximum tree depth as defined by EIP-4881.

# Variables

ErrFinalizedNodeCannotPushLeaf may occur when attempting to push a leaf to a finalized node.
ErrInvalidDepositCount occurs when the value for mix in length is 0.
ErrInvalidIndex occurs when the index is less than the number of finalized deposits.
ErrInvalidSnapshotRoot occurs when the snapshot root does not match the calculated root.
ErrLeafNodeCannotPushLeaf may occur when attempting to push a leaf to a leaf node.
ErrTooManyDeposits occurs when the number of deposits exceeds the capacity of the tree.
ErrZeroDepth occurs when the value of depth is 0.
ErrZeroLevel occurs when the value of level is 0.

# Structs

Cache stores all in-memory deposit objects.
DepositTree is the Merkle tree representation of deposits.
DepositTreeSnapshot represents the data used to create a deposit tree given a snapshot.
FinalizedNode represents a finalized node and satisfies the MerkleTreeNode interface.
InnerNode represents an inner node with two children and satisfies the MerkleTreeNode interface.
LeafNode represents a leaf node holding a deposit and satisfies the MerkleTreeNode interface.
ZeroNode represents an empty node without a deposit and satisfies the MerkleTreeNode interface.

# Interfaces

MerkleTreeNode is the interface for a Merkle tree.
PendingDepositsFetcher specifically outlines a struct that can retrieve deposits which have not yet been included in the chain.