[][src]Trait tendermint::lite::types::Header

pub trait Header: Debug {
    type Time: Into<SystemTime>;
    fn height(&self) -> Height;
fn bft_time(&self) -> Self::Time;
fn validators_hash(&self) -> Hash;
fn next_validators_hash(&self) -> Hash;
fn hash(&self) -> Hash; }

Header contains meta data about the block - the height, the time, the hash of the validator set that should sign this header, and the hash of the validator set that should sign the next header.

Associated Types

type Time: Into<SystemTime>

The header's notion of (bft-)time. We assume it can be converted to SystemTime.

Loading content...

Required methods

fn height(&self) -> Height

fn bft_time(&self) -> Self::Time

fn validators_hash(&self) -> Hash

fn next_validators_hash(&self) -> Hash

fn hash(&self) -> Hash

Hash of the header (ie. the hash of the block).

Loading content...

Implementors

impl Header for Header[src]

type Time = Time

Loading content...