[−][src]Trait blockchain_core::Block
A block contains a hash, and reference a parent block via parent hash.
Associated Types
type Identifier: Clone + Eq + Hash
Hash type of the block.
Required methods
fn id(&self) -> Self::Identifier
Get the block hash.
fn parent_id(&self) -> Option<Self::Identifier>
Get the parent block hash. None if this block is genesis.