Skip to content
This repository was archived by the owner on Feb 16, 2025. It is now read-only.

Quickfix: update coldcard wallet config output to include bip32paths - #49

Merged
waldenraines merged 2 commits into
unchained-capital:masterfrom
humanumbrella:update-coldcard-wallet-config-format
Jan 12, 2021
Merged

Quickfix: update coldcard wallet config output to include bip32paths#49
waldenraines merged 2 commits into
unchained-capital:masterfrom
humanumbrella:update-coldcard-wallet-config-format

Conversation

@humanumbrella

Copy link
Copy Markdown
Contributor

Coldcard released firmware version 3.2.1 today. It has several multisig updates.

Originally we left out the Derivation parameter in our wallet config files (even though we had (and still have) access to it via what comes in) because the Coldcard was only paying attention to the first entry for Derivation. And in an effort to alleviate confusion (and because it wasn't a required parameter at the time), we left it out completely and happily continued with Derivation: Unknown.

Xpub specific derivations are now supported and Derivation: Unknown is no longer supported. Added logic to mask out the derivation to the proper depth (included in the xpub itself) if we do not know the bip32path for a particular xpub in the braid.

Another major change in the latest firmware update is that multiple xpubs from the same xfp are no longer supported. We had a fixture setup like this, so I updated the fixture.

More line changes than expected because I ran it through prettier.

I expect that we will be integrating changes from #44 soon, but I wanted to go ahead and submit a solution to the current situation. I believe this does it. If you use the older firmware, it will only look at the first derivation path, but I believe that will be okay.

Comment thread src/coldcard.js Outdated
@waldenraines

Copy link
Copy Markdown
Contributor

If you use the older firmware, it will only look at the first derivation path, but I believe that will be okay.

I'll test the prior version of the firmware, have to downgrade anyway due to a bug in cold card.

Comment thread src/coldcard.js
Comment thread src/coldcard.js

@bucko13 bucko13 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! Sounds like we're leaning towards updating the version number to imply this isn't backwards compatible.

@waldenraines

waldenraines commented Jan 12, 2021

Copy link
Copy Markdown
Contributor

Old firmware, old config - Works
Old firmware, new config - Works
New firmware, old config - Doesn't work, cannot import config. If you have an old config installed and then upgrade you can sign.
New firmware, new config - Works

@waldenraines waldenraines left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Everything I tested worked as expected

@waldenraines
waldenraines merged commit be5adc7 into unchained-capital:master Jan 12, 2021
soralit pushed a commit to CoboVault/unchained-wallets that referenced this pull request Jan 18, 2021
…nchained-capital#49)

* quickfix: update coldcard wallet config to include bip32paths

* swap version to imply this isn't backwards compatible
@humanumbrella
humanumbrella deleted the update-coldcard-wallet-config-format branch March 6, 2021 00:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants