We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a8cf38 commit aa9b932Copy full SHA for aa9b932
src/keystore.c
@@ -960,16 +960,13 @@ static bool _schnorr_keypair(
960
if (!secp256k1_keypair_create(ctx, keypair_out, secret_key)) {
961
return false;
962
}
963
- if (!secp256k1_keypair_xonly_pub(ctx, pubkey_out, NULL, keypair_out)) {
964
- return false;
965
- }
966
if (tweak != NULL) {
967
if (secp256k1_keypair_xonly_tweak_add(ctx, keypair_out, tweak) != 1) {
968
969
970
971
972
+ }
+ if (!secp256k1_keypair_xonly_pub(ctx, pubkey_out, NULL, keypair_out)) {
+ return false;
973
974
return true;
975
0 commit comments