mirror of
https://github.com/SeedSigner/seedsigner.git
synced 2026-10-05 15:08:25 +00:00
Merge pull request #167 from kdmukai/0.5.0-pre3
Support for Nunchuk animated multisig wallet descriptors
This commit is contained in:
@@ -212,7 +212,7 @@ class DecodeQR:
|
||||
if not self.decoder:
|
||||
return 0
|
||||
|
||||
if self.qr_type in [QRType.PSBT__UR2, QRType.OUTPUT__UR, QRType.ACCOUNT__UR]:
|
||||
if self.qr_type in [QRType.PSBT__UR2, QRType.OUTPUT__UR, QRType.ACCOUNT__UR, QRType.BYTES__UR]:
|
||||
return int(self.decoder.estimated_percent_complete() * 100)
|
||||
|
||||
elif self.qr_type in [QRType.PSBT__SPECTER]:
|
||||
@@ -278,7 +278,8 @@ class DecodeQR:
|
||||
if self.qr_type in [QRType.BYTES__UR]:
|
||||
cbor = self.decoder.result_message().cbor
|
||||
raw = Bytes.from_cbor(cbor).data
|
||||
check = 'multisig setup file' in raw.decode("utf-8").lower()
|
||||
data = raw.decode("utf-8").lower()
|
||||
check = 'policy:' in data and "format:" in data and "derivation:" in data
|
||||
|
||||
return check
|
||||
|
||||
|
||||
@@ -79,6 +79,7 @@ class ScanView(View):
|
||||
|
||||
if not descriptor.is_basic_multisig:
|
||||
# TODO: Handle single-sig descriptors?
|
||||
print(f"Received single sig descriptor: {descriptor}")
|
||||
return Destination(NotYetImplementedView)
|
||||
|
||||
self.controller.multisig_wallet_descriptor = descriptor
|
||||
|
||||
Reference in New Issue
Block a user