Update to latest go-crypto

This commit is contained in:
Ethan Frey
2017-04-21 16:55:58 -04:00
committed by Ethan Buchman
parent 3d9ca32e95
commit 6d223d5526
4 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ func (privVal *PrivValidator) SetSigner(s Signer) {
// Generates a new validator with private key.
func GenPrivValidator() *PrivValidator {
privKey := crypto.WrapPrivKey(crypto.GenPrivKeyEd25519())
privKey := crypto.GenPrivKeyEd25519().Wrap()
pubKey := privKey.PubKey()
return &PrivValidator{
Address: pubKey.Address(),
+1 -1
View File
@@ -12,7 +12,7 @@ import (
func randPubKey() crypto.PubKey {
var pubKey [32]byte
copy(pubKey[:], cmn.RandBytes(32))
return crypto.WrapPubKey(crypto.PubKeyEd25519(pubKey))
return crypto.PubKeyEd25519(pubKey).Wrap()
}
func randValidator_() *Validator {