Struct libblockchain::Block
[−]
[src]
pub struct Block { /* fields omitted */ }
Block of the chain.
Methods
impl Block
[src]
fn new(revision: u64, payload: Vec<u8>, previous_digest: u64) -> Block
fn has_trusty_digest(&self) -> bool
Returns true if the given block has trusty digest.
fn next(&self, payload: Vec<u8>) -> Block
Build the next block of the chain.