[][src]Trait hycon_rust::traits::BlockHeader

pub trait BlockHeader {
    fn get_merkle_root(&self) -> &Vec<u8>;
fn get_time_stamp(&self) -> u64;
fn get_difficulty(&self) -> f64;
fn get_state_root(&self) -> &Vec<u8>;
fn get_previous_hash(&self) -> Option<&Vec<Vec<u8>>>;
fn get_nonce(&self) -> Option<u64>;
fn get_miner(&self) -> Option<&Address>; }

Defines a BlockHeader

Required methods

fn get_merkle_root(&self) -> &Vec<u8>

Retrieves the Merkle Root from the Header

fn get_time_stamp(&self) -> u64

Retrieves the TimeStamp from the Header

fn get_difficulty(&self) -> f64

Retrieves the Difficulty parameter from the Header

fn get_state_root(&self) -> &Vec<u8>

Retrieves the State Root from the Header

fn get_previous_hash(&self) -> Option<&Vec<Vec<u8>>>

Retrieves the previous hashes from the Header

fn get_nonce(&self) -> Option<u64>

Retrieves the nonce from the Header

fn get_miner(&self) -> Option<&Address>

Retrieves the address of the miner

Loading content...

Implementors

impl BlockHeader for GenesisHeader[src]

impl BlockHeader for Header[src]

Loading content...