MCPcopy Create free account
hub / github.com/ElementsProject/elements / ge_equals_ge

Function ge_equals_ge

src/secp256k1/src/tests.c:3738–3745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3736/***** GROUP TESTS *****/
3737
3738static void ge_equals_ge(const secp256k1_ge *a, const secp256k1_ge *b) {
3739 CHECK(a->infinity == b->infinity);
3740 if (a->infinity) {
3741 return;
3742 }
3743 CHECK(secp256k1_fe_equal_var(&a->x, &b->x));
3744 CHECK(secp256k1_fe_equal_var(&a->y, &b->y));
3745}
3746
3747/* This compares jacobian points including their Z, not just their geometric meaning. */
3748static int gej_xyz_equals_gej(const secp256k1_gej *a, const secp256k1_gej *b) {

Callers 10

test_ec_commit_apiFunction · 0.70
test_point_times_orderFunction · 0.70
run_ec_pubkey_parse_testFunction · 0.70
test_random_pubkeysFunction · 0.70
test_bppp_generators_apiFunction · 0.50
run_ellswift_testsFunction · 0.50
test_exhaustive_ellswiftFunction · 0.50

Calls 1

secp256k1_fe_equal_varFunction · 0.70

Tested by

no test coverage detected