[−][src]Crate beacon
Minimal beacon chain state transition implementation for Serenity.
Structs
Attestation | Attestation. |
AttestationData | Attestation data. |
AttestationDataAndCustodyBit | Attestation data with custody bit. |
AttesterSlashing | Block attester slashing. |
BeaconBlock | Beacon block. |
BeaconBlockBody | Beacon block body. |
BeaconBlockHeader | Beacon block header. |
BeaconState | Beacon state. |
BitField | Variable length bitfield. |
Crosslink | Crosslink. |
Deposit | Block deposit. |
DepositData | Deposit data. |
DepositInput | Deposit input. |
Eth1Data | Eth1 data. |
Eth1DataVote | Vote for eth1 data. |
Executive | Beacon state executive. |
Fork | Fork information. |
H32 | Fixed 384-bit hash. |
H256 | Fixed-size uninterpreted hash type with 32 bytes (256 bits) size. |
H384 | Fixed 384-bit hash. |
H768 | Fixed 768-bit hash. |
HistoricalBatch | Historical batch information. |
KeccakHasher | Keccak256 hasher. |
MerkleProof | Merkle proof. |
NoVerificationConfig | Config that does not verify BLS signature. |
PendingAttestation | Pending attestation. |
ProposerSlashing | Block proposer slashing. |
SlashableAttestation | Slashable attestation. |
Transfer | Block transfer. |
Validator | Validator record. |
VoluntaryExit | Block voluntary exit. |
Enums
Error | Error type for beacon chain. |
Traits
Config | Constants used in beacon block. |
Functions
execute_block | Given a block, execute based on a parent state. |
genesis | Generate genesis state and genesis block from given deposits, timestamp and eth1 data. |
genesis_state | Generate genesis state from given deposits, timestamp, and eth1 data. |
Type Definitions
Epoch | Epoch type. |
Gwei | Gwei as in the currency ETH. |
Shard | Shard type. |
Signature | BLS 768-bit signature. |
Slot | Slot type. |
Timestamp | Timestamp type. |
ValidatorId | BLS 384-bit public key. |
ValidatorIndex | Index type for validators. |
Version | Beacon fork version. |