py_ecc icon indicating copy to clipboard operation
py_ecc copied to clipboard

Add FQP.copy()

Open carver opened this issue 6 years ago • 0 comments

For a follow-up PR: I think this could be made a tiny bit more readable by adding a copy() method that takes the new coefficients, turning the line into:

return self.copy([x + y for x, y in  zip(self.coeffs, other.coeffs)])

From the current:

return type(self)([x + y for x, y in  zip(self.coeffs, other.coeffs)], self.curve_name)

Originally posted by @carver in https://github.com/ethereum/py_ecc/pull/41

carver avatar Jan 23 '19 18:01 carver