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

[R4R] add 'm/' prefix to hd path #263

Merged
merged 3 commits into from
Jan 4, 2022
Merged

[R4R] add 'm/' prefix to hd path #263

merged 3 commits into from
Jan 4, 2022

Conversation

forcodedancing
Copy link
Contributor

@forcodedancing forcodedancing commented Dec 27, 2021

Description

This pr fixes issues when 1) deriving hd wallet from a path; 2) formatting the path from a hd wallet.

Rationale

BIP-44 defines the general specifications of hd wallets. The path is BIP-44 is defined as
m / purpose' / coin_type' / account' / change / address_index
However, m is missed in the earlier implementation. To fix this issue, we added m to follow the specifications.

Example

n/a

Changes

  • changed methods to derive hd wallets/format a hd wallet's path

@forcodedancing forcodedancing changed the title [WIP]: add 'm/' prefix to hd path [R4R]: add 'm/' prefix to hd path Dec 27, 2021
@forcodedancing forcodedancing changed the title [R4R]: add 'm/' prefix to hd path [R4R] add 'm/' prefix to hd path Dec 28, 2021
@unclezoro
Copy link
Collaborator

Please do test on HD, need ensure the address derivative is same and the function works.

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.

3 participants