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

Function psbt_add_keypath_to_last_output

common/psbt_keypath.c:24–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24void psbt_add_keypath_to_last_output(struct bitcoin_tx *tx,
25 u32 key_index,
26 const struct ext_key *ext) {
27 size_t outndx = tx->psbt->num_outputs - 1;
28 struct wally_map *map_in = &tx->psbt->outputs[outndx].keypaths;
29
30 tal_wally_start();
31 psbt_set_keypath(key_index, ext, map_in);
32 tal_wally_end(tx->psbt);
33}

Callers 4

tx_to_usFunction · 0.85
replace_penalty_tx_to_usFunction · 0.85
penalty_tx_createFunction · 0.85
create_close_txFunction · 0.85

Calls 3

tal_wally_startFunction · 0.85
psbt_set_keypathFunction · 0.85
tal_wally_endFunction · 0.85

Tested by

no test coverage detected