Skip to main content

compute_audit_digest

Function compute_audit_digest 

Source
pub fn compute_audit_digest(
    nonce: &[u8; 32],
    challenged_peer_id: &[u8; 32],
    key: &XorName,
    record_bytes: &[u8],
) -> [u8; 32]
Expand description

Compute AuditKeyDigest(K_i) = BLAKE3(nonce || challenged_peer_id || K_i || record_bytes_i).

This is the existing digest construction used by the core responsible-chunk, post-replication possession, and prune-confirmation audit lanes. The subtree slice audit has its own proof-specific keyed construction in slice.rs.