diff --git a/types/pubkey.go b/types/pubkey.go deleted file mode 100644 index e5cd5fbf3..000000000 --- a/types/pubkey.go +++ /dev/null @@ -1,16 +0,0 @@ -package types - -const ( - PubKeyEd25519 = "ed25519" -) - -func Ed25519Validator(pubkey []byte, power int64) Validator { - return Validator{ - // Address: - PubKey: PubKey{ - Type: PubKeyEd25519, - Data: pubkey, - }, - Power: power, - } -} diff --git a/types/util.go b/types/validator.go similarity index 85% rename from types/util.go rename to types/validator.go index 0924ab5ff..e443a3361 100644 --- a/types/util.go +++ b/types/validator.go @@ -8,6 +8,21 @@ import ( cmn "github.com/tendermint/tmlibs/common" ) +const ( + PubKeyEd25519 = "ed25519" +) + +func Ed25519Validator(pubkey []byte, power int64) Validator { + return Validator{ + // Address: + PubKey: PubKey{ + Type: PubKeyEd25519, + Data: pubkey, + }, + Power: power, + } +} + //------------------------------------------------------------------------------ // Validators is a list of validators that implements the Sort interface