# Packages
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
BazelDirectoryNonEmpty returns true if directory exists and is not empty.
BazelFileBytes returns the byte array of the bazel file path given.
BlockSignature calculates the post-state root of the block and returns the signature.
DefaultBlockGenConfig returns the block config that utilizes the current params in the beacon config.
DepositsWithBalance generates N amount of deposits with the balances taken from the passed in balances array.
DepositTrieFromDeposits takes an array of deposits and returns the deposit trie.
DepositTrieSubset takes in a full tree and the desired size and returns a subset of the deposit trie.
DeterministicDepositsAndKeys returns the entered amount of deposits and secret keys.
DeterministicDepositsAndKeysSameValidator returns the entered amount of deposits and secret keys of the same validator.
DeterministicDepositTrie returns a merkle trie of the requested size from the deterministic deposits.
DeterministicEth1Data takes an array of deposits and returns the eth1Data made from the deposit trie.
DeterministicGenesisState returns a genesis state made using the deterministic deposits.
FillRootsNaturalOpt is meant to be used as an option when calling NewBeaconState.
GenerateAttestations creates attestations that are entirely valid, for all the committees of the current state slot.
GenerateAttesterSlashingForValidator for a specific validator index.
GenerateFullBlock generates a fully valid block with the requested parameters.
GenerateProposerSlashingForValidator for a specific validator index.
HydrateAttestation hydrates an attestation object with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateAttestationData hydrates an attestation data object with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBeaconBlock hydrates a beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBeaconBlockBody hydrates a beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBeaconHeader hydrates a beacon block header with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateIndexedAttestation hydrates an indexed attestation with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateSignedBeaconBlock hydrates a signed beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateSignedBeaconHeader hydrates a signed beacon block header with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV1BeaconBlock hydrates a beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV1BeaconBlockBody hydrates a beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV1SignedBeaconBlock hydrates a signed beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
NewAttestation creates an attestation block with minimum marshalable fields.
NewBeaconBlock creates a beacon block with minimum marshalable fields.
NewBeaconState creates a beacon state with minimum marshalable fields.
RandaoReveal returns a signature of the requested epoch using the beacon proposer private key.
Random32Bytes generates a random 32 byte slice.
WaitTimeout will wait for a WaitGroup to resolve within a timeout interval.
# Structs
BlockGenConfig is used to define the requested conditions for block generation.