Closed onyb closed 4 years ago
What's the status of getting this merged? It's needed to take advantage of the functionality added in https://github.com/btcsuite/btcd/pull/1617.
@mflaxman Thanks for the reminder. Kinda forgot to follow up on this with the other reviewers. Should be quick, since the changes are quite straightforward.
FYI: I open-sourced my hackey code (that doesn't use these pending PRs) if you want to see what a use-case looks like.
This adds a new method to the
ExtendedKey
type that allows cloning the extended key with custom HD version bytes. It does not mutate the original extended key on which the method is called.Added some tests to demonstrate the utility of this method, i.e., conversion between standard and
SLIP-0132
extended keys.