Skip to content

Commit caa2a1c

Browse files
committed
Merge remote-tracking branch 'benma/nottwice'
2 parents 106de4a + 7b29cf9 commit caa2a1c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/keystore.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ bool keystore_secp256k1_nonce_commit(
564564
uint8_t* signer_commitment_out)
565565
{
566566
struct ext_key xprv __attribute__((__cleanup__(keystore_zero_xkey))) = {0};
567-
if (!_get_xprv_twice(keypath, keypath_len, &xprv)) {
567+
if (!_get_xprv(keypath, keypath_len, &xprv)) {
568568
return false;
569569
}
570570
const secp256k1_context* ctx = wally_get_secp_context();
@@ -596,7 +596,7 @@ bool keystore_secp256k1_sign(
596596
return false;
597597
}
598598
struct ext_key xprv __attribute__((__cleanup__(keystore_zero_xkey))) = {0};
599-
if (!_get_xprv_twice(keypath, keypath_len, &xprv)) {
599+
if (!_get_xprv(keypath, keypath_len, &xprv)) {
600600
return false;
601601
}
602602
const secp256k1_context* ctx = wally_get_secp_context();
@@ -731,7 +731,7 @@ static bool _schnorr_bip86_keypair(
731731
return false;
732732
}
733733
struct ext_key xprv __attribute__((__cleanup__(keystore_zero_xkey))) = {0};
734-
if (!_get_xprv_twice(keypath, keypath_len, &xprv)) {
734+
if (!_get_xprv(keypath, keypath_len, &xprv)) {
735735
return false;
736736
}
737737
const uint8_t* secret_key = xprv.priv_key + 1; // first byte is 0;

0 commit comments

Comments
 (0)