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

Function invoice_encode

common/bolt12.c:248–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248char *invoice_encode(const tal_t *ctx, const struct tlv_invoice *invoice_tlv)
249{
250 u8 *wire;
251
252 wire = tal_arr(tmpctx, u8, 0);
253 towire_tlv_invoice(&wire, invoice_tlv);
254
255 return to_bech32_charset(ctx, "lni", wire);
256}
257
258struct tlv_invoice *invoice_decode_nosig(const tal_t *ctx,
259 const char *b12, size_t b12len,

Callers 6

create_invoicereqFunction · 0.50
handle_invreq_responseFunction · 0.50
timeout_sent_invFunction · 0.50
sign_invoiceFunction · 0.50
fail_inv_levelFunction · 0.50
listoffers_doneFunction · 0.50

Calls 2

to_bech32_charsetFunction · 0.70
towire_tlv_invoiceFunction · 0.50

Tested by

no test coverage detected