Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo #773

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions hwilib/devices/ckcc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ def send_recv(self, msg, expect_errors=False, verbose=0, timeout=3000, encrypt=T
raise

def ec_setup(self):
# Provides the ECSDA primatives in portable way.
# Needed to do D-H session key aggreement and then AES.
# Provides the ECSDA primitives in portable way.
# Needed to do D-H session key agreement and then AES.
# - should be replaced in subclasses if you have other EC libraries
# - curve is always secp256k1
# - values are binary strings
Expand Down
2 changes: 1 addition & 1 deletion hwilib/devices/ckcc/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def check_mitm():

@staticmethod
def start_backup():
# prompts user with password for encrytped backup
# prompts user with password for encrypted backup
return b'back'

@staticmethod
Expand Down
2 changes: 1 addition & 1 deletion hwilib/devices/jadepy/jade.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ def ota_update(self, fwcmp, fwlen, chunksize, fwhash=None, patchlen=None, cb=Non
ack'd by the hw, to notify of upload progress.
Defaults to None, and nothing is called to report upload progress.
extended_replies: bool, optional
If set Jade may return addtional progress data with each data chunk uploaded, which is
If set Jade may return additional progress data with each data chunk uploaded, which is
then passed to any progress callback as above. If not no additional data is returned
or passed.

Expand Down
2 changes: 1 addition & 1 deletion hwilib/devices/ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def legacy_sign_tx() -> PSBT:
return legacy_sign_tx()

# Make a deepcopy of this psbt. We will need to modify it to get signing to work,
# which will affect the caller's detection for whether signing occured.
# which will affect the caller's detection for whether signing occurred.
psbt2 = copy.deepcopy(tx)
if tx.version != 2:
psbt2.convert_to_v2()
Expand Down
4 changes: 2 additions & 2 deletions hwilib/devices/ledger_bitcoin/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
NO_DEVICE_TYPE = -1 #: Device type was not specified
MISSING_ARGUMENTS = -2 #: Arguments are missing
DEVICE_CONN_ERROR = -3 #: Error connecting to the device
UNKNWON_DEVICE_TYPE = -4 #: Device type is unknown
UNKNOWN_DEVICE_TYPE = -4 #: Device type is unknown
INVALID_TX = -5 #: Transaction is invalid
NO_PASSWORD = -6 #: No password provided, but one is needed
BAD_ARGUMENT = -7 #: Bad, malformed, or conflicting argument was provided
Expand Down Expand Up @@ -161,7 +161,7 @@ def __init__(self, msg: str):
"""
:param msg: The error message
"""
HWWError.__init__(self, msg, UNKNWON_DEVICE_TYPE)
HWWError.__init__(self, msg, UNKNOWN_DEVICE_TYPE)

class NotImplementedError(HWWError):
"""
Expand Down
4 changes: 2 additions & 2 deletions hwilib/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
NO_DEVICE_TYPE = -1 #: Device type was not specified
MISSING_ARGUMENTS = -2 #: Arguments are missing
DEVICE_CONN_ERROR = -3 #: Error connecting to the device
UNKNWON_DEVICE_TYPE = -4 #: Device type is unknown
UNKNOWN_DEVICE_TYPE = -4 #: Device type is unknown
INVALID_TX = -5 #: Transaction is invalid
NO_PASSWORD = -6 #: No password provided, but one is needed
BAD_ARGUMENT = -7 #: Bad, malformed, or conflicting argument was provided
Expand Down Expand Up @@ -128,7 +128,7 @@ def __init__(self, msg: str):
"""
:param msg: The error message
"""
HWWError.__init__(self, msg, UNKNWON_DEVICE_TYPE)
HWWError.__init__(self, msg, UNKNOWN_DEVICE_TYPE)

class NotImplementedError(HWWError):
"""
Expand Down