-
Notifications
You must be signed in to change notification settings - Fork 125
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
cli: generate account key if not specified #3255
Comments
What is the current behavior? |
For
In substrate, if we're using custom keys, the docs takes us through creating the keystore first before running the node. |
wanted to contribute to this issue, is it okay? |
Of course @1garo ! I am off at the moment and can provide more context in a couple of days! |
Sounds great, in the meantime I'm gonna take a look if I can have some progress. |
Hey @1garo, With the current default config setup, we won't have a scenario where the account would be empty. We want to remove the default values for account and generate one it if it is empty. Happy to answer any questions you have! |
I was able to generate the It passes but later on broke at:
|
Seems like that by generating this new pair, their public key is not understood as a Authority, because it fails in the for i, auth := range Authorities {
if bytes.Equal(pub.Encode(), auth.Key.Encode()) {
return uint32(i), nil
}
} |
Hey @1garo , could you create a draft PR? We could move the conversation there! |
Of course, it's created: #3587 |
I believe we don't have the need to generate an account if not specified since we're still in development and only need development accounts. @EclesioMeloJunior could you confirm? Further, If we want to support the use of auto-generated or external accounts, we'll have to
Thank you for your time and patience @1garo ! I believe this separation isn't a priority for us (core contributors) at the moment. If you're interested in contributing to CLI, I can create issues. |
I would love to! I feel that contributing to the CLI could help me understand gossamer better, so it's a win-win. |
Issue summary
If the account key is not specified in the cli flags, we need to generate one for the user.
The text was updated successfully, but these errors were encountered: