mirror of
https://github.com/tendermint/tendermint.git
synced 2026-06-06 06:13:15 +00:00
remove testutil
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
package testutil
|
||||
|
||||
import (
|
||||
"github.com/tendermint/abci/types"
|
||||
"github.com/tendermint/go-crypto"
|
||||
)
|
||||
|
||||
//----------------------------------------
|
||||
|
||||
// UTILITY
|
||||
func Validator(secret string, power uint64) *types.Validator {
|
||||
privKey := crypto.GenPrivKeyEd25519FromSecret([]byte(secret))
|
||||
return &types.Validator{
|
||||
PubKey: privKey.PubKey().Bytes(),
|
||||
Power: power,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user