# Rohan Sangani
# 11/3/2025
# Simple Class to support Elliptic Curves
# Adapted from https://www.cs.ucf.edu/~dmarino/ucf/cis3362/progs/EllipticCurve.java

# Should all be self-explanatory
class EllipticCurve:
    def __init__(self, prime, a, b):
        self.p = prime
        self.a = a
        self.b = b

    def __copy__(self):
        return EllipticCurve(self.p, self.a, self.b)

    def __eq__(self, other):
        return (self.p == other.p and
                self.a == other.a and
                self.b == other.b)