| 470 | } |
| 471 | |
| 472 | void psbt_input_set_witscript(struct wally_psbt *psbt, size_t in, const u8 *wscript) |
| 473 | { |
| 474 | int wally_err; |
| 475 | |
| 476 | tal_wally_start(); |
| 477 | wally_err = wally_psbt_input_set_witness_script(&psbt->inputs[in], |
| 478 | wscript, |
| 479 | tal_bytelen(wscript)); |
| 480 | assert(wally_err == WALLY_OK); |
| 481 | tal_wally_end(psbt); |
| 482 | } |
| 483 | |
| 484 | const u8 *psbt_input_get_witscript(const tal_t *ctx, |
| 485 | const struct wally_psbt *psbt, |