compute_canonical_hash

Function compute_canonical_hash 

Source
pub fn compute_canonical_hash<T: Serialize>(
    value: &T,
) -> Result<String, VerifyError>
Expand description

SHA-256 hex of JCS-canonical bytes of any serialisable value. Producer path only. FOOTGUN: verifiers MUST use canonical_hash_from_bytes - re-serializing a parsed struct drops fields the consumer’s proto doesn’t know about, breaking content-addressing across additive schema changes.