-
Notifications
You must be signed in to change notification settings - Fork 10
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
PP-183: create a tool to generate L2 private keys #29
PP-183: create a tool to generate L2 private keys #29
Conversation
Added a rust file to generate the wallet, the output is the print of the key Navigate to run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kenny08gt Thank you for this.
Apart from the comments I left, I think we should also include the new command in the related readme if any, if not we should create a new one to include the instructions on how to run it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kenny08gt Thank you for these changes. I've just left some minor comments.
Rename variable for more clarity. Co-authored-by: Antonio Morrone <dev@antomor.com>
Co-authored-by: Antonio Morrone <dev@antomor.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from the comments I left,
- In the README.md file I'd specify that we need to an instance of the zkserver running locally. QQ: where the server address is retrieved exactly? Could we use the command pointing to a remote server?
- I'd print the private key of the wallet just generated, otherwise the tools isn't useful 😅
@antomor thanks for the review.
Added more instructions.
Added support to multiple networks. Here is setup the server to point and in line 51 the provider is initialized.
Is already printing the addresses. Also added three unit tests |
@kenny08gt Thank you for the changes.
Yes, this is true, but unless I'm missing something, we are currently printing the address/private key received, while we should print the L2 private key we are creating. The test part is really appreciated, thank you. Not sure about what's the standard in rust, but I think it would be better to have them in a separate file, possibly in the test folder. Furthermore, I've suggested a clarification for the readme file. |
@antomor thanks for the explanation. Now printing the L2 private key and also separate the tests to separate file. |
Clarify the testnet and mainent references Co-authored-by: Antonio Morrone <dev@antomor.com>
What
Create a command to generate a wallet on L2, with giving credentials (address and private key) or generate a new random one.
Why
In deployment of the project that was needed
Ref
https://rsklabs.atlassian.net/browse/PP-183