Beispiel #1
0
 def test_pairing_zero_random(self, client_regtest):
     for _ in RANDOM_ITERATIONS:
         args = [(G1.zero, G2.random(self.gen))]
         check_pairing_check(client_regtest, args)
Beispiel #2
0
 def test_pairing_neg_g2(self, client_regtest):
     for _ in RANDOM_ITERATIONS:
         g1_point = G1.random(self.gen)
         g2_point = G2.random(self.gen)
         args = [(g1_point, g2_point), (g1_point, G2.neg(g2_point))]
         check_pairing_check(client_regtest, args)