Skip to main content

verify_complete_burn_history

Function verify_complete_burn_history 

Source
pub fn verify_complete_burn_history(
    request: &PromotionRequest,
    bytes: &[u8],
    selected_receipt: &[u8],
) -> PromotionResult<CoordinationChain>
Expand description

Verifies a complete, bounded, canonical JSONL history from sequence zero.

The expected byte count and digest must come from the separately sealed history-snapshot manifest. Every record is reserialized and rehashed; the chain rejects gaps, forks represented by a wrong predecessor, and global replay of run IDs, intent digests, or grant triples.

ยงErrors

Returns FailureCode::CoordinationChain for malformed or incomplete history and FailureCode::CoordinationReplay for a repeated identity.