minor doc/err_msg fixes
@@ -290,7 +290,6 @@ def pointAddJacobian(ec: EllipticCurve, Q: Union[Optional[GenericPoint], JacPoin
Scalar = Union[str, bytes, bytearray, int]
-
def int_from_Scalar(ec: EllipticCurve, n: Scalar) -> int:
if isinstance(n, str): # hex string
n = bytes.fromhex(n)
@@ -301,7 +300,7 @@ def int_from_Scalar(ec: EllipticCurve, n: Scalar) -> int:
n = int.from_bytes(n, 'big')
if not isinstance(n, int):
- raise TypeError("a bytes-like object is required (also str or int)")
+ raise TypeError("a bytes-like object, hex-str, or int is required")
return n % ec.n
def bytes_from_Scalar(ec: EllipticCurve, n: Scalar) -> bytes:
