package
3.2.3-rc.0
Repository: https://github.com/prysmaticlabs/prysm.git
Documentation: pkg.go.dev

# Functions

BazelDirectoryNonEmpty returns true if directory exists and is not empty.
BazelFileBytes returns the byte array of the bazel file path given.
BazelListDirectories lists all of the directories in the given directory.
BazelListFiles lists all of the file names in a given directory.
BlockSignature calculates the post-state root of the block and returns the signature.
BlockSignatureAltair calculates the post-state root of the block and returns the signature.
ConvertToCommittee takes a list of pubkeys and returns a SyncCommittee with these keys as members.
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.
DeterministicGenesisStateAltair returns a genesis state in hard fork 1 format made using the deterministic deposits.
DeterministicGenesisStateBellatrix returns a genesis state in Bellatrix format made using the deterministic deposits.
DeterministicGenesisStateCapella returns a genesis state in Capella format made using the deterministic deposits.
DeterministicGenesisStateWithGenesisBlock creates a genesis state, saves the genesis block, genesis state and head block root.
FillRootsNaturalOpt is meant to be used as an option when calling NewBeaconState.
FillRootsNaturalOptAltair is meant to be used as an option when calling NewBeaconStateAltair.
FillRootsNaturalOptBellatrix is meant to be used as an option when calling NewBeaconStateBellatrix.
FillRootsNaturalOptCapella is meant to be used as an option when calling NewBeaconStateCapella.
GenerateAttestations creates attestations that are entirely valid, for all the committees of the current state slot.
GenerateAttesterSlashingForValidator for a specific validator index.
GenerateBLSToExecutionChange generates a valid bls to exec changae for validator `val` and its private key `priv` with the given beacon state `st`.
GenerateFullBlock generates a fully valid block with the requested parameters.
GenerateFullBlockAltair generates a fully valid Altair block with the requested parameters.
No description provided by the author
No description provided by the author
GenerateProposerSlashingForValidator for a specific validator index.
No description provided by the author
GenesisBeaconState returns the genesis beacon state.
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.
HydrateBeaconBlockAltair hydrates a beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBeaconBlockBellatrix 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.
HydrateBeaconBlockBodyAltair hydrates a beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBeaconBlockBodyBellatrix hydrates a beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBeaconBlockBodyCapella hydrates a beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBeaconBlockCapella hydrates a beacon block 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.
HydrateBlindedBeaconBlockBellatrix hydrates a blinded beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBlindedBeaconBlockBodyBellatrix hydrates a blinded beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBlindedBeaconBlockBodyCapella hydrates a blinded beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBlindedBeaconBlockCapella hydrates a blinded beacon block 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.
HydrateSignedBeaconBlockAltair hydrates a signed beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateSignedBeaconBlockBellatrix hydrates a signed beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateSignedBeaconBlockCapella 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.
HydrateSignedBlindedBeaconBlockBellatrix hydrates a signed blinded beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateSignedBlindedBeaconBlockCapella hydrates a signed blinded beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateSyncCommittee hydrates the provided sync committee message.
HydrateV1Attestation hydrates a v1 attestation object with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV1AttestationData hydrates a v1 attestation data object 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.
HydrateV2AltairBeaconBlock hydrates a beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2AltairBeaconBlockBody hydrates a beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2AltairSignedBeaconBlock hydrates a signed beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2BellatrixBeaconBlock hydrates a beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2BellatrixBeaconBlockBody hydrates a beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2BellatrixSignedBeaconBlock hydrates a signed beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2BlindedBeaconBlockBellatrix hydrates a blinded beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2BlindedBeaconBlockBodyBellatrix hydrates a blinded beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2BlindedBeaconBlockBodyCapella hydrates a blinded beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2BlindedBeaconBlockCapella hydrates a blinded beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2SignedBlindedBeaconBlockBellatrix hydrates a signed blinded beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2SignedBlindedBeaconBlockCapella hydrates a signed blinded 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.
NewBeaconBlockAltair creates a beacon block with minimum marshalable fields.
NewBeaconBlockBellatrix creates a beacon block with minimum marshalable fields.
NewBeaconBlockCapella creates a beacon block with minimum marshalable fields.
NewBeaconState creates a beacon state with minimum marshalable fields.
NewBeaconStateAltair creates a beacon state with minimum marshalable fields.
NewBeaconStateBellatrix creates a beacon state with minimum marshalable fields.
NewBeaconStateCapella creates a beacon state with minimum marshalable fields.
NewBlindedBeaconBlockBellatrix creates a blinded beacon block with minimum marshalable fields.
NewBlindedBeaconBlockBellatrixV2 creates a blinded beacon block with minimum marshalable fields.
NewBlindedBeaconBlockCapella creates a blinded beacon block with minimum marshalable fields.
NewBlindedBeaconBlockCapellaV2 creates a blinded beacon block with minimum marshalable fields.
NewPreminedGenesis creates a genesis BeaconState at the given fork version, suitable for using as an e2e genesis.
PrepareRoots returns a list of roots with hex representations of natural numbers starting with 0.
RandaoReveal returns a signature of the requested epoch using the beacon proposer private key.
Random32Bytes generates a random 32 byte slice.
No description provided by the author
WaitTimeout will wait for a WaitGroup to resolve within a timeout interval.

# Structs

BlockGenConfig is used to define the requested conditions for block generation.

# Type aliases

No description provided by the author