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

Function offer_encode

common/bolt12.c:369–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369char *offer_encode(const tal_t *ctx, const struct tlv_offer *offer_tlv)
370{
371 u8 *wire;
372
373 wire = tal_arr(tmpctx, u8, 0);
374 towire_tlv_offer(&wire, offer_tlv);
375
376 return to_bech32_charset(ctx, "lno", wire);
377}
378
379struct tlv_offer *offer_decode(const tal_t *ctx,
380 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