mirror of
https://github.com/tendermint/tendermint.git
synced 2026-10-01 04:05:45 +00:00
keys: change to []bytes (#4950)
This commit is contained in:
@@ -119,10 +119,8 @@ func TestUnmarshalValidatorKey(t *testing.T) {
|
||||
privKey := ed25519.GenPrivKey()
|
||||
pubKey := privKey.PubKey()
|
||||
addr := pubKey.Address()
|
||||
pubArray := [32]byte(pubKey.(ed25519.PubKey))
|
||||
pubBytes := pubArray[:]
|
||||
privArray := [64]byte(privKey)
|
||||
privBytes := privArray[:]
|
||||
pubBytes := []byte(pubKey.(ed25519.PubKey))
|
||||
privBytes := []byte(privKey)
|
||||
pubB64 := base64.StdEncoding.EncodeToString(pubBytes)
|
||||
privB64 := base64.StdEncoding.EncodeToString(privBytes)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user