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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
plugins/ledger/ledger.py
|
@ -220,7 +220,7 @@ class Ledger_KeyStore(Hardware_KeyStore): |
|
|
def sign_message(self, sequence, message, password): |
|
|
def sign_message(self, sequence, message, password): |
|
|
self.signing = True |
|
|
self.signing = True |
|
|
message = message.encode('utf8') |
|
|
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 |
|
|
# prompt for the PIN before displaying the dialog if necessary |
|
|
client = self.get_client() |
|
|
client = self.get_client() |
|
|
address_path = self.get_derivation()[2:] + "/%d/%d"%sequence |
|
|
address_path = self.get_derivation()[2:] + "/%d/%d"%sequence |
|
|