Clearmatics Libff
0.1
C++ library for Finite Fields and Elliptic Curves
|
#include <bn128_g1.hpp>
Public Types | |
typedef bn128_Fq | base_field |
typedef bn128_Fr | scalar_field |
Public Member Functions | |
void | fill_coord (bn::Fp coord[3]) const |
bn128_G1 () | |
bn128_G1 (bn::Fp 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_G1 &other) const |
bool | operator!= (const bn128_G1 &other) const |
bn128_G1 | operator+ (const bn128_G1 &other) const |
bn128_G1 | operator- () const |
bn128_G1 | operator- (const bn128_G1 &other) const |
bn128_G1 | add (const bn128_G1 &other) const |
bn128_G1 | mixed_add (const bn128_G1 &other) const |
bn128_G1 | dbl () const |
bn128_G1 | mul_by_cofactor () const |
bool | is_well_formed () const |
bool | is_in_safe_subgroup () const |
void | write_uncompressed (std::ostream &) const |
void | write_compressed (std::ostream &) const |
Static Public Member Functions | |
static const bn128_G1 & | zero () |
static const bn128_G1 & | one () |
static bn128_G1 | 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 | read_uncompressed (std::istream &, bn128_G1 &) |
static void | read_compressed (std::istream &, bn128_G1 &) |
static void | batch_to_special_all_non_zeros (std::vector< bn128_G1 > &vec) |
Public Attributes | |
bn::Fp | X |
bn::Fp | Y |
bn::Fp | Z |
Static Public Attributes | |
static std::vector< size_t > | wnaf_window_table |
static std::vector< size_t > | fixed_base_exp_window_table |
static bn128_G1 | G1_zero |
static bn128_G1 | G1_one |
static const mp_size_t | h_bitcount = 1 |
static const mp_size_t | h_limbs |
static bigint< h_limbs > | h |
Definition at line 23 of file bn128_g1.hpp.
typedef bn128_Fq libff::bn128_G1::base_field |
Definition at line 38 of file bn128_g1.hpp.
Definition at line 39 of file bn128_g1.hpp.
libff::bn128_G1::bn128_G1 | ( | ) |
|
inline |
Definition at line 57 of file bn128_g1.hpp.
Definition at line 195 of file bn128_g1.cpp.
|
inlinestatic |
|
static |
bn128_G1 libff::bn128_G1::dbl | ( | ) | const |
Definition at line 294 of file bn128_g1.cpp.
|
inline |
bool libff::bn128_G1::is_in_safe_subgroup | ( | ) | const |
Definition at line 352 of file bn128_g1.cpp.
bool libff::bn128_G1::is_special | ( | ) | const |
Definition at line 121 of file bn128_g1.cpp.
bool libff::bn128_G1::is_well_formed | ( | ) | const |
bool libff::bn128_G1::is_zero | ( | ) | const |
bn128_G1 libff::bn128_G1::mul_by_cofactor | ( | ) | const |
Definition at line 308 of file bn128_g1.cpp.
|
static |
bool libff::bn128_G1::operator!= | ( | const bn128_G1 & | other | ) | const |
bn128_G1 libff::bn128_G1::operator- | ( | ) | const |
Definition at line 183 of file bn128_g1.cpp.
Definition at line 190 of file bn128_g1.cpp.
bool libff::bn128_G1::operator== | ( | const bn128_G1 & | other | ) | const |
Definition at line 125 of file bn128_g1.cpp.
|
inlinestatic |
void libff::bn128_G1::print | ( | ) | const |
void libff::bn128_G1::print_coordinates | ( | ) | const |
|
static |
|
static |
Definition at line 408 of file bn128_g1.cpp.
|
static |
Definition at line 384 of file bn128_g1.cpp.
|
inlinestatic |
void libff::bn128_G1::to_affine_coordinates | ( | ) |
Definition at line 101 of file bn128_g1.cpp.
void libff::bn128_G1::to_special | ( | ) |
void libff::bn128_G1::write_compressed | ( | std::ostream & | out | ) | const |
Definition at line 369 of file bn128_g1.cpp.
void libff::bn128_G1::write_uncompressed | ( | std::ostream & | out | ) | const |
Definition at line 354 of file bn128_g1.cpp.
|
static |
|
static |
Definition at line 34 of file bn128_g1.hpp.
|
static |
Definition at line 36 of file bn128_g1.hpp.
|
static |
Definition at line 35 of file bn128_g1.hpp.
|
static |
Definition at line 45 of file bn128_g1.hpp.
|
static |
Definition at line 42 of file bn128_g1.hpp.
|
static |
Definition at line 43 of file bn128_g1.hpp.
|
static |
Definition at line 33 of file bn128_g1.hpp.
bn::Fp libff::bn128_G1::X |
Definition at line 47 of file bn128_g1.hpp.
bn::Fp libff::bn128_G1::Y |
Definition at line 47 of file bn128_g1.hpp.
bn::Fp libff::bn128_G1::Z |
Definition at line 47 of file bn128_g1.hpp.