MCPcopy Create free account
hub / github.com/ElementsProject/lightning / invrequest_encode

Function invrequest_encode

common/bolt12.c:208–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208char *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
218struct tlv_invoice_request *invrequest_decode(const tal_t *ctx,
219 const char *b12, size_t b12len,

Callers 3

fail_invreq_levelFunction · 0.85
json_fetchinvoiceFunction · 0.85

Calls 2

to_bech32_charsetFunction · 0.70

Tested by

no test coverage detected