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

Function payer_proof_encode

common/bolt12_proof.c:461–469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459}
460
461const char *payer_proof_encode(const tal_t *ctx, const struct tlv_payer_proof *pptlv)
462{
463 u8 *wire;
464
465 wire = tal_arr(tmpctx, u8, 0);
466 towire_tlv_payer_proof(&wire, pptlv);
467
468 return to_bech32_charset(ctx, "lnp", wire);
469}
470
471struct tlv_payer_proof *payer_proof_decode(const tal_t *ctx,
472 const char *b12, size_t b12len,

Callers 4

generate_valid_vectorFunction · 0.85
emit_invalidFunction · 0.85
generate_invalid_vectorsFunction · 0.85
payersign_doneFunction · 0.85

Calls 1

to_bech32_charsetFunction · 0.70

Tested by 3

generate_valid_vectorFunction · 0.68
emit_invalidFunction · 0.68
generate_invalid_vectorsFunction · 0.68