| 246 | } |
| 247 | |
| 248 | char *invoice_encode(const tal_t *ctx, const struct tlv_invoice *invoice_tlv) |
| 249 | { |
| 250 | u8 *wire; |
| 251 | |
| 252 | wire = tal_arr(tmpctx, u8, 0); |
| 253 | towire_tlv_invoice(&wire, invoice_tlv); |
| 254 | |
| 255 | return to_bech32_charset(ctx, "lni", wire); |
| 256 | } |
| 257 | |
| 258 | struct tlv_invoice *invoice_decode_nosig(const tal_t *ctx, |
| 259 | const char *b12, size_t b12len, |
no test coverage detected