| 608 | } |
| 609 | |
| 610 | char *invoice_encode(const tal_t *ctx, const struct tlv_invoice *invoice_tlv) |
| 611 | { |
| 612 | u8 *wire; |
| 613 | |
| 614 | wire = tal_arr(tmpctx, u8, 0); |
| 615 | towire_tlv_invoice(&wire, invoice_tlv); |
| 616 | |
| 617 | return to_bech32_charset(ctx, "lni", wire); |
| 618 | } |
| 619 | |
| 620 | struct tlv_invoice *invoice_decode_minimal(const tal_t *ctx, |
| 621 | const char *b12, size_t b12len, |