Skip to main content

digest_payload

Function digest_payload 

Source
pub fn digest_payload(payload: &[u8]) -> [u8; 32]
Expand description

Domain-separated digest for raw payload bytes. This helper allocates no memory; callers must hash the exact immutable payload that the envelope references, and the evidence policy must bind that digest to its record.