Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
fix: even public key generation (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
atanmarko committed Sep 7, 2023
1 parent 97f145f commit 7d9a26c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion secrets/helper/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func InitECDSAValidatorKey(secretsManager secrets.SecretsManager) (types.Address
}

y := validatorKey.PublicKey.Y.Bytes()
if y[31]%2 == 0 {
if len(y) > 31 && y[31]%2 == 0 {
break
}
}
Expand Down

0 comments on commit 7d9a26c

Please sign in to comment.