Module chain_impl_mockchain::block
source · Expand description
Representation of the block in the mockchain.
Re-exports
pub use crate::fragment::BlockContentHash;
pub use crate::fragment::BlockContentSize;
pub use crate::fragment::Contents;
pub use crate::fragment::ContentsBuilder;
pub use crate::header::BftProof;
pub use crate::header::BftSignature;
pub use crate::header::Common;
pub use crate::header::GenesisPraosProof;
pub use crate::header::Header;
pub use crate::header::HeaderId;
pub use crate::header::KesSignature;
pub use crate::header::Proof;
pub use crate::header::BlockVersion;
pub use crate::header::ChainLength;
Modules
Structs
Block
is an element of the blockchain it contains multiple transaction and a reference to the parent block. Alongside with the position of that block in the chain.- Non unique identifier of the transaction position in the blockchain. There may be many transactions related to the same
SlotId
.
Enums
Functions
- Create a block from a block version, content and a header builder closure