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

fix: assuming issue 486 is Zpub instead of xpub #492

Closed
wants to merge 1 commit into from

Conversation

jdlcdl
Copy link
Collaborator

@jdlcdl jdlcdl commented Dec 10, 2024

What is this PR for?

Assuming that issue #486 is about cosigners expressed as "Zpub" instead of "xpub", this may be a fix.

Note: Need to verify that this will not cause problems when signing a BW PSBT w/ wallet descriptor loaded.

What is the purpose of this pull request?

  • Bug fix
  • New feature
  • Docs update
  • Other

@odudex
Copy link
Member

odudex commented Dec 10, 2024

Tested this on an on-chain, 2 of 3 wallet, with 2 Zpus and a one xpub as cosigners.
Successfully loaded the wallet descriptor and signed, with both Zpub and xpub respective keys.

@@ -294,6 +298,7 @@ def parse_wallet(wallet_data, allow_assumption=None):
)
return descriptor, label
except:
raise
Copy link
Member

@odudex odudex Dec 10, 2024

Choose a reason for hiding this comment

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

On my tests I removed this duplicated raise

@odudex
Copy link
Member

odudex commented Dec 10, 2024

To fix pylint issue, we could put code below

# Try to parse as a key-value file
try:

inside a dedicated function: parse_key_value_file

@odudex
Copy link
Member

odudex commented Dec 11, 2024

We can close this one, right?

@jdlcdl jdlcdl closed this Dec 11, 2024
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.

2 participants