Question: if P
is the point at infinity and k
is a scalar in the range 0 < k < N
, is kP
also the point at infinity?
In other words: should this test pass?
0void ecmult_const_mult_inf_one(void) {
1 secp256k1_scalar one = SECP256K1_SCALAR_CONST(0, 0, 0, 0, 0, 0, 0, 1);
2 secp256k1_gej res1;
3 secp256k1_ge res2;
4 secp256k1_ge point;
5
6 secp256k1_ge_set_infinity(&point);
7 secp256k1_ecmult_const(&res1, &point, &one, 256);
8 secp256k1_ge_set_gej(&res2, &res1);
9 CHECK(secp256k1_ge_is_infinity(&res2));
10}