| 314 | } |
| 315 | |
| 316 | char *invrequest_encode(const tal_t *ctx, const struct tlv_invoice_request *invrequest_tlv) |
| 317 | { |
| 318 | u8 *wire; |
| 319 | |
| 320 | wire = tal_arr(tmpctx, u8, 0); |
| 321 | towire_tlv_invoice_request(&wire, invrequest_tlv); |
| 322 | |
| 323 | return to_bech32_charset(ctx, "lnr", wire); |
| 324 | } |
| 325 | |
| 326 | struct tlv_invoice_request *invrequest_decode(const tal_t *ctx, |
| 327 | const char *b12, size_t b12len, |