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

bitcoin: allow multisig at arbitrary keypaths #1223

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

benma
Copy link
Collaborator

@benma benma commented Jun 4, 2024

Before, we would restrict the account-level keypaths for multisig to be:

  • m/48'/coin'/account'/1' for P2WSH_P2SH
  • m/48'/coin'/account'/2' for P2WSH

Since the keypath is verified by the user and the coin network is confirmed for every receive/send, ransom and isolation bypass attacks are mitigated sufficiently, and we can lift this restriction. Note that for wallet policies (of which multisig is a subset of), arbitrary keypaths are already allowed.

When exporting an xpub, we furthermore warned about "unusual" keypaths. In addition to the above keypaths, we also allow exporting the xpub at m/45' without warning, as this path is used by Unchained for their vaults.

@benma benma requested a review from asi345 June 4, 2024 08:10
Before, we would restrict the account-level keypaths for multisig to
be:

- m/48'/coin'/account'/1' for P2WSH_P2SH
- m/48'/coin'/account'/2' for P2WSH

Since the keypath is verified by the user and the coin network is
confirmed for every receive/send, ransom and isolation bypass attacks
are mitigated sufficiently, and we can lift this restriction. Note
that for wallet policies (of which multisig is a subset of), arbitrary
keypaths are already allowed.

When exporting an xpub, we furthermore warned about "unusual"
keypaths. In addition to the above keypaths, we also allow exporting
the xpub at m/45' without warning, as this path is used by Unchained
for their vaults.
Copy link
Contributor

@asi345 asi345 left a comment

Choose a reason for hiding this comment

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

seems good, tACK 👍

@benma benma merged commit 897e9d3 into BitBoxSwiss:master Jun 5, 2024
1 check passed
@benma benma deleted the ms-keypaths branch June 5, 2024 12:37
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