Skip to main content

redaction_preserves_root

Function redaction_preserves_root 

Source
pub fn redaction_preserves_root(leaf_tags: &[u64], original_root: u64) -> bool
Expand description

Verifiable redaction: a redacted blob hides content while preserving the signature/binding. Each leaf is committed by its hash in a Merkle root; redacting a leaf replaces its content with its hash tag — the leaf tags (redacted or not) still recompute the original root. Returns true iff the (possibly-redacted) leaf_tags still hash to original_root.