From c07b36e143e59a46433a020444348593cc5665f4 Mon Sep 17 00:00:00 2001 From: Hubert Kario Date: Sat, 12 Dec 2020 15:14:28 +0100 Subject: fix lie->lay typo --- src/ecdsa/ecdsa.py | 4 ++-- src/ecdsa/ellipticcurve.py | 4 ++-- src/ecdsa/keys.py | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/ecdsa/ecdsa.py b/src/ecdsa/ecdsa.py index 2b6d506..1e24c8f 100644 --- a/src/ecdsa/ecdsa.py +++ b/src/ecdsa/ecdsa.py @@ -118,7 +118,7 @@ class Public_key(object): :param bool verify: if True check if point is valid point on curve :raises InvalidPointError: if the point parameters are invalid or - point does not lie on the curve + point does not lay on the curve """ self.curve = generator.curve() @@ -131,7 +131,7 @@ class Public_key(object): "The public point has x or y out of range." ) if verify and not self.curve.contains_point(point.x(), point.y()): - raise InvalidPointError("Point does not lie on the curve") + raise InvalidPointError("Point does not lay on the curve") if not n: raise InvalidPointError("Generator point must have order.") # for curve parameters with base point with cofactor 1, all points diff --git a/src/ecdsa/ellipticcurve.py b/src/ecdsa/ellipticcurve.py index 9bf6fc9..57059b1 100644 --- a/src/ecdsa/ellipticcurve.py +++ b/src/ecdsa/ellipticcurve.py @@ -232,7 +232,7 @@ class PointJacobi(object): def __eq__(self, other): """Compare for equality two points with each-other. - Note: only points that lie on the same curve can be equal. + Note: only points that lay on the same curve can be equal. """ try: self._update_lock.reader_acquire() @@ -772,7 +772,7 @@ class Point(object): def __eq__(self, other): """Return True if the points are identical, False otherwise. - Note: only points that lie on the same curve can be equal. + Note: only points that lay on the same curve can be equal. """ if isinstance(other, Point): return ( diff --git a/src/ecdsa/keys.py b/src/ecdsa/keys.py index 578755c..ded7cfb 100644 --- a/src/ecdsa/keys.py +++ b/src/ecdsa/keys.py @@ -213,11 +213,11 @@ class VerifyingKey(object): verification, needs to implement the same interface as hashlib.sha1 :type hashfunc: callable - :type bool validate_point: whether to check if the point lies on curve + :type bool validate_point: whether to check if the point lays on curve should always be used if the public point is not a result of our own calculation - :raises MalformedPointError: if the public point does not lie on the + :raises MalformedPointError: if the public point does not lay on the curve :return: Initialised VerifyingKey object @@ -233,7 +233,7 @@ class VerifyingKey(object): curve.generator, point, validate_point ) except ecdsa.InvalidPointError: - raise MalformedPointError("Point does not lie on the curve") + raise MalformedPointError("Point does not lay on the curve") self.pubkey.order = curve.order return self @@ -347,16 +347,16 @@ class VerifyingKey(object): :param string: single point encoding of the public key :type string: :term:`bytes-like object` - :param curve: the curve on which the public key is expected to lie + :param curve: the curve on which the public key is expected to lay :type curve: ecdsa.curves.Curve :param hashfunc: The default hash function that will be used for verification, needs to implement the same interface as hashlib.sha1 :type hashfunc: callable - :param validate_point: whether to verify that the point lies on the + :param validate_point: whether to verify that the point lays on the provided curve or not, defaults to True :type validate_point: bool - :raises MalformedPointError: if the public point does not lie on the + :raises MalformedPointError: if the public point does not lay on the curve or the encoding is invalid :return: Initialised VerifyingKey object -- cgit v1.2.1