[][src]Crate store

Storage functionality for Lighthouse.

Provides the following stores:

Provides a simple API for storing/retrieving all types that sometimes needs type-hints. See tests for implementation examples.

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
iter
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
typenum

This crate provides type-level numbers evaluated at compile time. It depends only on libcore.

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.

DiskStore

A wrapped leveldb database.

FixedVector

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

Keypair
MemoryStore

A thread-safe HashMap wrapper.

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.

Enums

DBColumn

A unique column identifier.

Error

Traits

Store

An object capable of storing and retrieving objects implementing StoreItem.

StoreItem

An item that may be stored in a Store.

Functions

scrape_for_metrics

Updates the global metrics registry with store-related information.

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