crypto: adopt zip215 ed25519 verification (#5632)

This commit is contained in:
Marko
2020-11-10 11:39:52 +01:00
committed by GitHub
parent b508045eff
commit e7d7ad85d5
4 changed files with 7 additions and 3 deletions
+3 -3
View File
@@ -2,12 +2,12 @@ package ed25519
import (
"bytes"
"crypto/ed25519"
"crypto/subtle"
"fmt"
"io"
"golang.org/x/crypto/ed25519"
"github.com/hdevalence/ed25519consensus"
"github.com/tendermint/tendermint/crypto"
"github.com/tendermint/tendermint/crypto/tmhash"
tmjson "github.com/tendermint/tendermint/libs/json"
@@ -151,7 +151,7 @@ func (pubKey PubKey) VerifySignature(msg []byte, sig []byte) bool {
return false
}
return ed25519.Verify(ed25519.PublicKey(pubKey), msg, sig)
return ed25519consensus.Verify(ed25519.PublicKey(pubKey), msg, sig)
}
func (pubKey PubKey) String() string {