diff --git a/integration_tests/tests/auth_transfer/private.rs b/integration_tests/tests/auth_transfer/private.rs index 62cf99fc..8db5f8d4 100644 --- a/integration_tests/tests/auth_transfer/private.rs +++ b/integration_tests/tests/auth_transfer/private.rs @@ -550,7 +550,10 @@ async fn shielded_transfers_to_two_identifiers_same_npk() -> Result<()> { .get(&chain_index) .expect("node was just inserted"); let key_chain = &node.value.0; - (key_chain.nullifier_public_key, key_chain.viewing_public_key.clone()) + ( + key_chain.nullifier_public_key, + key_chain.viewing_public_key.clone(), + ) }; let npk_hex = hex::encode(npk.0); diff --git a/wallet/src/cli/account.rs b/wallet/src/cli/account.rs index a09ae957..4a93a217 100644 --- a/wallet/src/cli/account.rs +++ b/wallet/src/cli/account.rs @@ -82,7 +82,7 @@ pub enum NewSubcommand { /// Label to assign to the new account. label: Option, }, - /// Register new private account with a random identifier. + /// Single-account convenience: creates a key node and auto-registers one account with a random identifier. Private { #[arg(long)] /// Chain index of a parent node. @@ -91,7 +91,8 @@ pub enum NewSubcommand { /// Label to assign to the new account. label: Option, }, - /// Create a new receiving key (npk + vpk) to share with senders. + /// Recommended for receiving from multiple senders: creates a key node (npk + vpk) without + /// registering any account. PrivateAccountsKey { #[arg(long)] /// Chain index of a parent node. diff --git a/wallet/src/helperfunctions.rs b/wallet/src/helperfunctions.rs index 13539f29..94755f6e 100644 --- a/wallet/src/helperfunctions.rs +++ b/wallet/src/helperfunctions.rs @@ -187,7 +187,7 @@ pub fn produce_data_for_storage( ); } - for (_, entry) in &user_data.default_user_private_accounts { + for entry in user_data.default_user_private_accounts.values() { for (identifier, account) in &entry.accounts { vec_for_storage.push( InitialAccountData::Private(Box::new(PrivateAccountPrivateInitialData {