Skip to main content

ASSET_FILE_V1

Constant ASSET_FILE_V1 

Source
pub const ASSET_FILE_V1: &[u8] = b"asset-file/v1";
Expand description

Per-file asset key: HKDF(ikm=AMK, salt=file_id || nonce_prefix, info=ASSET_FILE_V1). The fresh nonce_prefix is folded into the salt so a same-epoch replace re-rolls the key, not merely the nonce (see https://docs/design/cryptography/encryption/#re-keying-on-rewrite).