8#ifndef ALT_BN128_G2_HPP_
9#define ALT_BN128_G2_HPP_
18std::ostream&
operator<<(std::ostream &,
const alt_bn128_G2&);
19std::istream&
operator>>(std::istream &, alt_bn128_G2&);
23#ifdef PROFILE_OP_COUNTS
24 static long long add_cnt;
25 static long long dbl_cnt;
88template<mp_
size_t m, const big
int<m>& modulus_p>
static size_t size_in_bits()
static bigint< n > field_char()
bigint< n > as_bigint() const
bool operator!=(const alt_bn128_G2 &other) const
static alt_bn128_G2 zero()
static bigint< scalar_field::num_limbs > order()
static std::vector< size_t > wnaf_window_table
alt_bn128_G2(const alt_bn128_Fq2 &X, const alt_bn128_Fq2 &Y, const alt_bn128_Fq2 &Z)
static alt_bn128_Fq2 mul_by_b(const alt_bn128_Fq2 &elt)
alt_bn128_G2 mixed_add(const alt_bn128_G2 &other) const
friend std::istream & operator>>(std::istream &in, alt_bn128_G2 &g)
static bigint< base_field::num_limbs > base_field_char()
void to_affine_coordinates()
static alt_bn128_G2 random_element()
alt_bn128_G2 add(const alt_bn128_G2 &other) const
alt_bn128_G2 operator+(const alt_bn128_G2 &other) const
bool operator==(const alt_bn128_G2 &other) const
alt_bn128_G2 operator-() const
friend std::ostream & operator<<(std::ostream &out, const alt_bn128_G2 &g)
static alt_bn128_G2 one()
static alt_bn128_G2 G2_one
alt_bn128_Fq2 twist_field
static alt_bn128_G2 G2_zero
alt_bn128_Fr scalar_field
static std::vector< size_t > fixed_base_exp_window_table
bool is_well_formed() const
static size_t size_in_bits()
void print_coordinates() const
static void batch_to_special_all_non_zeros(std::vector< alt_bn128_G2 > &vec)
alt_bn128_G2 mul_by_q() const
std::istream & operator>>(std::istream &in, alt_bn128_G1 &g)
GroupT scalar_mul(const GroupT &base, const bigint< m > &scalar)
std::ostream & operator<<(std::ostream &out, const alt_bn128_G1 &g)
alt_bn128_G1 operator*(const bigint< m > &lhs, const alt_bn128_G1 &rhs)