From 6322dbc57c1e2d05342a6768fb20c03e8f763e2f Mon Sep 17 00:00:00 2001 From: "Antoine FERRON [BitLogiK]" Date: Mon, 6 Nov 2023 17:31:55 -0300 Subject: [PATCH] Fix typos --- devices/Ledger.py | 2 +- devices/Satochip.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/devices/Ledger.py b/devices/Ledger.py index 24c2522..58b2d97 100644 --- a/devices/Ledger.py +++ b/devices/Ledger.py @@ -207,7 +207,7 @@ def sign(self, transaction): return unpack_vrs(vrs_bin) def sign_message(self, message): - """Sign a personnal message, used when has_screen""" + """Sign a personal message, used when on_device_check""" msg_sz = BIP32node.ser32(len(message)) data_frames = split_data(self.bin_path + msg_sz + message) is_subsequent = False diff --git a/devices/Satochip.py b/devices/Satochip.py index b6d71c8..17fd2ee 100644 --- a/devices/Satochip.py +++ b/devices/Satochip.py @@ -309,7 +309,7 @@ def sign_evm(self, tx_bytes): msg["hash"] = tx_hash.hex() # msg['from']= from_ # TODO msg["chain"] = "EVM" - # msg['chainId']= self.chainId # optionnal, otherwise taken from tx deserialization... + # msg['chainId']= self.chainId # optional, otherwise taken from tx deserialization... (is_approved, hmac) = self.do_challenge_response(msg) else: (is_approved, hmac) = (True, None) @@ -341,7 +341,7 @@ def sign_evm(self, tx_bytes): raise Exception("User rejected the transaction signature.") def sign_message(self, msg_bytes): - """Sign a personnal message, used when has_screen""" + """Sign a personal message, used when on_device_check""" logger.debug("in sign_message:") logger.debug(f"msg_hex: {msg_bytes.hex()}") # msg_bytes is bytes format