pub trait Block:
Heightable
+ Codec
+ Digestible
+ Send
+ Sync
+ 'static {
// Required method
fn parent(&self) -> Self::Digest;
}Expand description
Block is the interface for a block in the blockchain.
Blocks must use a canonical encoding: every byte sequence bytes accepted by the decoder
must satisfy encode(decode(bytes)) == bytes. Decoders must reject alternate encodings of
the same block.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".