Trait subxt::config::Header

source ·
pub trait Header: Sized + Encode {
    type Number: Into<u64>;
    type Hasher: Hasher;

    fn number(&self) -> Self::Number;

    fn hash(&self) -> <Self::Hasher as Hasher>::Output { ... }
}
Expand description

This represents the block header type used by a node.

Required Associated Types§

The block number type for this header.

The hasher used to hash this header.

Required Methods§

Return the block number of this header.

Provided Methods§

Hash this header.

Implementors§