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

Function ecdh

tests/test_connection.py:4641–4643  ·  view source on GitHub ↗
(privkey_bytes, pubkey_bytes)

Source from the content-addressed store, hash-verified

4639 l1, l2 = node_factory.line_graph(2)
4640
4641 def ecdh(privkey_bytes, pubkey_bytes):
4642 priv = coincurve.PrivateKey(privkey_bytes)
4643 return priv.ecdh(coincurve.PublicKey(pubkey_bytes).public_key)
4644
4645 # Build an onion message to l2 with a reply_path carrying no hops.
4646 l2_pub = bytes.fromhex(l2.info['id'])

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected