-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed HD key conversion functions with more sensible names.
The old name `generateDerivedHDPubKey` is misleading - it doesn't generate anything new, it just converts the HD pubkey to P2PKH format. It also works for any HD child address, so added that to docs. Backwards compatibility: there's a 1-line wrapper function with the old name, to maintain binary compatibility. Also renamed my `generateDerivedHDPrivKeyWIF` (which was named that way to be consistent!) - it just converts the HD privkey to a non-extended non-HD private key (EC Privkey) The EC Privkey is required to sign transactions, since you can't sign a transaction using an extended HD key, the API doesn't support it.
- Loading branch information
Showing
5 changed files
with
83 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters