[][src]Trait tendermint_light_client::operations::hasher::Hasher

pub trait Hasher: Send + Sync {
    pub fn hash_header(&self, header: &Header) -> Hash;
pub fn hash_validator_set(&self, validator_set: &ValidatorSet) -> Hash; }

Hashing for headers and validator sets

Required methods

pub fn hash_header(&self, header: &Header) -> Hash[src]

Hash the given header

pub fn hash_validator_set(&self, validator_set: &ValidatorSet) -> Hash[src]

Hash the given validator set

Loading content...

Implementors

impl Hasher for ProdHasher[src]

pub fn hash_validator_set(&self, validator_set: &ValidatorSet) -> Hash[src]

Compute the Merkle root of the validator set

Loading content...