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

Function ecdh

common/test/run-blindedpath_onion.c:98–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96static const struct privkey *ecdh_key;
97
98void ecdh(const struct pubkey *point, struct secret *ss)
99{
100 if (secp256k1_ecdh(secp256k1_ctx, ss->data, &point->pubkey,
101 ecdh_key->secret.data, NULL, NULL) != 1)
102 abort();
103}
104
105static u8 *next_onion(const tal_t *ctx, u8 *omsg,
106 const struct privkey *nodekey,

Callers 1

next_onionFunction · 0.70

Calls 1

abortFunction · 0.85

Tested by

no test coverage detected