[−][src]Trait blockchain::Block
A block contains a hash, and reference a parent block via parent hash.
Associated Types
type Identifier: Eq + Clone + 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.