| 384 | } |
| 385 | |
| 386 | char *invoice_encode(const tal_t *ctx, const struct tlv_invoice *invoice_tlv) |
| 387 | { |
| 388 | u8 *wire; |
| 389 | |
| 390 | wire = tal_arr(tmpctx, u8, 0); |
| 391 | towire_tlv_invoice(&wire, invoice_tlv); |
| 392 | |
| 393 | return to_bech32_charset(ctx, "lni", wire); |
| 394 | } |
| 395 | |
| 396 | struct tlv_invoice *invoice_decode_minimal(const tal_t *ctx, |
| 397 | const char *b12, size_t b12len, |