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

Function onion_shared_secret

common/sphinx.c:382–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380}
381
382bool onion_shared_secret(
383 struct secret *secret,
384 const struct onionpacket *packet,
385 const struct privkey *privkey)
386{
387 return sphinx_create_shared_secret(secret, &packet->ephemeralkey,
388 &privkey->secret);
389}
390
391static void generate_key_set(const struct secret *secret,
392 struct keyset *keys)

Callers 1

decode_with_privkeyFunction · 0.85

Calls 1

Tested by

no test coverage detected