mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-09 10:43:19 -05:00
If P2TR tweaked key is available, sign with it
This commit is contained in:
parent
8d9670ccb7
commit
e1e3081200
1 changed files with 5 additions and 0 deletions
|
@ -243,6 +243,11 @@ static bool SignTaproot(const SigningProvider& provider, const BaseSignatureCrea
|
||||||
sigdata.taproot_key_path_sig = sig;
|
sigdata.taproot_key_path_sig = sig;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (sigdata.taproot_key_path_sig.size() == 0) {
|
||||||
|
if (creator.CreateSchnorrSig(provider, sig, output, nullptr, nullptr, SigVersion::TAPROOT)) {
|
||||||
|
sigdata.taproot_key_path_sig = sig;
|
||||||
|
}
|
||||||
|
}
|
||||||
if (sigdata.taproot_key_path_sig.size()) {
|
if (sigdata.taproot_key_path_sig.size()) {
|
||||||
result = Vector(sigdata.taproot_key_path_sig);
|
result = Vector(sigdata.taproot_key_path_sig);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue