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

Function offer_encode

common/bolt12.c:154–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154char *offer_encode(const tal_t *ctx, const struct tlv_offer *offer_tlv)
155{
156 u8 *wire;
157
158 wire = tal_arr(tmpctx, u8, 0);
159 towire_tlv_offer(&wire, offer_tlv);
160
161 return to_bech32_charset(ctx, "lno", wire);
162}
163
164struct tlv_offer *offer_decode(const tal_t *ctx,
165 const char *b12, size_t b12len,

Callers 4

json_createofferFunction · 0.85
offer_str_nosigFunction · 0.85
create_offerFunction · 0.85
json_offeroutFunction · 0.85

Calls 2

to_bech32_charsetFunction · 0.70
towire_tlv_offerFunction · 0.50

Tested by

no test coverage detected