diff --git a/wallet/src/helperfunctions.rs b/wallet/src/helperfunctions.rs index eaa00a5..5f1dcf7 100644 --- a/wallet/src/helperfunctions.rs +++ b/wallet/src/helperfunctions.rs @@ -190,7 +190,7 @@ pub fn produce_data_for_storage( } } -pub fn produce_random_nonces(size: usize) -> Vec { +pub(crate) fn produce_random_nonces(size: usize) -> Vec { 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() diff --git a/wallet/src/lib.rs b/wallet/src/lib.rs index d679cd1..bc28311 100644 --- a/wallet/src/lib.rs +++ b/wallet/src/lib.rs @@ -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 { diff --git a/wallet/src/privacy_preserving_tx.rs b/wallet/src/privacy_preserving_tx.rs index 5dec8af..e79bbac 100644 --- a/wallet/src/privacy_preserving_tx.rs +++ b/wallet/src/privacy_preserving_tx.rs @@ -164,15 +164,15 @@ impl AccountManager { } } -pub struct AccountPreparedData { - pub nsk: Option, - pub npk: NullifierPublicKey, - pub ipk: IncomingViewingPublicKey, - pub pre_state: AccountWithMetadata, - pub proof: Option, +struct AccountPreparedData { + nsk: Option, + npk: NullifierPublicKey, + ipk: IncomingViewingPublicKey, + pre_state: AccountWithMetadata, + proof: Option, } -pub async fn private_acc_preparation( +async fn private_acc_preparation( wallet: &WalletCore, account_id: AccountId, ) -> Result {