spend: check for either p2wsh or Taproot sigs in sanity checks
This commit is contained in:
parent
e05039f67b
commit
714bd3c4ed
@ -114,7 +114,7 @@ fn sanity_check_psbt(
|
||||
// index set for signing devices to recognize them as ours.
|
||||
let mut value_in = 0;
|
||||
for psbtin in psbt.inputs.iter() {
|
||||
if psbtin.bip32_derivation.is_empty() {
|
||||
if psbtin.bip32_derivation.is_empty() && psbtin.tap_key_origins.is_empty() {
|
||||
return Err(SpendCreationError::SanityCheckFailure(psbt.clone()));
|
||||
}
|
||||
value_in += psbtin
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user