| 367 | } |
| 368 | |
| 369 | char *offer_encode(const tal_t *ctx, const struct tlv_offer *offer_tlv) |
| 370 | { |
| 371 | u8 *wire; |
| 372 | |
| 373 | wire = tal_arr(tmpctx, u8, 0); |
| 374 | towire_tlv_offer(&wire, offer_tlv); |
| 375 | |
| 376 | return to_bech32_charset(ctx, "lno", wire); |
| 377 | } |
| 378 | |
| 379 | struct tlv_offer *offer_decode(const tal_t *ctx, |
| 380 | const char *b12, size_t b12len, |