Clearmatics Libff
0.1
C++ library for Finite Fields and Elliptic Curves
|
Go to the documentation of this file. 1 #ifndef BW6_761_G2_HPP_
2 #define BW6_761_G2_HPP_
12 std::ostream &
operator<<(std::ostream &,
const bw6_761_G2 &);
13 std::istream &
operator>>(std::istream &, bw6_761_G2 &);
18 #ifdef PROFILE_OP_COUNTS
19 static long long add_cnt;
20 static long long dbl_cnt;
36 (
h_bitcount + GMP_NUMB_BITS - 1) / GMP_NUMB_BITS;
100 return scalar_mul<bw6_761_G2, m>(rhs, lhs);
103 template<mp_
size_t m, const big
int<m> &modulus_p>
106 return scalar_mul<bw6_761_G2, m>(rhs, lhs.
as_bigint());
111 #endif // BW6_761_G2_HPP_
void print_coordinates() const
static bw6_761_G2 G2_zero
bw6_761_G2 mul_by_cofactor() const
static const mp_size_t h_limbs
void to_affine_coordinates()
std::istream & operator>>(std::istream &in, alt_bn128_G1 &g)
static const mp_size_t h_bitcount
static bigint< scalar_field::num_limbs > order()
static size_t size_in_bits()
bool operator!=(const bw6_761_G2 &other) const
static const bw6_761_G2 & one()
static bigint< base_field::num_limbs > base_field_char()
bool operator==(const bw6_761_G2 &other) const
static bw6_761_G2 random_element()
static size_t size_in_bits()
static void read_uncompressed(std::istream &, bw6_761_G2 &)
static bw6_761_Fq coeff_b
bool is_well_formed() const
static const bw6_761_G2 & zero()
static void read_compressed(std::istream &, bw6_761_G2 &)
bw6_761_G2(const bw6_761_Fq &X, const bw6_761_Fq &Y, const bw6_761_Fq &Z)
static std::vector< size_t > fixed_base_exp_window_table
static const bigint< n > & field_char()
static bigint< h_limbs > h
bigint< n > as_bigint() const
void write_compressed(std::ostream &) const
std::ostream & operator<<(std::ostream &out, const alt_bn128_G1 &g)
static bw6_761_Fq coeff_a
alt_bn128_G1 operator*(const bigint< m > &lhs, const alt_bn128_G1 &rhs)
static bw6_761_Fq mul_by_b(const bw6_761_Fq &elt)
bw6_761_G2 add(const bw6_761_G2 &other) const
bool is_in_safe_subgroup() const
bw6_761_G2 operator-() const
static void batch_to_special_all_non_zeros(std::vector< bw6_761_G2 > &vec)
bw6_761_G2 operator+(const bw6_761_G2 &other) const
void write_uncompressed(std::ostream &) const
static std::vector< size_t > wnaf_window_table
bw6_761_G2 mul_by_q() const
bw6_761_G2 mixed_add(const bw6_761_G2 &other) const