Skip to main content

require_encryption_key

Function require_encryption_key 

Source
pub fn require_encryption_key(
    user_id: &str,
) -> Result<[u8; 32], RequireKeyError>
Expand description

E2EE precondition. Returns the user’s AES-256 key or a clear error. Callers map Missing to the ENCRYPTION_REQUIRED exit code.