Add test that y coordinate remains 1 in jacobian when G1/G2 are negated.
This commit is contained in:
parent
4e2096bedd
commit
c85330e11c
|
@ -821,3 +821,12 @@ fn test_binlinearity() {
|
||||||
assert_eq!((a.pow(t)) * a, Fq12::one());
|
assert_eq!((a.pow(t)) * a, Fq12::one());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_y_at_point_at_infinity() {
|
||||||
|
assert!(G1::zero().y == Fq::one());
|
||||||
|
assert!((-G1::zero()).y == Fq::one());
|
||||||
|
|
||||||
|
assert!(G2::zero().y == Fq2::one());
|
||||||
|
assert!((-G2::zero()).y == Fq2::one());
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue