mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-07 15:53:14 +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];
|
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()
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
@ -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> {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user