Skip to content

Commit

Permalink
Merge #504: Always use h instead of ' for hardened derivation path
Browse files Browse the repository at this point in the history
c96f587 Always use h instead of ' for hardened derivation path (Andrew Chow)

Pull request description:

  Changes KeyOriginInfo to use h instead of ' for hardened derivation paths. Also checks this in the tests.

Top commit has no ACKs.

Tree-SHA512: aa72b601cc07938eb79113f362991a83b6fc8353f2dab29903dc3ab3c9d19d0a66f53c94cfcab1150c1a95fa915800d0767ee47707c6eef2d9c75c9914b1149e
  • Loading branch information
achow101 committed Apr 7, 2021
2 parents cd23d5b + c96f587 commit 9c06059
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 33 deletions.
2 changes: 1 addition & 1 deletion hwilib/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def _path_string(self) -> str:
i &= ~HARDENED_FLAG
s += "/" + str(i)
if hardened:
s += "'"
s += "h"
return s

def to_string(self) -> str:
Expand Down

0 comments on commit 9c06059

Please sign in to comment.