halo2-ecc/src/ecc/mod.rs helper ec_double helper only work for secp256k1 , not work for p256, need to be updated as following:
if current point is P (x, y)
then
lambda = (3* x ^2 + a) / 2y (mod p)
x_3 = lambda^2 - 2x (mod p)
y_3 = lambda(x_3 -x) (mod p)
the point(x_3, y_3) is the addition result.
halo2-ecc/src/ecc/mod.rs helper
ec_double
helper only work for secp256k1 , not work for p256, need to be updated as following: if current point is P (x, y) then lambda = (3* x ^2 + a) / 2y (mod p) x_3 = lambda^2 - 2x (mod p) y_3 = lambda(x_3 -x) (mod p) the point(x_3, y_3) is the addition result.