| 206 | } |
| 207 | |
| 208 | char *invrequest_encode(const tal_t *ctx, const struct tlv_invoice_request *invrequest_tlv) |
| 209 | { |
| 210 | u8 *wire; |
| 211 | |
| 212 | wire = tal_arr(tmpctx, u8, 0); |
| 213 | towire_tlv_invoice_request(&wire, invrequest_tlv); |
| 214 | |
| 215 | return to_bech32_charset(ctx, "lnr", wire); |
| 216 | } |
| 217 | |
| 218 | struct tlv_invoice_request *invrequest_decode(const tal_t *ctx, |
| 219 | const char *b12, size_t b12len, |
no test coverage detected