commit 012a636fabf9eeaaac3e020acbf12077afcbe09e
parent 1cc7e61433ee5ac579f713066891c6651aeba95d
Author: ThomasV <thomasv@electrum.org>
Date: Tue, 2 Jan 2018 09:47:36 +0100
Merge pull request #3633 from wolfmankurd/master
Show message hash when signing
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/plugins/ledger/ledger.py b/plugins/ledger/ledger.py
@@ -220,10 +220,11 @@ 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().upper()
# prompt for the PIN before displaying the dialog if necessary
client = self.get_client()
address_path = self.get_derivation()[2:] + "/%d/%d"%sequence
- self.handler.show_message("Signing message ...")
+ self.handler.show_message("Signing message ...\r\nMessage hash: "+message_hash)
try:
info = self.get_client().signMessagePrepare(address_path, message)
pin = ""