Browse Source

Format of message hash to match Ledger

On signing SHA256 of message is shown on Ledger in caps. Make Electrum show in same format to save confusion.
3.1
Ali Raheem 7 years ago
committed by GitHub
parent
commit
ed86fee3fe
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      plugins/ledger/ledger.py

2
plugins/ledger/ledger.py

@ -220,7 +220,7 @@ class Ledger_KeyStore(Hardware_KeyStore):
def sign_message(self, sequence, message, password):
self.signing = True
message = message.encode('utf8')
message_hash = hashlib.sha256(message).hexdigest()
message_hash = hashlib.sha256(message).hexdigest().upper()
# prompt for the PIN before displaying the dialog if necessary
client = self.get_client()
address_path = self.get_derivation()[2:] + "/%d/%d"%sequence

Loading…
Cancel
Save