Skip to content

Custom child derivation path does not parse 'p' correctly. #1

Description

@sbuss

While using your awesome tool to build some test vectors in sbuss/bitmerchant#10 I noticed that custom child derivation paths are not parsed correctly if the path contains a 'p' character.

Reproducing the failure

Given the BIP32 key dgpv51eADS3spNJh8qd8KgFeT3V2QZBDSkYUqbaKDwZpDN4jd3uLcR7i6CruVDsbacyx3NL2puToxM9MQYhZSsD8tBkXeQkm5btsKxpZawwPQND on DogecoinMainNet, consider the paths m/0, m/0p, and m/0'.

The path m/0 produces expected results:

screen shot 2014-02-23 at 1 50 53 am

But if you try to do a standard path using p instead of ' it ignores the p and treats it as a non-prime derivation (You can see these results are the same as m/0):

screen shot 2014-02-23 at 1 54 22 am

Finally, the m/0' path works and produces expected results (different from above):
screen shot 2014-02-23 at 1 53 21 am

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions