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

# Packages

# Functions

BitlistRoot returns the mix in length of a bitwise Merkleized bitfield.
BitwiseMerkleize - given ordered BYTES_PER_CHUNK-byte chunks, if necessary utilize zero chunks so that the number of chunks is a power of two, Merkleize the chunks, and return the root.
ByteArrayRootWithLimit computes the HashTreeRoot Merkleization of a list of [32]byte roots according to the Ethereum Simple Serialize specification.
ByteSliceRoot is a helper func to merkleize an arbitrary List[Byte, N] this func runs Chunkify + MerkleizeVector max length is dividable by 32 ( root length ).
CheckpointRoot computes the HashTreeRoot Merkleization of a InitWithReset struct value according to the Ethereum Simple Serialize specification.
DepositRequestsSliceRoot computes the HTR of a slice of deposit requests.
Depth retrieves the appropriate depth for the provided trie size.
ForkRoot computes the HashTreeRoot Merkleization of a Fork struct value according to the Ethereum Simple Serialize specification.
Merkleize with log(N) space allocation.
MerkleizeByteSliceSSZ hashes a byteslice by chunkifying it and returning the corresponding HTR as if it were a fixed vector of bytes of the given length.
MerkleizeListSSZ hashes each element in the list and then returns the HTR of the list of corresponding roots, with the length mixed in.
MerkleizeVector uses our optimized routine to hash a list of 32-byte elements.
MerkleizeVectorSSZ hashes each element in the list and then returns the HTR of the corresponding list of roots.
MixInLength appends hash length to root.
NewHasherFunc is the constructor for the object that fulfills the Hasher interface.
PackByChunk a given byte array's final chunk with zeroes if needed.
SlashingsRoot computes the HashTreeRoot Merkleization of a list of uint64 slashing values according to the Ethereum Simple Serialize specification.
SliceRoot computes the root of a slice of hashable objects.
TransactionsRoot computes the HTR for the Transactions' property of the ExecutionPayload The code was largely copy/pasted from the code generated to compute the HTR of the entire ExecutionPayload.
Uint64Root computes the HashTreeRoot Merkleization of a simple uint64 value according to the Ethereum Simple Serialize specification.
WithdrawalRequestsSliceRoot computes the HTR of a slice of withdrawal requests from the EL.
WithdrawalSliceRoot computes the HTR of a slice of withdrawals.

# Structs

HasherFunc defines a structure to hold a hash function and can be used for multiple rounds of hashing.

# Interfaces

Hashable is an interface representing objects that implement HashTreeRoot().
Hasher describes an interface through which we can perform hash operations on byte arrays,indices,etc.

# Type aliases

HashFn is the generic hash function signature.