| 322 | |
| 323 | |
| 324 | void psbt_input_set_serial_id(const tal_t *ctx, |
| 325 | struct wally_psbt_input *input, |
| 326 | u64 serial_id) |
| 327 | { |
| 328 | u8 *key = psbt_make_key(tmpctx, PSBT_TYPE_SERIAL_ID, NULL); |
| 329 | beint64_t bev = cpu_to_be64(serial_id); |
| 330 | |
| 331 | psbt_input_set_unknown(ctx, input, key, &bev, sizeof(bev)); |
| 332 | } |
| 333 | |
| 334 | |
| 335 | void psbt_output_set_serial_id(const tal_t *ctx, |