crypto: remove key suffixes (#4941)

## Description

- remove keyname suffix from keys


Closes: #2228
This commit is contained in:
Marko
2020-06-03 07:46:29 +02:00
committed by GitHub
parent 0da7d87351
commit 99d88cbe2f
28 changed files with 182 additions and 173 deletions

View File

@@ -232,7 +232,7 @@ func (app *PersistentKVStoreApplication) execValidatorTx(tx []byte) types.Respon
func (app *PersistentKVStoreApplication) updateValidator(v types.ValidatorUpdate) types.ResponseDeliverTx {
key := []byte("val:" + string(v.PubKey.Data))
pubkey := ed25519.PubKeyEd25519{}
pubkey := ed25519.PubKey{}
copy(pubkey[:], v.PubKey.Data)
if v.Power == 0 {