digitalbitbox: fixed some more python3 issues
This commit is contained in:
parent
952049f74b
commit
bece1329cc
|
@ -134,7 +134,7 @@ class DigitalBitbox_Client():
|
||||||
"You cannot access your coins or a backup without the password.\r\n" \
|
"You cannot access your coins or a backup without the password.\r\n" \
|
||||||
"A backup is saved automatically when generating a new wallet.")
|
"A backup is saved automatically when generating a new wallet.")
|
||||||
if self.password_dialog(msg):
|
if self.password_dialog(msg):
|
||||||
reply = self.hid_send_plain(b'{"password":"' + self.password + '"}')
|
reply = self.hid_send_plain(b'{"password":"' + self.password + b'"}')
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
@ -210,7 +210,7 @@ class DigitalBitbox_Client():
|
||||||
|
|
||||||
def dbb_generate_wallet(self):
|
def dbb_generate_wallet(self):
|
||||||
key = self.stretch_key(self.password)
|
key = self.stretch_key(self.password)
|
||||||
filename = b"Electrum-" + time.strftime("%Y-%m-%d-%H-%M-%S") + ".pdf"
|
filename = ("Electrum-" + time.strftime("%Y-%m-%d-%H-%M-%S") + ".pdf").encode('utf8')
|
||||||
msg = b'{"seed":{"source": "create", "key": "%s", "filename": "%s", "entropy": "%s"}}' % (key, filename, b'Digital Bitbox Electrum Plugin')
|
msg = b'{"seed":{"source": "create", "key": "%s", "filename": "%s", "entropy": "%s"}}' % (key, filename, b'Digital Bitbox Electrum Plugin')
|
||||||
reply = self.hid_send_encrypt(msg)
|
reply = self.hid_send_encrypt(msg)
|
||||||
if 'error' in reply:
|
if 'error' in reply:
|
||||||
|
|
Loading…
Reference in New Issue