[−][src]Crate beacon
Ethereum 2.0 (Serenity) beacon chain state transition implementation.
Modules
| consts | Constants used in beacon chain. Non-configurable constants used throughout the specification. |
| primitives | Primitive types for integer and bytes. |
| types | Types for operations and blocks. |
| utils | Exported beacon chain utilities. |
Structs
| BLSNoVerification | Run bls without any verification. |
| BeaconState | Beacon state. |
| CommitteeAssignment | Committee assignment. |
| Inherent | Beacon block inherent. |
| MainnetConfig | Mainnet config. |
| MinimalConfig | Minimal config. |
Enums
| Error | Error type for beacon chain. |
| Transaction | Beacon block transaction. |
Traits
| BLSConfig | BLS operations |
| Config | Constants used in beacon block. |
Functions
| apply_inherent | Apply inherent to a block. |
| apply_transaction | Apply a transaction to the block. |
| execute_block | Given a block, execute based on a parent state. |
| finalize_block | Finalize an unsealed block. |
| genesis | Generate genesis state and genesis block from given deposits, timestamp and eth1 data. |
| genesis_beacon_state | Generate genesis state from given deposits, timestamp, and eth1 data. |
| genesis_domain | Get genesis domain. |
| initialize_block | Initialize a block, and apply inherents. |