1
0

compact serialized format for unsigned and partially signed transactions.

This commit is contained in:
ThomasV
2014-06-21 21:06:09 +02:00
parent 378633e6fa
commit 0636ef8b32
8 changed files with 251 additions and 177 deletions

View File

@@ -82,7 +82,15 @@ class Plugin(BasePlugin):
qrcode = self.scan_qr()
if not qrcode:
return
tx = self.win.tx_from_text(qrcode)
data = qrcode
# transactions are binary, but qrcode seems to return utf8...
z = data.decode('utf8')
s = ''
for b in z:
s += chr(ord(b))
data = s.encode('hex')
tx = self.win.tx_from_text(data)
if not tx:
return
self.win.show_transaction(tx)