diff --git a/utils/math/elliptic_curve_arithmetic.py b/utils/math/elliptic_curve_arithmetic.py index d999d0a..9d84e56 100644 --- a/utils/math/elliptic_curve_arithmetic.py +++ b/utils/math/elliptic_curve_arithmetic.py @@ -1,7 +1,9 @@ import hashlib + +from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import serialization from cryptography.hazmat.primitives.asymmetric import ec -from cryptography.hazmat.backends import default_backend + class EllipticCurveArithmetic: def __init__(self): @@ -42,4 +44,5 @@ def encode_point(self, point): y = format(point.y, "x") return f"{x},{y}" + ecc = EllipticCurveArithmetic()