Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
libff::alt_bn128_pp Class Reference

#include <alt_bn128_pp.hpp>

Public Types

typedef alt_bn128_Fr Fp_type
 
typedef alt_bn128_G1 G1_type
 
typedef alt_bn128_G2 G2_type
 
typedef alt_bn128_G1_precomp G1_precomp_type
 
typedef alt_bn128_G2_precomp G2_precomp_type
 
typedef alt_bn128_Fq Fq_type
 
typedef alt_bn128_Fq2 Fqe_type
 
typedef alt_bn128_Fq12 Fqk_type
 
typedef alt_bn128_GT GT_type
 

Static Public Member Functions

static void init_public_params ()
 
static alt_bn128_GT final_exponentiation (const alt_bn128_Fq12 &elt)
 
static alt_bn128_G1_precomp precompute_G1 (const alt_bn128_G1 &P)
 
static alt_bn128_G2_precomp precompute_G2 (const alt_bn128_G2 &Q)
 
static alt_bn128_Fq12 miller_loop (const alt_bn128_G1_precomp &prec_P, const alt_bn128_G2_precomp &prec_Q)
 
static alt_bn128_Fq12 double_miller_loop (const alt_bn128_G1_precomp &prec_P1, const alt_bn128_G2_precomp &prec_Q1, const alt_bn128_G1_precomp &prec_P2, const alt_bn128_G2_precomp &prec_Q2)
 
static alt_bn128_Fq12 pairing (const alt_bn128_G1 &P, const alt_bn128_G2 &Q)
 
static alt_bn128_Fq12 reduced_pairing (const alt_bn128_G1 &P, const alt_bn128_G2 &Q)
 

Static Public Attributes

static const bool has_affine_pairing = false
 

Detailed Description

Definition at line 18 of file alt_bn128_pp.hpp.

Member Typedef Documentation

◆ Fp_type

◆ Fq_type

◆ Fqe_type

◆ Fqk_type

◆ G1_precomp_type

◆ G1_type

◆ G2_precomp_type

◆ G2_type

◆ GT_type

Member Function Documentation

◆ double_miller_loop()

alt_bn128_Fq12 libff::alt_bn128_pp::double_miller_loop ( const alt_bn128_G1_precomp & prec_P1,
const alt_bn128_G2_precomp & prec_Q1,
const alt_bn128_G1_precomp & prec_P2,
const alt_bn128_G2_precomp & prec_Q2 )
static

Definition at line 38 of file alt_bn128_pp.cpp.

42{
43 return alt_bn128_double_miller_loop(prec_P1, prec_Q1, prec_P2, prec_Q2);
44}
alt_bn128_Fq12 alt_bn128_double_miller_loop(const alt_bn128_G1_precomp &prec_P1, const alt_bn128_G2_precomp &prec_Q1, const alt_bn128_G1_precomp &prec_P2, const alt_bn128_G2_precomp &prec_Q2)
Here is the call graph for this function:

◆ final_exponentiation()

alt_bn128_GT libff::alt_bn128_pp::final_exponentiation ( const alt_bn128_Fq12 & elt)
static

Definition at line 17 of file alt_bn128_pp.cpp.

18{
20}
alt_bn128_GT alt_bn128_final_exponentiation(const alt_bn128_Fq12 &elt)
Here is the call graph for this function:

◆ init_public_params()

void libff::alt_bn128_pp::init_public_params ( )
static

Definition at line 12 of file alt_bn128_pp.cpp.

13{
15}
void init_alt_bn128_params()
Here is the call graph for this function:
Here is the caller graph for this function:

◆ miller_loop()

alt_bn128_Fq12 libff::alt_bn128_pp::miller_loop ( const alt_bn128_G1_precomp & prec_P,
const alt_bn128_G2_precomp & prec_Q )
static

Definition at line 32 of file alt_bn128_pp.cpp.

34{
35 return alt_bn128_miller_loop(prec_P, prec_Q);
36}
alt_bn128_Fq12 alt_bn128_miller_loop(const alt_bn128_G1_precomp &prec_P, const alt_bn128_G2_precomp &prec_Q)
Here is the call graph for this function:

◆ pairing()

alt_bn128_Fq12 libff::alt_bn128_pp::pairing ( const alt_bn128_G1 & P,
const alt_bn128_G2 & Q )
static

Definition at line 46 of file alt_bn128_pp.cpp.

48{
49 return alt_bn128_pairing(P, Q);
50}
#define P
Definition dtoa.c:437
alt_bn128_Fq12 alt_bn128_pairing(const alt_bn128_G1 &P, const alt_bn128_G2 &Q)
Here is the call graph for this function:

◆ precompute_G1()

alt_bn128_G1_precomp libff::alt_bn128_pp::precompute_G1 ( const alt_bn128_G1 & P)
static

Definition at line 22 of file alt_bn128_pp.cpp.

23{
25}
alt_bn128_G1_precomp alt_bn128_precompute_G1(const alt_bn128_G1 &P)
Here is the call graph for this function:

◆ precompute_G2()

alt_bn128_G2_precomp libff::alt_bn128_pp::precompute_G2 ( const alt_bn128_G2 & Q)
static

Definition at line 27 of file alt_bn128_pp.cpp.

28{
30}
alt_bn128_G2_precomp alt_bn128_precompute_G2(const alt_bn128_G2 &Q)
Here is the call graph for this function:

◆ reduced_pairing()

alt_bn128_Fq12 libff::alt_bn128_pp::reduced_pairing ( const alt_bn128_G1 & P,
const alt_bn128_G2 & Q )
static

Definition at line 52 of file alt_bn128_pp.cpp.

54{
56}
alt_bn128_GT alt_bn128_reduced_pairing(const alt_bn128_G1 &P, const alt_bn128_G2 &Q)
Here is the call graph for this function:

Member Data Documentation

◆ has_affine_pairing

const bool libff::alt_bn128_pp::has_affine_pairing = false
static

Definition at line 30 of file alt_bn128_pp.hpp.


The documentation for this class was generated from the following files: