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

Function invrequest_encode

common/bolt12.c:534–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532}
533
534char *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
544struct tlv_invoice_request *invrequest_decode(const tal_t *ctx,
545 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