Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
bn128_pp.hpp
Go to the documentation of this file.
1
8#ifndef BN128_PP_HPP_
9#define BN128_PP_HPP_
16
17namespace libff {
18
19class bn128_pp {
20public:
29
30 static const bool has_affine_pairing = false;
31
32 static void init_public_params();
33 static bn128_GT final_exponentiation(const bn128_Fq12 &elt);
36 static bn128_Fq12 miller_loop(const bn128_ate_G1_precomp &prec_P,
37 const bn128_ate_G2_precomp &prec_Q);
39 const bn128_ate_G2_precomp &prec_Q1,
40 const bn128_ate_G1_precomp &prec_P2,
41 const bn128_ate_G2_precomp &prec_Q2);
42
43 /* the following are used in test files */
44 static bn128_GT pairing(const bn128_G1 &P,
45 const bn128_G2 &Q);
46 static bn128_GT reduced_pairing(const bn128_G1 &P,
47 const bn128_G2 &Q);
48};
49
50} // libff
51#endif // BN128_PP_HPP_
bn128_Fq12 Fqk_type
Definition bn128_pp.hpp:27
bn128_Fq Fq_type
Definition bn128_pp.hpp:26
static bn128_GT reduced_pairing(const bn128_G1 &P, const bn128_G2 &Q)
Definition bn128_pp.cpp:65
static bn128_GT pairing(const bn128_G1 &P, const bn128_G2 &Q)
Definition bn128_pp.cpp:53
static bn128_GT final_exponentiation(const bn128_Fq12 &elt)
Definition bn128_pp.cpp:18
bn128_GT GT_type
Definition bn128_pp.hpp:28
bn128_ate_G1_precomp G1_precomp_type
Definition bn128_pp.hpp:24
bn128_Fr Fp_type
Definition bn128_pp.hpp:21
static const bool has_affine_pairing
Definition bn128_pp.hpp:30
bn128_G1 G1_type
Definition bn128_pp.hpp:22
static bn128_ate_G1_precomp precompute_G1(const bn128_G1 &P)
Definition bn128_pp.cpp:23
bn128_ate_G2_precomp G2_precomp_type
Definition bn128_pp.hpp:25
static bn128_ate_G2_precomp precompute_G2(const bn128_G2 &Q)
Definition bn128_pp.cpp:28
bn128_G2 G2_type
Definition bn128_pp.hpp:23
static void init_public_params()
Definition bn128_pp.cpp:13
static bn128_Fq12 miller_loop(const bn128_ate_G1_precomp &prec_P, const bn128_ate_G2_precomp &prec_Q)
Definition bn128_pp.cpp:33
static bn128_Fq12 double_miller_loop(const bn128_ate_G1_precomp &prec_P1, const bn128_ate_G2_precomp &prec_Q1, const bn128_ate_G1_precomp &prec_P2, const bn128_ate_G2_precomp &prec_Q2)
Definition bn128_pp.cpp:42
#define P
Definition dtoa.c:437