Merge pull request #56 from newtonick/0_4_3

Blue Wallet and UR2 fix
This commit is contained in:
SeedSigner
2021-07-27 14:52:06 -04:00
committed by GitHub
3 changed files with 5 additions and 2 deletions
+1
View File
@@ -1,2 +1,3 @@
.DS_Store
__pycache__/
src/seedsigner.egg-info/
+2 -2
View File
@@ -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
+2
View File
@@ -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):