Wire Sysio Wire Sysion 1.0.0
|
#include <bn128_g2.hpp>
Public Types | |
typedef bn128_Fq | base_field |
typedef bn128_Fr | scalar_field |
Public Member Functions | |
void | fill_coord (bn::Fp2 coord[3]) const |
bn128_G2 () | |
bn128_G2 (bn::Fp2 coord[3]) | |
void | print () const |
void | print_coordinates () const |
void | to_affine_coordinates () |
void | to_special () |
bool | is_special () const |
bool | is_zero () const |
bool | operator== (const bn128_G2 &other) const |
bool | operator!= (const bn128_G2 &other) const |
bn128_G2 | operator+ (const bn128_G2 &other) const |
bn128_G2 | operator- () const |
bn128_G2 | operator- (const bn128_G2 &other) const |
bn128_G2 | add (const bn128_G2 &other) const |
bn128_G2 | mixed_add (const bn128_G2 &other) const |
bn128_G2 | dbl () const |
bool | is_well_formed () const |
Static Public Member Functions | |
static bn128_G2 | zero () |
static bn128_G2 | one () |
static bn128_G2 | random_element () |
static size_t | size_in_bits () |
static bigint< base_field::num_limbs > | base_field_char () |
static bigint< scalar_field::num_limbs > | order () |
static void | batch_to_special_all_non_zeros (std::vector< bn128_G2 > &vec) |
Public Attributes | |
bn::Fp2 | X |
bn::Fp2 | Y |
bn::Fp2 | Z |
Static Public Attributes | |
static std::vector< size_t > | wnaf_window_table |
static std::vector< size_t > | fixed_base_exp_window_table |
static bn128_G2 | G2_zero = {} |
static bn128_G2 | G2_one = {} |
static bool | initialized = false |
Friends | |
std::ostream & | operator<< (std::ostream &out, const bn128_G2 &g) |
std::istream & | operator>> (std::istream &in, bn128_G2 &g) |
Definition at line 24 of file bn128_g2.hpp.
Definition at line 38 of file bn128_g2.hpp.
Definition at line 39 of file bn128_g2.hpp.
libff::bn128_G2::bn128_G2 | ( | ) |
Definition at line 74 of file bn128_g2.cpp.
|
inline |
Definition at line 45 of file bn128_g2.hpp.
Definition at line 224 of file bn128_g2.cpp.
|
inlinestatic |
|
static |
Definition at line 489 of file bn128_g2.cpp.
bn128_G2 libff::bn128_G2::dbl | ( | ) | const |
Definition at line 326 of file bn128_g2.cpp.
|
inline |
bool libff::bn128_G2::is_special | ( | ) | const |
bool libff::bn128_G2::is_well_formed | ( | ) | const |
Definition at line 340 of file bn128_g2.cpp.
bool libff::bn128_G2::is_zero | ( | ) | const |
Definition at line 141 of file bn128_g2.cpp.
Definition at line 239 of file bn128_g2.cpp.
|
static |
bool libff::bn128_G2::operator!= | ( | const bn128_G2 & | other | ) | const |
Definition at line 185 of file bn128_g2.cpp.
bn128_G2 libff::bn128_G2::operator- | ( | ) | const |
Definition at line 212 of file bn128_g2.cpp.
Definition at line 219 of file bn128_g2.cpp.
bool libff::bn128_G2::operator== | ( | const bn128_G2 & | other | ) | const |
Definition at line 146 of file bn128_g2.cpp.
|
inlinestatic |
void libff::bn128_G2::print | ( | ) | const |
Definition at line 84 of file bn128_g2.cpp.
void libff::bn128_G2::print_coordinates | ( | ) | const |
|
static |
Definition at line 381 of file bn128_g2.cpp.
|
inlinestatic |
void libff::bn128_G2::to_affine_coordinates | ( | ) |
void libff::bn128_G2::to_special | ( | ) |
Definition at line 131 of file bn128_g2.cpp.
|
static |
Definition at line 371 of file bn128_g2.cpp.
|
friend |
Definition at line 386 of file bn128_g2.cpp.
|
friend |
Definition at line 419 of file bn128_g2.cpp.
|
static |
Definition at line 33 of file bn128_g2.hpp.
|
static |
Definition at line 35 of file bn128_g2.hpp.
|
static |
Definition at line 34 of file bn128_g2.hpp.
|
static |
Definition at line 36 of file bn128_g2.hpp.
|
static |
Definition at line 32 of file bn128_g2.hpp.
bn::Fp2 libff::bn128_G2::X |
Definition at line 41 of file bn128_g2.hpp.
bn::Fp2 libff::bn128_G2::Y |
Definition at line 41 of file bn128_g2.hpp.
bn::Fp2 libff::bn128_G2::Z |
Definition at line 41 of file bn128_g2.hpp.