pub trait BlockLike {
    fn hash(&self) -> H256;
fn raw_hash(&self) -> H256;
fn parent_hash(&self) -> H256;
fn difficulty(&self) -> U256; }
Expand description

Something which can produce a hash and a parent hash.

Required methods

Get the hash of this item - i.e. the header hash.

Get a raw hash of this item - i.e. the hash of the RLP representation.

Get the hash of this item’s parent.

Get the difficulty of this item.

Implementations on Foreign Types

Implementors