refactor(crypto_primitives_bench): derive account_id from key in encryption bench

This commit is contained in:
Moudy 2026-05-21 16:44:41 +02:00
parent d064f87ad7
commit fdec52791d

View File

@ -55,8 +55,9 @@ fn bench_encryption(c: &mut Criterion) {
// measured loop (covered by the SharedSecretKey bench above).
let recipient_kc = KeyChain::new_os_random();
let vpk = recipient_kc.viewing_public_key;
let npk = recipient_kc.nullifier_public_key;
let account = Account::default();
let account_id = AccountId::new([7; 32]);
let account_id = AccountId::for_regular_private_account(&npk, 0);
let commitment = Commitment::new(&account_id, &account);
let shared = {
let mut bytes = [0_u8; 32];