mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-07-09 15:29:34 +00:00
chore: formatting
This commit is contained in:
parent
5d2b4a672a
commit
645a861d68
@ -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<_>>()
|
||||
})
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user