chore: formatting

This commit is contained in:
agureev 2026-07-07 22:12:12 +04:00
parent 5d2b4a672a
commit 645a861d68
2 changed files with 15 additions and 12 deletions

View File

@ -780,16 +780,16 @@ impl WalletCore {
key_chain.calculate_shared_secret_receiver(&encrypted_data.epk)?;
lee_core::EncryptionScheme::decrypt(ciphertext, &shared_secret, nullifier)
.map(|(kind, res_acc)| {
let npk = &key_chain.nullifier_public_key;
let account_id = lee::AccountId::for_private_account(
npk,
&key_chain.viewing_public_key,
&kind,
);
let nsk = key_chain.private_key_holder.nullifier_secret_key;
(account_id, kind, res_acc, nsk)
})
.map(|(kind, res_acc)| {
let npk = &key_chain.nullifier_public_key;
let account_id = lee::AccountId::for_private_account(
npk,
&key_chain.viewing_public_key,
&kind,
);
let nsk = key_chain.private_key_holder.nullifier_secret_key;
(account_id, kind, res_acc, nsk)
})
})
.collect::<Vec<_>>()
})

View File

@ -432,8 +432,11 @@ impl UserKeyChain {
)
};
let (kind, new_account) =
EncryptionScheme::decrypt(&encrypted.ciphertext, &secret, &message.new_nullifiers[i].0)?;
let (kind, new_account) = EncryptionScheme::decrypt(
&encrypted.ciphertext,
&secret,
&message.new_nullifiers[i].0,
)?;
let new_nullifier = NullifierIndex::next_update_nullifier(account_id, &new_account, &nsk);
if is_shared {