Skip to content

Commit

Permalink
add last touches to the PR
Browse files Browse the repository at this point in the history
  • Loading branch information
jgimeno committed Feb 28, 2020
1 parent 2b688a0 commit f8442bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion simapp/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f8442bb

Please sign in to comment.