| 731 | } |
| 732 | |
| 733 | void towire_wally_psbt(u8 **pptr, const struct wally_psbt *psbt) |
| 734 | { |
| 735 | /* Let's include the PSBT bytes */ |
| 736 | size_t bytes_written; |
| 737 | const u8 *pbt_bytes = psbt_get_bytes(NULL, psbt, &bytes_written); |
| 738 | towire_u32(pptr, bytes_written); |
| 739 | towire_u8_array(pptr, pbt_bytes, bytes_written); |
| 740 | tal_free(pbt_bytes); |
| 741 | } |
| 742 | |
| 743 | struct wally_psbt *fromwire_wally_psbt(const tal_t *ctx, |
| 744 | const u8 **cursor, size_t *max) |
no test coverage detected