pub trait HeaderChain<C: Chain> {
    // Required method
    fn finalized_header_state_root(header_hash: HashOf<C>) -> Option<HashOf<C>>;

    // Provided method
    fn verify_storage_proof(
        header_hash: HashOf<C>,
        storage_proof: RawStorageProof
    ) -> Result<StorageProofChecker<HasherOf<C>>, HeaderChainError> { ... }
}
Expand description

Substrate header chain, abstracted from the way it is stored.

Required Methods§

source

fn finalized_header_state_root(header_hash: HashOf<C>) -> Option<HashOf<C>>

Returns state (storage) root of given finalized header.

Provided Methods§

source

fn verify_storage_proof( header_hash: HashOf<C>, storage_proof: RawStorageProof ) -> Result<StorageProofChecker<HasherOf<C>>, HeaderChainError>

Get storage proof checker using finalized header.

Object Safety§

This trait is not object safe.

Implementors§