| 156 | } |
| 157 | |
| 158 | char *offer_encode(const tal_t *ctx, const struct tlv_offer *offer_tlv) |
| 159 | { |
| 160 | u8 *wire; |
| 161 | |
| 162 | wire = tal_arr(tmpctx, u8, 0); |
| 163 | towire_tlv_offer(&wire, offer_tlv); |
| 164 | |
| 165 | return to_bech32_charset(ctx, "lno", wire); |
| 166 | } |
| 167 | |
| 168 | struct tlv_offer *offer_decode(const tal_t *ctx, |
| 169 | const char *b12, size_t b12len, |