Clearmatics Libff
0.1
C++ library for Finite Fields and Elliptic Curves
|
Go to the documentation of this file.
8 #ifndef EDWARDS_G2_HPP_
9 #define EDWARDS_G2_HPP_
19 std::ostream &
operator<<(std::ostream &,
const edwards_G2 &);
20 std::istream &
operator>>(std::istream &, edwards_G2 &);
25 #ifdef PROFILE_OP_COUNTS
26 static long long add_cnt;
27 static long long dbl_cnt;
101 return scalar_mul<edwards_G2, m>(rhs, lhs);
104 template<mp_
size_t m, const big
int<m> &modulus_p>
107 return scalar_mul<edwards_G2, m>(rhs, lhs.
as_bigint());
112 #endif // EDWARDS_G2_HPP_
edwards_G2 mixed_add(const edwards_G2 &other) const
static size_t size_in_bits()
static bigint< base_field::num_limbs > base_field_char()
static const edwards_G2 & one()
static void batch_to_special_all_non_zeros(std::vector< edwards_G2 > &vec)
static edwards_G2 G2_zero
bool operator==(const edwards_G2 &other) const
edwards_G2 mul_by_q() const
edwards_G2 operator+(const edwards_G2 &other) const
edwards_G2(const edwards_Fq3 &X, const edwards_Fq3 &Y)
std::istream & operator>>(std::istream &in, alt_bn128_G1 &g)
static edwards_Fq3 mul_by_a(const edwards_Fq3 &elt)
edwards_G2 operator-() const
static const edwards_G2 & zero()
static bigint< scalar_field::num_limbs > order()
void to_affine_coordinates()
bool operator!=(const edwards_G2 &other) const
static std::vector< size_t > wnaf_window_table
static edwards_Fq3 mul_by_d(const edwards_Fq3 &elt)
bool is_well_formed() const
void print_coordinates() const
static const bigint< n > & field_char()
bigint< n > as_bigint() const
void write_uncompressed(std::ostream &) const
edwards_G2 add(const edwards_G2 &other) const
std::ostream & operator<<(std::ostream &out, const alt_bn128_G1 &g)
alt_bn128_G1 operator*(const bigint< m > &lhs, const alt_bn128_G1 &rhs)
static void read_compressed(std::istream &, edwards_G2 &)
static size_t size_in_bits()
static edwards_G2 random_element()
void write_compressed(std::ostream &) const
static std::vector< size_t > fixed_base_exp_window_table
static void read_uncompressed(std::istream &, edwards_G2 &)