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

Function invoice_invreq_id

common/bolt12.c:1069–1075  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1067}
1068
1069void invoice_invreq_id(const struct tlv_invoice *invoice, struct sha256 *id)
1070{
1071 u8 *wire = tal_arr(tmpctx, u8, 0);
1072
1073 towire_tlv_invoice(&wire, invoice);
1074 calc_invreq(wire, id);
1075}
1076
1077
1078/* BOLT #12:

Callers 2

handle_invoiceFunction · 0.85
mainFunction · 0.85

Calls 2

calc_invreqFunction · 0.85
towire_tlv_invoiceFunction · 0.50

Tested by

no test coverage detected