8000 Add `--mnemonic`, `--mnemonic-path` flag to homi for mnemonic-based key generation by ian0371 · Pull Request #1813 · klaytn/klaytn · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Aug 19, 2024. It is now read-only.

Add --mnemonic, --mnemonic-path flag to homi for mnemonic-based key generation #1813

Merged
merged 8 commits into from
Mar 24, 2023

Conversation

ian0371
Copy link
Contributor
@ian0371 ian0371 commented Mar 20, 2023

Proposed changes

This PR adds --mnemonic and --mnemonic-path flags to homi. Homi will generate nodekeys based on the given mnemonic and path. Default path is eth (m/44'/60'/0'/0/).
It also provides a special alias test,junk = test,test,test,test,test,test,test,test,test,test,test,junk which is commonly used among dev tools.

$ homi setup --baobab-test --cn-num 4 --mnemonic test,junk 
...
$ cat homi-output/keys/keystore* | jq .address
"f39fd6e51aad88f6f4ce6ab8827279cfffb92266"
"70997970c51812dc3a010c7d01b50e0d17dc79c8"
"3c44cdddb6a900fa2b585dd299e03d12fa4293bc"
"90f79bf6eb2c4f870365e785982e1f101e93b906"

Types of changes

Please put an x in the boxes related to your change.

  • Bugfix
  • New feature or enhancement
  • Others

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have read the CONTRIBUTING GUIDELINES doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes ($ make test)
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in downstream modules

Related issues

  • Please leave the issue numbers or links related to this PR here.

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

@github-advanced-security
Copy link

You have successfully added a new CodeQL configuration .github/workflows/CodeQL.yml:CodeQL-Build. As part of the setup process, we have scanned this repository and found 6 existing alerts. Please check the repository Security tab to see all alerts.

blukat29
blukat29 previously approved these changes Mar 20, 2023
@ian0371 ian0371 requested review from aidan-kwon and blukat29 March 21, 2023 04:53
@ian0371 ian0371 changed the title Add --mnemonic flag to homi for mnemonic-based key generation Add --mnemonic, --mnemonic-path flag to homi for mnemonic-based key generation Mar 21, 2023
blukat29
blukat29 previously approved these changes Mar 21, 2023
@ian0371 ian0371 merged commit 573f5a4 into klaytn:dev Mar 24, 2023
@ian0371 ian0371 deleted the homi-mnemonic branch March 24, 2023 00:45
@JayChoi1736 JayChoi1736 mentioned this pull request Jul 24, 2023
20 tasks
@ian0371 ian0371 mentioned this pull request Feb 5, 2024
9 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0