MCPcopy Create free account
hub / github.com/ElementsProject/lightning / psbt_input_set_witscript

Function psbt_input_set_witscript

bitcoin/psbt.c:472–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470}
471
472void 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
484const u8 *psbt_input_get_witscript(const tal_t *ctx,
485 const struct wally_psbt *psbt,

Callers 6

htlc_timeout_txFunction · 0.85
sign_our_inputsFunction · 0.85
psbt_append_inputFunction · 0.85
migrate_last_tx_to_psbtFunction · 0.85

Calls 3

tal_wally_startFunction · 0.85
tal_bytelenFunction · 0.85
tal_wally_endFunction · 0.85

Tested by 1

htlc_timeout_txFunction · 0.68