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

Function psbt_input_set_serial_id

common/psbt_open.c:369–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367
368
369void psbt_input_set_serial_id(const tal_t *ctx,
370 struct wally_psbt_input *input,
371 u64 serial_id)
372{
373 u8 *key = psbt_make_key(tmpctx, PSBT_TYPE_SERIAL_ID, NULL);
374 beint64_t bev = cpu_to_be64(serial_id);
375
376 psbt_input_set_unknown(ctx, input, key, &bev, sizeof(bev));
377}
378
379
380void psbt_output_set_serial_id(const tal_t *ctx,

Callers 8

json_addpsbtinputFunction · 0.85
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

Calls 3

psbt_make_keyFunction · 0.85
cpu_to_be64Function · 0.85
psbt_input_set_unknownFunction · 0.85

Tested by 2

add_in_out_with_serialFunction · 0.68
change_serialsFunction · 0.68