Skip to content

Commit

Permalink
Fix x25519.PrivateKey.Public() return so it implements crypto.Signer
Browse files Browse the repository at this point in the history
  • Loading branch information
maraino committed Jan 4, 2022
1 parent f6bddce commit 74b0c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x25519/x25519.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (p PublicKey) ToEd25519() (ed25519.PublicKey, error) {
// Public returns the public key using scalar multiplication (scalar * point)
// using the Curve25519 basepoint. It will return nil if the private key is not
// a valid one.
func (p PrivateKey) Public() PublicKey {
func (p PrivateKey) Public() crypto.PublicKey {
pub, _ := p.PublicKey()
return pub
}
Expand Down

0 comments on commit 74b0c4b

Please sign in to comment.