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];
result.iter_mut().for_each(|bytes| OsRng.fill_bytes(bytes));
result.into_iter().map(Nonce::from_le_bytes).collect()

View File

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

View File

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