multi: add p2tr tapscript key path signing capabilities

This commit is contained in:
Oliver Gugger committed 2022-03-24 18:02:39 +01:00
1 parent 78db46be7e
commit ef98f2df8a
8 files changed
+330 -104

No files matched your search

+13 -2
View File
@@ -129,8 +129,11 @@ message SignDescriptor {
bytes double_tweak = 3;
/*
The full script required to properly redeem the output. This field will
only be populated if a p2wsh or a p2sh output is being signed.
The full script required to properly redeem the output. This field will
only be populated if a p2tr, p2wsh or a p2sh output is being signed. In case
taproot_key_spend is set to true then this value must correspond to the
taproot root hash (in case of a tapscript output) or the tap hashed internal
public key (in case of a BIP-0086 output).
*/
bytes witness_script = 4;
@@ -150,6 +153,14 @@ message SignDescriptor {
The target input within the transaction that should be signed.
*/
int32 input_index = 8;
/*
Indicates that this should produce a signature that can be used for the key
spend path of a taproot input. This requires the witness_script field to be
set to the taproot root hash (in case of a tapscript output) or the tap
hashed internal public key (in case of a BIP-0086 output).
*/
bool taproot_key_spend = 9;
}
message SignReq {