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

Function psbt_get_lightning

bitcoin/psbt.c:739–751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

737}
738
739void *psbt_get_lightning(const struct wally_map *map,
740 const u8 proprietary_type,
741 size_t *val_len)
742{
743 u8 *key = psbt_make_key(NULL, proprietary_type, NULL);
744 const struct wally_map_item *item;
745 item = wally_map_get(map, key, tal_bytelen(key));
746 tal_free(key);
747 if (!item)
748 return NULL;
749 *val_len = item->value_len;
750 return item->value;
751}
752
753void psbt_set_lightning(const tal_t *ctx,
754 struct wally_map *map,

Callers 4

psbt_get_serial_idFunction · 0.85
psbt_get_channel_idsFunction · 0.85
psbt_input_is_oursFunction · 0.85
psbt_output_to_externalFunction · 0.85

Calls 3

psbt_make_keyFunction · 0.85
tal_bytelenFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected