The ideas of this package have been implemented in the Go's standard library
(Go 1.20). It is recommened to use the standard library
The ECDH key exchange
Elliptic curve Diffie–Hellman (ECDH) is an anonymous key agreement protocol that allows two parties, each having an elliptic curve public–private key pair, to establish a shared secret over an insecure channel.
Install in your GOPATH:
go get -u github.com/aead/ecdh