Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup genesis command does not validate public keys of validators #1055

Open
jchappelow opened this issue Oct 3, 2024 · 0 comments
Open

Comments

@jchappelow
Copy link
Member

jchappelow commented Oct 3, 2024

In kwil-admin setup genesis --validator "node0:2a8b9eb0d94be766ad34cb2591f2924477fc397c:1", I have accidentally used the node ID instead of public key. The command does not complain, writing an invalid genesis file:

"validators": [
    {
      "pub_key": "2a8b9eb0d94be766ad34cb2591f2924477fc397c",
      "power": 1,
      "name": "node0"
    }
]

The command should check that the provided key value is an ed25519 public key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant