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

hdkeychain: add CloneWithVersion to set custom HD version bytes #181

Merged
merged 1 commit into from
Sep 21, 2020

Conversation

onyb
Copy link
Contributor

@onyb onyb commented Aug 27, 2020

GH #179 btcsuite/btcd#1617

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.

@mflaxman
Copy link

What's the status of getting this merged? It's needed to take advantage of the functionality added in btcsuite/btcd#1617.

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.
@onyb
Copy link
Contributor Author

onyb commented Sep 17, 2020

@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.

@mflaxman
Copy link

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.

https://github.com/mflaxman/human-rng-golang

Copy link
Member

@jcvernaleo jcvernaleo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

@jcvernaleo jcvernaleo merged commit 063c411 into btcsuite:master Sep 21, 2020
@onyb onyb deleted the slip0132 branch September 21, 2020 13:55
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.

4 participants