Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
bitlogik committed Nov 6, 2023
1 parent 5edcd0f commit 6322dbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion devices/Ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions devices/Satochip.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6322dbc

Please sign in to comment.