From ed86fee3feed60cd2740562318974e86655a29a4 Mon Sep 17 00:00:00 2001 From: Ali Raheem Date: Mon, 1 Jan 2018 21:23:37 +0000 Subject: [PATCH] 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. --- plugins/ledger/ledger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ledger/ledger.py b/plugins/ledger/ledger.py index e6866dc2c..e9a0063d3 100644 --- a/plugins/ledger/ledger.py +++ b/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