| 152 | } |
| 153 | |
| 154 | char *offer_encode(const tal_t *ctx, const struct tlv_offer *offer_tlv) |
| 155 | { |
| 156 | u8 *wire; |
| 157 | |
| 158 | wire = tal_arr(tmpctx, u8, 0); |
| 159 | towire_tlv_offer(&wire, offer_tlv); |
| 160 | |
| 161 | return to_bech32_charset(ctx, "lno", wire); |
| 162 | } |
| 163 | |
| 164 | struct tlv_offer *offer_decode(const tal_t *ctx, |
| 165 | const char *b12, size_t b12len, |
no test coverage detected