Skip to main content

EMPTY_ROOT

Constant EMPTY_ROOT 

Source
pub const EMPTY_ROOT: Bytes32;
Expand description

Digest of the empty byte string, i.e. SHA-256 of "".

Used wherever an “empty” Merkle accumulator or trie root must be represented canonically (for example pre-DFSP roots and empty subtrees). The value is fixed by the protocol; clients must not substitute ZERO_HASH for this purpose.

Proof obligation: tests/test_protocol_constants.rs compares this constant to chia_sha2::Sha256 of the empty input so we satisfy BLK-005 without recomputing at runtime in production code.