mirror of
https://github.com/tendermint/tendermint.git
synced 2026-04-28 11:26:57 +00:00
type Ed25519[Signature|PubKey] struct{[]byte} -> []byte
This commit is contained in:
@@ -61,7 +61,7 @@ type PrivValidator struct {
|
||||
func GenPrivValidator() *PrivValidator {
|
||||
privKeyBytes := CRandBytes(32)
|
||||
pubKeyBytes := ed25519.MakePubKey(privKeyBytes)
|
||||
pubKey := PubKeyEd25519{pubKeyBytes}
|
||||
pubKey := PubKeyEd25519(pubKeyBytes)
|
||||
privKey := PrivKeyEd25519{pubKeyBytes, privKeyBytes}
|
||||
return &PrivValidator{
|
||||
Address: pubKey.Address(),
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
func randValidator_() *Validator {
|
||||
return &Validator{
|
||||
Address: RandBytes(20),
|
||||
PubKey: PubKeyEd25519{RandBytes(64)},
|
||||
PubKey: PubKeyEd25519(RandBytes(64)),
|
||||
BondHeight: uint(RandUint32()),
|
||||
VotingPower: RandUint64(),
|
||||
Accum: int64(RandUint64()),
|
||||
|
||||
Reference in New Issue
Block a user