| 788 | } |
| 789 | |
| 790 | static bool psbt_input_signed(const struct wally_psbt *psbt, size_t in) |
| 791 | { |
| 792 | size_t taproot_sig_len; |
| 793 | |
| 794 | if (psbt->inputs[in].signatures.num_items != 0 |
| 795 | || psbt->inputs[in].final_witness) |
| 796 | return true; |
| 797 | return wally_psbt_get_input_taproot_signature_len(psbt, in, |
| 798 | &taproot_sig_len) == WALLY_OK |
| 799 | && taproot_sig_len != 0; |
| 800 | } |
| 801 | |
| 802 | static struct command_result *param_input_numbers(struct command *cmd, |
| 803 | const char *name, |