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

Function invrequest_encode

common/bolt12.c:316–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316char *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
326struct tlv_invoice_request *invrequest_decode(const tal_t *ctx,
327 const char *b12, size_t b12len,

Callers 9

runFunction · 0.85
mainFunction · 0.85
fail_invreq_levelFunction · 0.85
listoffers_doneFunction · 0.85
json_fetchinvoiceFunction · 0.85

Calls 2

to_bech32_charsetFunction · 0.70

Tested by 1

mainFunction · 0.68