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

Refactor Wallet import code #5638

Merged
merged 4 commits into from Jan 17, 2024
Merged

Conversation

Kukks
Copy link
Member

@Kukks Kukks commented Jan 2, 2024

The code for wallet import was incredibly messy as it evolved over time from various requests.

This PR:

@Kukks Kukks force-pushed the passportimport branch 8 times, most recently from 81a5b0a to 8193358 Compare January 3, 2024 15:12
@NicolasDorier
Copy link
Member

NicolasDorier commented Jan 17, 2024

We actually have support MetacoSA/NBitcoin#1141

Will try with this, can probably simplify a bit.

Kukks and others added 3 commits January 17, 2024 16:45
The code for wallet import was incredibly messy as it evolved over time from various requests.

This PR:
* splits up each supported format into its own file
* Supports taproot descriptors (through a hack until NBitcoin supports it internally) fixes btcpayserver#5518
* Reduces different paths for handling electrum/non-electrum xpubs
* Allows plugins to add their own import support formats for onchain wallets.
@NicolasDorier NicolasDorier force-pushed the passportimport branch 3 times, most recently from 36d71ca to 49937ee Compare January 17, 2024 08:36
@NicolasDorier NicolasDorier merged commit c5a0e28 into btcpayserver:master Jan 17, 2024
3 checks passed
@dennisreimann dennisreimann deleted the passportimport branch January 17, 2024 09:26
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.

[Bug]: Importing Taproot account from Passport fails with no error
2 participants