multisig wallet order does not matter
This commit is contained in:
parent
968ba55e16
commit
0237bb23da
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user