multisig wallet order does not matter

This commit is contained in:
scgbckbone 2022-06-06 17:06:37 +02:00
parent 968ba55e16
commit 0237bb23da
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,6 @@
## 4.1.6 - June 6, 2022
- Bugfix: order of multisig wallet registration does NOT matter in PSBT signing
## 4.1.5 - May 4, 2022
- Enhancement: Support P2TR outputs (pay to Taproot) in PSBT files. Allows

View File

@ -278,6 +278,9 @@ class MultisigWallet:
# the same prefix path per-each xfp, as indicated
# xfp_paths (unordered)?
# - could also check non-prefix part is all non-hardened
if len(xfp_paths) != len(self.xfp_paths):
# cannot be the same if len(w0.N) != len(w1.N)
return False
for x in xfp_paths:
if x[0] not in self.xfp_paths:
return False

View File

@ -1071,8 +1071,7 @@ class psbtObject(psbtProxy):
assert N == len(xfp_paths)
for c in candidates:
if c.M == M:
assert c.N == N
if c.M == M and c.N == N:
self.active_multisig = c
break