1
0

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.
This commit is contained in:
Ali Raheem
2018-01-01 21:23:37 +00:00
committed by GitHub
parent 19ba2364b6
commit ed86fee3fe

View File

@@ -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