| 532 | } |
| 533 | |
| 534 | char *invrequest_encode(const tal_t *ctx, const struct tlv_invoice_request *invrequest_tlv) |
| 535 | { |
| 536 | u8 *wire; |
| 537 | |
| 538 | wire = tal_arr(tmpctx, u8, 0); |
| 539 | towire_tlv_invoice_request(&wire, invrequest_tlv); |
| 540 | |
| 541 | return to_bech32_charset(ctx, "lnr", wire); |
| 542 | } |
| 543 | |
| 544 | struct tlv_invoice_request *invrequest_decode(const tal_t *ctx, |
| 545 | const char *b12, size_t b12len, |