ProtonMail / go-crypto

Fork of go/x/crypto, providing an up-to-date OpenPGP implementation
https://pkg.go.dev/github.com/ProtonMail/go-crypto
BSD 3-Clause "New" or "Revised" License
330 stars 100 forks source link

feat: add new constructor for an ecdsa.PublicKey #157

Open smlx opened 1 year ago

smlx commented 1 year ago

The existing NewPublicKey was unusable from an external package due to the fact that it used an internal package interface in its function signature.

The new constructor uses the elliptic.Curve interface from the standard library instead.