mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-04 06:13:10 +00:00
revert changes
This commit is contained in:
parent
8c92a58bbc
commit
bb58f7dd0a
@ -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()
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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> {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user