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

fix hd wallet path based on bit44 #2028

Closed
wants to merge 1 commit into from
Closed

Conversation

karlb
Copy link
Contributor

@karlb karlb commented Mar 1, 2023

Rebases the original PR #1904 on current master. Original PR description follows:

Signed-off-by: Hiroki Yasui hiroki.yasui@datachain.jp

Description

This PR is for #1903

For now, HD wallet derivation path is not based on BIP-44 in mycelo. This difference makes key synchronization among other libraries difficult. Proper path must be like m / purpose' / coin_type' / account' / change / address_index. This is specification.
e.g. "m/44'/60'/0'/0/0" is correct, but current"m/1/0" is not. mycelo code

For example, developer account keys are generated after running geth nodes with specific mnemonic through mycelo. Then I want to deploy contracts onto celo geth nodes. However it's difficult to generate same address with mnemonic using other libraries like @truffle/hdwallet-provider in truffle-config.json

I made sure same addresses are generated between mycelo and @truffle/hdwallet-provider using the same MNEMONIC.

Related issues

Signed-off-by: Hiroki Yasui <hiroki.yasui@datachain.jp>
@akeyless-target-app
Copy link

Coverage from tests in ./e2e_test/... for ./consensus/istanbul/... at commit 42ba5e2

coverage: 49.7% of statements across all listed packages
coverage:  63.2% of statements in consensus/istanbul
coverage:  41.8% of statements in consensus/istanbul/announce
coverage:  55.8% of statements in consensus/istanbul/backend
coverage:   0.0% of statements in consensus/istanbul/backend/backendtest
coverage:  24.3% of statements in consensus/istanbul/backend/internal/replica
coverage:  62.4% of statements in consensus/istanbul/core
coverage:  50.0% of statements in consensus/istanbul/db
coverage:   0.0% of statements in consensus/istanbul/proxy
coverage:  64.4% of statements in consensus/istanbul/uptime
coverage:  51.8% of statements in consensus/istanbul/validator
coverage:  79.2% of statements in consensus/istanbul/validator/random
CommentID: f13a6e934a

@palango
Copy link
Contributor

palango commented Mar 1, 2023

Also superseeds #1904

@karlb karlb closed this Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BIP-44 based HD wallet in mycelo
3 participants