| 461 | } |
| 462 | |
| 463 | void psbt_input_set_outpoint(struct wally_psbt *psbt, size_t in, |
| 464 | struct bitcoin_outpoint outpoint) |
| 465 | { |
| 466 | assert(in < psbt->num_inputs); |
| 467 | psbt->inputs[in].index = outpoint.n; |
| 468 | memcpy(psbt->inputs[in].txhash, &outpoint.txid, |
| 469 | sizeof(struct bitcoin_txid)); |
| 470 | } |
| 471 | |
| 472 | void psbt_input_set_witscript(struct wally_psbt *psbt, size_t in, const u8 *wscript) |
| 473 | { |