Skip to main content

ChainState

Trait ChainState 

Source
pub trait ChainState {
    // Required methods
    fn height(&self) -> u64;
    fn block_hash(&self) -> BlockHash;
    fn mmr_root(&self) -> Hash;
    fn event_count(&self) -> u64;
}
Expand description

Trait for chain state that can be verified.

Required Methods§

Source

fn height(&self) -> u64

Get the current height.

Source

fn block_hash(&self) -> BlockHash

Get the current block hash.

Source

fn mmr_root(&self) -> Hash

Get the MMR root.

Source

fn event_count(&self) -> u64

Get total event count.

Implementors§