Skip to content

Commit

Permalink
Fix interface conversion in GetPublicKey
Browse files Browse the repository at this point in the history
  • Loading branch information
losfair committed Jun 22, 2018
1 parent 84bfa57 commit 97d49da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func FromPrivateKeyBytes(rawPrivateKey []byte) (*KeyPair, error) {
}

func GetPublicKey(rawPrivateKey []byte) []byte {
return ed25519.PrivateKey(rawPrivateKey).Public().([]byte)
return ed25519.PrivateKey(rawPrivateKey).Public().(ed25519.PublicKey)
}

func Verify(publicKey []byte, message []byte, signature []byte) bool {
Expand Down

0 comments on commit 97d49da

Please sign in to comment.