Expand description
Fundamental type aliases, protocol version tags, and Chia type re-exports (BLK-006).
Requirement: BLK-006 / NORMATIVE § BLK-006 / SPEC §2.1.
§Usage
Downstream crates should import Cost, VERSION_V1, VERSION_V2, Bytes32, Signature,
and PublicKey from dig_block so DIG L2 code shares one type identity with validation and
builders in this crate (see crate::constants for limits that use Cost).
§Rationale
Costdocuments intent: au64in header or bundle context is CLVM cost, not an arbitrary scalar (fees, heights, timestamps remain plain integers per domain).- Re-exports keep dependency graphs shallow: consumers need not add direct
chia-protocol/chia-blsedges only to name hashes or BLS material aligned with blocks produced here.
§Decisions
- Version constants are
u16to match header wire format (BLK-007 auto-detection). Values1and2are stable protocol identifiers; changing them is a breaking network upgrade. - This module is declared before
crate::constantsincrateso limit constants can useCostandBytes32without circular imports.
Structs§
Constants§
- VERSION_
V1 - Protocol version for blocks strictly before DFSP activation height (SPEC §2.2 version semantics).
- VERSION_
V2 - Protocol version for blocks at or after DFSP activation height (SPEC §2.2 version semantics).