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

Function offer_encode

common/bolt12.c:158–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 6

json_createofferFunction · 0.85
runFunction · 0.85
mainFunction · 0.85
print_valid_offerFunction · 0.85
print_invalid_offerFunction · 0.85
create_offerFunction · 0.85

Calls 2

to_bech32_charsetFunction · 0.70
towire_tlv_offerFunction · 0.50

Tested by 3

mainFunction · 0.68
print_valid_offerFunction · 0.68
print_invalid_offerFunction · 0.68