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

Function payer_key

lightningd/offer.c:436–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434}
435
436static bool payer_key(struct lightningd *ld,
437 const u8 *public_tweak, size_t public_tweak_len,
438 struct pubkey *key)
439{
440 struct sha256 tweakhash;
441
442 *key = ld->our_pubkey;
443 bolt12_alias_tweak(&ld->nodealias_base,
444 public_tweak, public_tweak_len,
445 &tweakhash);
446
447 return secp256k1_ec_pubkey_tweak_add(secp256k1_ctx,
448 &key->pubkey,
449 tweakhash.u.u8) == 1;
450}
451
452static void json_populate_invreq(struct json_stream *response,
453 const struct sha256 *invreq_id,

Callers 2

json_payersignFunction · 0.70

Calls 1

bolt12_alias_tweakFunction · 0.85

Tested by

no test coverage detected