mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-20 15:04:22 +00:00
Update to latest go-crypto
This commit is contained in:
committed by
Ethan Buchman
parent
3d9ca32e95
commit
6d223d5526
@@ -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(),
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user