Skip to content

Commit

Permalink
pclientd: use BIP44 derivation for seed phrase if passed in
Browse files Browse the repository at this point in the history
  • Loading branch information
redshiftzero committed Sep 14, 2023
1 parent 81f647b commit b9f2bd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/bin/pclientd/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use clap::Parser;
use directories::ProjectDirs;
use penumbra_custody::policy::{AuthPolicy, PreAuthorizationPolicy};
use penumbra_custody::soft_kms::{self, SoftKms};
use penumbra_keys::keys::{SeedPhrase, SpendKey};
use penumbra_keys::keys::{Bip44Path, SeedPhrase, SpendKey};
use penumbra_keys::FullViewingKey;
use penumbra_proto::{
client::v1alpha1::oblivious_query_service_client::ObliviousQueryServiceClient,
Expand Down Expand Up @@ -201,9 +201,9 @@ impl Opt {

let (spend_key, full_viewing_key) = match (seed_phrase, view) {
(Some(seed_phrase), None) => {
let spend_key = SpendKey::from_seed_phrase_bip39(
let spend_key = SpendKey::from_seed_phrase_bip44(
SeedPhrase::from_str(seed_phrase.as_str())?,
0,
&Bip44Path::new(0),
);
let full_viewing_key = spend_key.full_viewing_key().clone();
(Some(spend_key), full_viewing_key)
Expand Down

0 comments on commit b9f2bd4

Please sign in to comment.