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

Function psbt_output_set_serial_id

common/psbt_open.c:335–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333
334
335void psbt_output_set_serial_id(const tal_t *ctx,
336 struct wally_psbt_output *output,
337 u64 serial_id)
338{
339 u8 *key = psbt_make_key(tmpctx, PSBT_TYPE_SERIAL_ID, NULL);
340 beint64_t bev = cpu_to_be64(serial_id);
341 psbt_output_set_unknown(ctx, output, key, &bev, sizeof(bev));
342}
343
344int psbt_find_serial_input(struct wally_psbt *psbt, u64 serial_id)
345{

Callers 7

psbt_add_serialsFunction · 0.85
add_in_out_with_serialFunction · 0.85
change_serialsFunction · 0.85
update_parent_psbtFunction · 0.85
update_node_psbtFunction · 0.85
run_tx_interactiveFunction · 0.85
add_funding_outputFunction · 0.85

Calls 3

psbt_make_keyFunction · 0.85
cpu_to_be64Function · 0.85
psbt_output_set_unknownFunction · 0.85

Tested by 2

add_in_out_with_serialFunction · 0.68
change_serialsFunction · 0.68