Skip to main content

Module state

Module state 

Source
Expand description

σ — the v3 chain state.

σ is a CacheDirectory plus the validator set. Data blobs, image blobs, cnode blobs, and chain Instance blobs all live in the cache as Cap values, addressed by content hash.

The state root is the SSZ hash_tree_root of the cache’s blobs, each represented as a (blob_hash, cap_hash) leaf container.

Structs§

State
The chain’s σ-resident state.
StateLeaf
One state-root leaf: a (blob_hash, cap_hash) pair.

Functions§

state_root
State-root: SSZ hash_tree_root of the cache’s blobs.

Type Aliases§

ValidatorKey
PoA validator key (placeholder — 32-byte public key).