lightningnetwork / lightning-onion

Onion Routed Micropayments for the Lightning Network
MIT License
396 stars 125 forks source link

Use the libsecp256k1 style ECDH shared key generation #6

Closed cdecker closed 7 years ago

cdecker commented 7 years ago

The spec says that we use the libsecp256k1 style ECDH, which uses the full compressed pubkey from the scalar multiplication which is then hashed. This is in contrast to the btcsuite implementation which was only using the hashed X-coordinate.

Roasbeef commented 7 years ago

Implemented by 96f3b4b53fd55b25432ae392d3eeb69bc060e1cb, closing.