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

# Functions

AddInMixin describes a method from which a length mixin is added to the provided root.
BlockHeaderRoot computes the HashTreeRoot Merkleization of a BeaconBlockHeader struct according to the Ethereum Simple Serialize specification.
Eth1DataRootWithHasher returns the hash tree root of input `eth1Data`.
Eth1DatasRoot returns the hash tree root of input `eth1Datas`.
Eth1DataVotesRoot computes the HashTreeRoot Merkleization of a list of Eth1Data structs according to the eth2 Simple Serialize specification.
Eth1Root computes the HashTreeRoot Merkleization of a BeaconBlockHeader struct according to the eth2 Simple Serialize specification.
Merkleize 32-byte leaves into a Merkle trie for its adequate depth, returning the resulting layers of the trie based on the appropriate depth.
MerkleizeTrieLeaves merkleize the trie leaves.
NewRef initializes the Reference struct.
NewValMapHandler returns a new validator map handler.
NewValMultiValueSliceReader constructs a new val reader object.
NewValSliceReader constructs a ValSliceReader object.
OptimizedValidatorRoots uses an optimized routine with gohashtree in order to derive a list of validator roots from a list of validator objects.
PackUint64IntoChunks packs a list of uint64 values into 32 byte roots.
ParticipationBitsRoot computes the HashTreeRoot merkleization of participation roots.
PendingAttRootWithHasher describes a method from which the hash tree root of a pending attestation is returned.
RecomputeFromLayer recomputes specific branches of a fixed sized trie depending on the provided changed indexes.
RecomputeFromLayerVariable recomputes specific branches of a variable sized trie depending on the provided changed indexes.
ReturnTrieLayer returns the representation of a merkle trie when provided with the elements of a fixed sized trie and the corresponding depth of it.
ReturnTrieLayerVariable returns the representation of a merkle trie when provided with the elements of a variable sized trie and the corresponding depth of it.
RootsArrayHashTreeRoot computes the Merkle root of arrays of 32-byte hashes, such as [64][32]byte according to the Simple Serialize specification of Ethereum.
SyncCommitteeRoot computes the HashTreeRoot Merkleization of a committee root.
Uint64ListRootWithRegistryLimit computes the HashTreeRoot Merkleization of a list of uint64 and mixed with registry limit.
UnrealizedCheckpointBalances returns the total current active balance, the total previous epoch correctly attested for target balance, and the total current epoch correctly attested for target balance.
ValidatorFieldRoots describes a method from which the hash tree root of a validator is returned.
ValidatorLimitForBalancesChunks returns the limit of validators after going through the chunking process.
ValidatorRegistryRoot computes the HashTreeRoot Merkleization of a list of validator structs according to the Ethereum Simple Serialize specification.
ValidatorRootWithHasher describes a method from which the hash tree root of a validator is returned.

# Structs

Reference structs are shared across BeaconState copies to understand when the state must use copy-on-write for shared fields or may modify a field in place when it holds the only reference to the field value.
ValidatorMapHandler is a container to hold the map and a reference tracker for how many states shared this.
ValMultiValueSliceReader describes a struct that conforms to the ValReader interface.
ValSliceReader describes a struct that conforms to the ValReader interface.

# Interfaces

ValReader specifies an interface through which we can access the validator registry.