Skip to main content

is_crypto_shredded

Function is_crypto_shredded 

Source
pub fn is_crypto_shredded(
    payload: &EncryptedCommonsPayload,
    credentials: &[ConsentCredential],
    now_unix: u64,
) -> bool
Expand description

Crypto-shredding check. Is this commons payload effectively erased — permanently unreadable — for a given set of credentials at now? True iff no credential grants a live key to it (every credential for this commitment is revoked/expired, or none exists). The bytes may still be replicated across the commons, but with no key anywhere they cannot be decrypted by anyone — the person’s ultimate erasure control, achieved by destroying keys rather than by chasing copies.