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

Function onion_shared_secret

common/sphinx.c:410–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408}
409
410bool onion_shared_secret(
411 struct secret *secret,
412 const struct onionpacket *packet,
413 const struct privkey *privkey)
414{
415 return sphinx_create_shared_secret(secret, &packet->ephemeralkey,
416 &privkey->secret);
417}
418
419static struct hop_params *generate_hop_params(
420 const tal_t *ctx,

Callers 1

decode_with_privkeyFunction · 0.85

Calls 1

Tested by

no test coverage detected