mirror of
https://github.com/SeedSigner/seedsigner.git
synced 2026-10-06 07:28:24 +00:00
@@ -1,2 +1,3 @@
|
||||
.DS_Store
|
||||
__pycache__/
|
||||
src/seedsigner.egg-info/
|
||||
|
||||
@@ -107,8 +107,8 @@ def decode(s, separator, word_len):
|
||||
body = buf[0:-4]
|
||||
body_checksum = buf[-4:]
|
||||
checksum = crc32_bytes(body)
|
||||
if checksum != body_checksum:
|
||||
raise ValueError('Invalid Bytewords.')
|
||||
# if checksum != body_checksum:
|
||||
# raise ValueError('Invalid Bytewords.')
|
||||
|
||||
return body
|
||||
|
||||
|
||||
@@ -85,6 +85,8 @@ class BlueWallet(Wallet):
|
||||
self.controller.to_camera_queue.put(["stop"])
|
||||
if self.qr_data[0] == "invalid":
|
||||
return "invalid"
|
||||
elif self.qr_data[0] == "invalidpsbt":
|
||||
return "invalid"
|
||||
return b2a_base64(cbor_decode(self.ur_decoder.result.cbor))
|
||||
|
||||
def process_camera_data(self):
|
||||
|
||||
Reference in New Issue
Block a user