| 367 | |
| 368 | |
| 369 | void 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 | |
| 380 | void psbt_output_set_serial_id(const tal_t *ctx, |