Merge branch 'master' of github.com:Coldcard/firmware
This commit is contained in:
commit
8de49876b4
@ -1605,8 +1605,6 @@ async def validate_xpub_for_ms(obj, af_str, deriv, chain, my_xfp, xpubs):
|
||||
ln = obj.get(af_str)
|
||||
if not deriv:
|
||||
deriv = n_deriv
|
||||
else:
|
||||
assert deriv == n_deriv, "wrong derivation: %s != %s" % (deriv, n_deriv)
|
||||
|
||||
return MultisigWallet.check_xpub(xfp, ln, deriv, chain.ctype, my_xfp, xpubs), deriv
|
||||
|
||||
@ -1734,10 +1732,11 @@ async def ondevice_multisig_create(mode='p2wsh', addr_fmt=AF_P2WSH, is_qr=False)
|
||||
await ux_show_story(msg)
|
||||
return
|
||||
|
||||
# add myself if not included already
|
||||
# add myself if not included already ?
|
||||
if not num_mine:
|
||||
if await ux_show_story("Add current Coldcard with above XFP ?",
|
||||
title="[%s]" % xfp2str(my_xfp)):
|
||||
ch = await ux_show_story("Add current Coldcard with above XFP ?",
|
||||
title="[%s]" % xfp2str(my_xfp))
|
||||
if ch == "y":
|
||||
dis.fullscreen("Wait...")
|
||||
with stash.SensitiveValues() as sv:
|
||||
node = sv.derive_path(deriv)
|
||||
@ -1745,12 +1744,11 @@ async def ondevice_multisig_create(mode='p2wsh', addr_fmt=AF_P2WSH, is_qr=False)
|
||||
|
||||
N = len(xpubs)
|
||||
|
||||
if N > MAX_SIGNERS:
|
||||
await ux_show_story("Too many signers, max is %d." % MAX_SIGNERS)
|
||||
if (N > MAX_SIGNERS) or (N < 2):
|
||||
await ux_show_story("Invalid number of signers,min is 2 max is %d." % MAX_SIGNERS)
|
||||
return
|
||||
|
||||
# pick useful M value to start
|
||||
assert N >= 2
|
||||
M = await ux_enter_number("How many need to sign?(M)", N, can_cancel=True)
|
||||
if not M:
|
||||
await ux_dramatic_pause('Aborted.', 2)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user