Expand description
This module includes several traits.
Few traits are re-exported from other crates, few are used as aliases and others are syntactic sugar.
Re-exports§
pub use crate::utilities::merkle_mountain_range::ProverMessageBuilder;
Traits§
- AsBlock
Builder - Trait for obtaining an advanced builder for
BlockView
. - AsHeader
Builder - Trait for obtaining an advanced builder for
HeaderView
. - AsTransaction
Builder - Trait for obtaining an advanced builder for
TransactionView
. - Build
Compact Block - Trait for building a compact block from a
BlockView
. - Builder
- Calc
Extra Hash - Trait for calculating the extra hash of a block.
- Difficulty
- Trait for calculating difficulty.
- Entity
- From
Slice Should BeOk - An alias of
from_slice(..)
to mark where we are really have confidence to do unwrap on the result offrom_slice(..)
. - Into
Block View - Trait for converting types into
BlockView
. - Into
Header View - Trait for converting types into
HeaderView
. - Into
Transaction View - Trait for converting types into
TransactionView
. - Into
Uncle Block View - Trait for converting types into
UncleBlockView
. - Pack
- A syntactic sugar to convert a rust type into binary data.
- PackVec
- A syntactic sugar to convert a vector of binary data into one binary data.
- Reader
- Reset
Block - Trait for resetting the header of a packed block.
- Should
BeOk - An alias of
unwrap()
to mark where we are really have confidence to do unwrap. - Unpack
- A syntactic sugar to convert binary data into rust types.