| 680 | } |
| 681 | |
| 682 | char *psbt_to_b64(const tal_t *ctx, const struct wally_psbt *psbt) |
| 683 | { |
| 684 | char *serialized_psbt; |
| 685 | int ret; |
| 686 | |
| 687 | tal_wally_start(); |
| 688 | ret = wally_psbt_to_base64(psbt, 0, &serialized_psbt); |
| 689 | assert(ret == WALLY_OK); |
| 690 | tal_wally_end_onto(ctx, serialized_psbt, char); |
| 691 | |
| 692 | return serialized_psbt; |
| 693 | } |
| 694 | REGISTER_TYPE_TO_STRING(wally_psbt, psbt_to_b64); |
| 695 | |
| 696 | const u8 *psbt_get_bytes(const tal_t *ctx, const struct wally_psbt *psbt, |
no test coverage detected