20std::ostream&
operator<<(std::ostream &,
const bn128_G1&);
21std::istream&
operator>>(std::istream &, bn128_G1&);
27#ifdef PROFILE_OP_COUNTS
28 static long long add_cnt;
29 static long long dbl_cnt;
41 void fill_coord(
bn::Fp coord[3])
const { coord[0] = this->
X; coord[1] = this->
Y; coord[2] = this->
Z;
return; };
88template<mp_
size_t m, const big
int<m>& modulus_p>
94std::ostream&
operator<<(std::ostream& out,
const std::vector<bn128_G1> &v);
95std::istream&
operator>>(std::istream& in, std::vector<bn128_G1> &v);
static bigint< n > field_char()
static size_t size_in_bits()
bigint< n > as_bigint() const
bool is_well_formed() const
friend std::ostream & operator<<(std::ostream &out, const bn128_G1 &g)
void print_coordinates() const
static std::vector< size_t > wnaf_window_table
bool operator==(const bn128_G1 &other) const
bn128_G1 add(const bn128_G1 &other) const
static size_t size_in_bits()
bn128_G1 operator-() const
bn128_G1 operator+(const bn128_G1 &other) const
bn128_G1 mixed_add(const bn128_G1 &other) const
void to_affine_coordinates()
static void batch_to_special_all_non_zeros(std::vector< bn128_G1 > &vec)
static bigint< scalar_field::num_limbs > order()
bn128_G1(bn::Fp coord[3])
static std::vector< size_t > fixed_base_exp_window_table
static bigint< base_field::num_limbs > base_field_char()
bool operator!=(const bn128_G1 &other) const
static bn128_G1 random_element()
friend std::istream & operator>>(std::istream &in, bn128_G1 &g)
void fill_coord(bn::Fp coord[3]) 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)