| 716 | } |
| 717 | |
| 718 | struct wally_psbt *psbt_from_bytes(const tal_t *ctx, const u8 *bytes, |
| 719 | size_t byte_len) |
| 720 | { |
| 721 | struct wally_psbt *psbt; |
| 722 | |
| 723 | tal_wally_start(); |
| 724 | if (wally_psbt_from_bytes(bytes, byte_len, &psbt) == WALLY_OK) |
| 725 | tal_add_destructor(psbt, psbt_destroy); |
| 726 | else |
| 727 | psbt = NULL; |
| 728 | tal_wally_end_onto(ctx, psbt, struct wally_psbt); |
| 729 | |
| 730 | return psbt; |
| 731 | } |
| 732 | |
| 733 | void towire_wally_psbt(u8 **pptr, const struct wally_psbt *psbt) |
| 734 | { |
no test coverage detected