| 1034 | } |
| 1035 | |
| 1036 | bool wally_psbt_input_spends(const struct wally_psbt_input *input, |
| 1037 | const struct bitcoin_outpoint *outpoint) |
| 1038 | { |
| 1039 | /* Useful, as tx_part can have some NULL inputs */ |
| 1040 | if (!input) |
| 1041 | return false; |
| 1042 | if (input->index != outpoint->n) |
| 1043 | return false; |
| 1044 | return CROSS_TYPE_EQ(&outpoint->txid, &input->txhash); |
| 1045 | } |
| 1046 | |
| 1047 | void wally_psbt_input_get_outpoint(const struct wally_psbt_input *in, |
| 1048 | struct bitcoin_outpoint *outpoint) |