revert changes

This commit is contained in:
Sergio Chouhy 2025-12-11 21:15:57 -03:00
parent 8c92a58bbc
commit bb58f7dd0a
3 changed files with 9 additions and 9 deletions

View File

@ -190,7 +190,7 @@ pub fn produce_data_for_storage(
} }
} }
pub fn produce_random_nonces(size: usize) -> Vec<Nonce> { pub(crate) fn produce_random_nonces(size: usize) -> Vec<Nonce> {
let mut result = vec![[0; 16]; size]; let mut result = vec![[0; 16]; size];
result.iter_mut().for_each(|bytes| OsRng.fill_bytes(bytes)); result.iter_mut().for_each(|bytes| OsRng.fill_bytes(bytes));
result.into_iter().map(Nonce::from_le_bytes).collect() result.into_iter().map(Nonce::from_le_bytes).collect()

View File

@ -35,7 +35,7 @@ pub mod cli;
pub mod config; pub mod config;
pub mod helperfunctions; pub mod helperfunctions;
pub mod poller; pub mod poller;
pub mod privacy_preserving_tx; mod privacy_preserving_tx;
pub mod program_facades; pub mod program_facades;
pub struct WalletCore { pub struct WalletCore {

View File

@ -164,15 +164,15 @@ impl AccountManager {
} }
} }
pub struct AccountPreparedData { struct AccountPreparedData {
pub nsk: Option<NullifierSecretKey>, nsk: Option<NullifierSecretKey>,
pub npk: NullifierPublicKey, npk: NullifierPublicKey,
pub ipk: IncomingViewingPublicKey, ipk: IncomingViewingPublicKey,
pub pre_state: AccountWithMetadata, pre_state: AccountWithMetadata,
pub proof: Option<MembershipProof>, proof: Option<MembershipProof>,
} }
pub async fn private_acc_preparation( async fn private_acc_preparation(
wallet: &WalletCore, wallet: &WalletCore,
account_id: AccountId, account_id: AccountId,
) -> Result<AccountPreparedData, ExecutionFailureKind> { ) -> Result<AccountPreparedData, ExecutionFailureKind> {