1
0

use base43 in order to send transactions by QR code

This commit is contained in:
ThomasV
2015-02-26 13:59:29 +01:00
parent c427e085b3
commit 46c290e30d
3 changed files with 29 additions and 26 deletions

View File

@@ -2240,8 +2240,8 @@ class ElectrumWindow(QMainWindow):
return
# else if the user scanned an offline signed tx
# transactions are binary, but qrcode seems to return utf8...
import base64
z = base64.b64decode(data.decode('utf8'))
data = data.decode('utf8')
z = bitcoin.base_decode(data, length=None, base=43)
data = ''.join(chr(ord(b)) for b in z).encode('hex')
tx = self.tx_from_text(data)
if not tx: