mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-28 18:55:42 +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(),
|
||||
|
||||
Reference in New Issue
Block a user