diff --git a/dcrec/secp256k1/ciphering.go b/dcrec/secp256k1/ciphering.go index e3f39830..57cbf755 100644 --- a/dcrec/secp256k1/ciphering.go +++ b/dcrec/secp256k1/ciphering.go @@ -42,7 +42,7 @@ var ( ) // GenerateSharedSecret generates a shared secret based on a private key and a -// private key using Diffie-Hellman key exchange (ECDH) (RFC 4753). +// public key using Diffie-Hellman key exchange (ECDH) (RFC 4753). // RFC5903 Section 9 states we should only return x. func GenerateSharedSecret(privkey *PrivateKey, pubkey *PublicKey) []byte { x, _ := pubkey.Curve.ScalarMult(pubkey.X, pubkey.Y, privkey.D.Bytes())