Skip to content

Commit

Permalink
set default key to bls12381
Browse files Browse the repository at this point in the history
  • Loading branch information
melekes committed Jan 10, 2025
1 parent 5463386 commit c8ccadf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion test/e2e/networks/ci.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ abci_protocol = "builtin"
prometheus = true
peer_gossip_intraloop_sleep_duration = "50ms"
abci_tests_enabled = true
key_type = "bls12_381"

[validators]
validator01 = 100
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/pkg/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -673,13 +673,13 @@ func (g *keyGenerator) Generate(keyType string) crypto.PrivKey {
switch keyType {
case secp256k1.KeyType:
return secp256k1.GenPrivKeySecp256k1(seed)
case bls12381.KeyType:
case "", bls12381.KeyType:
pk, err := bls12381.GenPrivKey()
if err != nil {
panic(fmt.Sprintf("unrecoverable error when generating key; key type %s, err %v", bls12381.KeyType, err))
}
return pk
case "", ed25519.KeyType:
case ed25519.KeyType:
return ed25519.GenPrivKeyFromSecret(seed)
default:
panic("KeyType not supported") // should not make it this far
Expand Down

0 comments on commit c8ccadf

Please sign in to comment.