[][src]Crate types

Ethereum 2.0 types

Re-exports

pub use crate::attestation::Attestation;
pub use crate::attestation_data::AttestationData;
pub use crate::attestation_data_and_custody_bit::AttestationDataAndCustodyBit;
pub use crate::attestation_duty::AttestationDuty;
pub use crate::attester_slashing::AttesterSlashing;
pub use crate::beacon_block::BeaconBlock;
pub use crate::beacon_block_body::BeaconBlockBody;
pub use crate::beacon_block_header::BeaconBlockHeader;
pub use crate::beacon_state::Error as BeaconStateError;
pub use crate::beacon_state::*;
pub use crate::chain_spec::ChainSpec;
pub use crate::chain_spec::Domain;
pub use crate::checkpoint::Checkpoint;
pub use crate::compact_committee::CompactCommittee;
pub use crate::crosslink::Crosslink;
pub use crate::crosslink_committee::CrosslinkCommittee;
pub use crate::crosslink_committee::OwnedCrosslinkCommittee;
pub use crate::deposit::Deposit;
pub use crate::deposit::DEPOSIT_TREE_DEPTH;
pub use crate::deposit_data::DepositData;
pub use crate::eth1_data::Eth1Data;
pub use crate::fork::Fork;
pub use crate::free_attestation::FreeAttestation;
pub use crate::historical_batch::HistoricalBatch;
pub use crate::indexed_attestation::IndexedAttestation;
pub use crate::pending_attestation::PendingAttestation;
pub use crate::proposer_slashing::ProposerSlashing;
pub use crate::relative_epoch::Error as RelativeEpochError;
pub use crate::relative_epoch::RelativeEpoch;
pub use crate::slot_epoch::Epoch;
pub use crate::slot_epoch::Slot;
pub use crate::slot_height::SlotHeight;
pub use crate::transfer::Transfer;
pub use crate::validator::Validator;
pub use crate::voluntary_exit::VoluntaryExit;
pub use ssz_types::typenum;

Modules

attestation
attestation_data
attestation_data_and_custody_bit
attestation_duty
attester_slashing
beacon_block
beacon_block_body
beacon_block_header
beacon_state
chain_spec
checkpoint
compact_committee
crosslink
crosslink_committee
deposit
deposit_data
eth1_data
eth_spec
fork
free_attestation
historical_batch
indexed_attestation
pending_attestation
proposer_slashing
relative_epoch
slot_epoch

The Slot and Epoch types are defined as new types over u64 to enforce type-safety between the two types.

slot_epoch_macros
slot_height
test_utils
transfer
utils
validator
voluntary_exit

Macros

params_from_eth_spec

Macro to inherit some type values from another EthSpec.

Structs

AggregatePublicKey

A BLS aggregate public key.

AggregateSignature

A BLS aggregate signature.

FixedVector

Emulates a SSZ Vector (distinct from a Rust Vec).

Keypair
PublicKey

A single BLS signature.

PublicKeyBytes

Stores BLS_PUBLIC_KEY_BYTE_SIZE bytes which may or may not represent a valid BLS public key .

SecretKey

A single BLS signature.

Signature

A single BLS signature.

SignatureBytes

Stores BLS_SIG_BYTE_SIZE bytes which may or may not represent a valid BLS signature .

VariableList

Emulates a SSZ List.

Traits

Unsigned

The marker trait for compile time unsigned integers.

Type Definitions

Address
AttesterMap

Maps a (slot, shard_id) to attestation_indices.

BitList

A heap-allocated, ordered, variable-length collection of bool values, limited to N bits.

BitVector

A heap-allocated, ordered, fixed-length collection of bool values, with N bits.

Committee
CrosslinkCommittees
EthBalance
Hash256
ProposerMap

Maps a slot to a block proposer.

Shard