[][src]Module types::test_utils

Structs

TestingAttestationBuilder

Builds an attestation to be used for testing purposes.

TestingAttestationDataBuilder

Builds an AttestationData to be used for testing purposes.

TestingAttesterSlashingBuilder

Builds an AttesterSlashing.

TestingBeaconBlockBuilder

Builds a beacon block to be used for testing purposes.

TestingBeaconStateBuilder

Builds a beacon state to be used for testing purposes.

TestingDepositBuilder

Builds an deposit to be used for testing purposes.

TestingPendingAttestationBuilder

Builds an AttesterSlashing to be used for testing purposes.

TestingProposerSlashingBuilder

Builds a ProposerSlashing.

TestingTransferBuilder

Builds a transfer to be used for testing purposes.

TestingVoluntaryExitBuilder

Builds an exit to be used for testing purposes.

XorShiftRng

An Xorshift random number generator.

Enums

AttestationTestTask

Enum used for passing test options to builder

AttesterSlashingTestTask

Enum used for passing test options to builder

DepositTestTask

Enum used for passing test options to builder

ExitTestTask

Enum used for passing test options to builder

ProposerSlashingTestTask

Enum used for passing test options to builder

Constants

KEYPAIRS_FILE

Traits

KeypairsFile

Defines a trait that allows reading/writing a vec of Keypair from/to a file.

RngCore

The core of a random number generator.

SeedableRng

A random number generator that can be explicitly seeded.

TestRandom

Functions

generate_deterministic_keypair

Generates a single deterministic keypair, where the secret key is validator_index.

generate_deterministic_keypairs

Generates validator_count keypairs where the secret key is derived solely from the index of the validator.

keypairs_path

Returns the directory where the generated keypairs should be stored.

load_keypairs_from_yaml

Loads a list of keypairs from file.