-
Notifications
You must be signed in to change notification settings - Fork 373
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
Public key format mismatch between gnoland secrets init
and gnoland genesis validator add
#2331
Comments
gnoland secrets init
and gnoland genesis validator add`gnoland secrets init
and gnoland genesis validator add`
gnoland secrets init
and gnoland genesis validator add`gnoland secrets init
and gnoland genesis validator add
I spoke already about this with @moul who agreed on the bad UX and agreed on opening the issue. I'm fine to wire a fix. |
This is one of those "it's not a bug it's a feature" moments in Gno Ed25519 keys are saved as base64 encoded Amino on disk, ex: This is legacy logic that we haven't really touched (there was no need) -- it's fine to keep the key not human readable. Our
The flow currently is: I think we could've easily gone the route of just taking in the public key as base64 amino encoded, and decoding it in the What do you think @r3v4s, @albttx? Should we standardize this in some way? |
Thanks @zivkovicmilos for providing all the context. At the moment, secrets get provides Address and Key information in plain text. I propose either outputting them as json by adding a |
@zivkovicmilos
|
I agree with @zivkovicmilos on this, the key must not be stored in bech32 format because the key could be used somewhere else. See it like the wallet private key, it's for Gno, but you can use the same private key anywhere else. Bonus, if the key leak, it's harder to determine which chains the key belongs. But i agree, i already discuss with milos on it, the CLI must be improved for |
Closed by #2393 |
Description:
The
gnoland genesis validator add
command requires a public key input in the Bech32 format. However, the current implementation of thegnoland secrets init
command generates a public key that is not in the Bech32 format. This discrepancy causes an incompatibility, preventing the successful addition of validators using thegnoland genesis validator add
command.Steps to Reproduce:
Expected Result:
The public key generated by
gnoland secrets init
should be in Bech32 format, allowing it to be directly used with thegnoland genesis validator add
command without any format conversion.Actual Result:
The public key generated is not in Bech32 format, leading to an error when attempting to use it with the
gnoland genesis validator add
command.Suggested Fix:
Update the
gnoland secrets init
command to generate the public key in Bech32 format or provide a utility to convert the existing format to Bech32.The text was updated successfully, but these errors were encountered: