Browse Source

digitalbitbox: fix stretch_key bytes/str confusion

3.3.3.1
Janus 6 years ago
parent
commit
9a3f2e8fcc
  1. 4
      electrum/plugins/digitalbitbox/digitalbitbox.py

4
electrum/plugins/digitalbitbox/digitalbitbox.py

@ -129,8 +129,8 @@ class DigitalBitbox_Client():
return False
def stretch_key(self, key):
return to_hexstr(hashlib.pbkdf2_hmac('sha512', key.encode('utf-8'), b'Digital Bitbox', iterations = 20480))
def stretch_key(self, key: bytes):
return to_hexstr(hashlib.pbkdf2_hmac('sha512', key, b'Digital Bitbox', iterations = 20480))
def backup_password_dialog(self):

Loading…
Cancel
Save