| 22 | } |
| 23 | |
| 24 | void 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 | } |
no test coverage detected