From f8442bb46f90f5a44658ac28921ec56abf1a5991 Mon Sep 17 00:00:00 2001 From: Jonathan Gimeno Date: Fri, 28 Feb 2020 19:06:03 +0100 Subject: [PATCH] add last touches to the PR --- simapp/test_helpers.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/simapp/test_helpers.go b/simapp/test_helpers.go index 4232e7e8d190..3838b26952fb 100644 --- a/simapp/test_helpers.go +++ b/simapp/test_helpers.go @@ -265,6 +265,7 @@ func incrementAllSequenceNumbers(initSeqNums []uint64) { } } +// CreateTestPubKeys generates crypto.PubKeys in ascending order. func CreateTestPubKeys(numPubKeys int) []crypto.PubKey { var publicKeys []crypto.PubKey var buffer bytes.Buffer @@ -281,12 +282,12 @@ func CreateTestPubKeys(numPubKeys int) []crypto.PubKey { return publicKeys } +// NewPubKeyFromHex returns a PubKey from a hex string. func NewPubKeyFromHex(pk string) (res crypto.PubKey) { pkBytes, err := hex.DecodeString(pk) if err != nil { panic(err) } - //res, err = crypto.PubKeyFromBytes(pkBytes) var pkEd ed25519.PubKeyEd25519 copy(pkEd[:], pkBytes) return pkEd