refactor!(lee_core): bump the note-encryption KDF domain to v0.3

BREAKING!

Before: note encryption KDF used 0.2 tag

After: now uses 0.3 tag

Mitigation: cipher keygen needs to utilize 0.3 tag after this commit
This commit is contained in:
Artem Gureev 2026-07-28 11:23:12 +00:00 committed by agureev
parent 8cebe109fe
commit 7a80ab026d

View File

@ -135,7 +135,7 @@ impl EncryptionScheme {
}
fn kdf(shared_secret: &SharedSecretKey, nullifier: &Nullifier) -> [u8; 32] {
const PREFIX: &[u8; 20] = b"LEE/v0.2/KDF-SHA256/";
const PREFIX: &[u8; 20] = b"LEE/v0.3/KDF-SHA256/";
let mut bytes = [0_u8; 20 + 32 + 32];
bytes[0..20].copy_from_slice(PREFIX);
bytes[20..52].copy_from_slice(&shared_secret.0);