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

better integrate BLS key management via hmy and node.sh #193

Open
2 tasks done
yelllowsin opened this issue Mar 26, 2020 · 4 comments
Open
2 tasks done

better integrate BLS key management via hmy and node.sh #193

yelllowsin opened this issue Mar 26, 2020 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@yelllowsin
Copy link

yelllowsin commented Mar 26, 2020

Problem/limitation At Hand

The location where BLS keys and Account Keys are generated is a bit confusing. Currently, when you create a new account key, by default it is created on .hmy_cli/account-keys while when you create a BLS key, it is created within the same directory the hmy binary is located. This is confusing, because on documenation, when you want to run with multiple BLS keys using parameter -M via node.sh, keys are loaded by default from .hmy/blskeys, folder which has to be created manually by the user. Shouldn't it be .hmy_cli/blskeys folder instead?

Which component?

  • hmy_cli
  • node script

Proposed Solution

I propose that when you create a new BLS key via hmy it should be created by default inside folder .hmy_cli/blskeys. If the folder doesn't exist, the hmy should create it automatically the first time the user calls the command, the same way it is done when you create an account wallet whereas .hmy_cli/account-keys is also created automatically in case it doesn't exist.

Also, i propose we modify node.sh to read by default the keys from .hmy_cli/blskeys instead of .hmy/blskeys. So, you keep everything that is HMY related inside hmy_cli, much more organized.

You could extend key list to list blskeys and accounts, like for example:

./hmy keys list accounts
./hmy keys list blskeys

Now from all bls keys listed via ./hmy keys list blskeys you can make the hmy use them as keys for --add-bls-key, --bls-pubkeys or whatever parameter that uses any bls key.

Also, i would suggest that we deprecate both parameters -k for ONE key and -M completely on node.sh as i don't see any reason for them to exist now that we have multi BLS key support. Isn't it the same to run with -M or with -k for ONE key?

I believe these suggestions would make both node and hmy more integrated, using the same folders and ease the final user experience.

@yelllowsin yelllowsin added the enhancement New feature or request label Mar 26, 2020
@yelllowsin
Copy link
Author

@Daniel-VDM i am assigning this to you, so you can look and check if my proposal makes any sense. If not you can close it or propose something else.

@OgreAbroad2
Copy link

I love this plan. Makes it simpler for the user. We are literally encouraging someone who is struggling with this right now in the Volunteers chat. Lol

@Chainode
Copy link

This will make the whole BLS creation process and use of multi BLS much cleaner and straightforward. It would be great to implement this.

@mellertson
Copy link

Reading the suggestions in this issue cleared up a few questions for me, so I can also say implementing it would be helpful.

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

No branches or pull requests

5 participants