-
Notifications
You must be signed in to change notification settings - Fork 498
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
Add segwit xpub to ku #384
base: main
Are you sure you want to change the base?
Conversation
pycoin/cmds/ku.py
Outdated
@@ -43,7 +43,7 @@ def get_entropy(): | |||
return entropy | |||
|
|||
|
|||
def create_output(item, key, output_key_set, subkey_path=None): | |||
def create_output(item, key, output_key_set, args, subkey_path=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of making it an option, can you simply look to see if the network supports bip49 and/or bip84, and always print it if so?
This will break a lot of tests because it will add output. Go ahead and eyeball the diffs, and if they look okay, I can quickly repair them after I commit your fix (using this REPAIR_TESTS=1 py.test tests
trick – it will rewrite the broken tests. If you can't figure out what I'm talking about, I'm happy to repair the tests, since it takes just a minute).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(See inline comments)
…ided is a bip node. Remove args from cmd use
Hi,
The diff is pretty messy, but I think it looks fine. If you could repair the tests that would be great. |
This adds the option to get ku output also for Bitcoin BIP49 p2sh segwit and BIP84 segwit xPubs
Can be considered if the
bipxx_as_string
codes would be better in HierarchialKey