Module hotshot_types::traits::block_contents
source · Expand description
Abstraction over the contents of a block
This module provides the Transaction
, BlockPayload
, and BlockHeader
traits, which
describe the behaviors that a block is expected to have.
Structs§
- Information about builder fee for proposed block
Constants§
- The number of storage nodes to use when computing the genesis VID commitment.
Traits§
- Header of a block, which commits to a
BlockPayload
. - Abstraction over the full contents of a block
- Trait for structures that need to be unambiguously encoded as bytes.
- extra functions required on block to be usable by hotshot-testing
- Abstraction over any type of transaction. Used by
BlockPayload
.
Functions§
- Compute the VID payload commitment along with precompute data reducing time in VID Disperse
- Compute the VID payload commitment. TODO(Gus) delete this function?