Clearmatics Libff
0.1
C++ library for Finite Fields and Elliptic Curves
|
Go to the documentation of this file.
23 std::ostream &
operator<<(std::ostream &,
const mnt6_G2 &);
24 std::istream &
operator>>(std::istream &, mnt6_G2 &);
29 #ifdef PROFILE_OP_COUNTS
30 static long long add_cnt;
31 static long long dbl_cnt;
48 (
h_bitcount + GMP_NUMB_BITS - 1) / GMP_NUMB_BITS;
110 template<mp_
size_t m>
113 return scalar_mul<mnt6_G2, m>(rhs, lhs);
116 template<mp_
size_t m, const big
int<m> &modulus_p>
119 return scalar_mul<mnt6_G2, m>(rhs, lhs.
as_bigint());
124 #endif // MNT6_G2_HPP_
bool is_in_safe_subgroup() const
static const mnt6_G2 & one()
std::istream & operator>>(std::istream &in, alt_bn128_G1 &g)
mnt6_G2 operator-() const
void print_coordinates() const
static size_t size_in_bits()
bool operator!=(const mnt6_G2 &other) const
static const mp_size_t h_bitcount
bool is_well_formed() const
bool operator==(const mnt6_G2 &other) const
void write_uncompressed(std::ostream &) const
static std::vector< size_t > fixed_base_exp_window_table
static const mnt6_G2 & zero()
static bigint< scalar_field::num_limbs > order()
static const bigint< n > & field_char()
static std::vector< size_t > wnaf_window_table
bigint< n > as_bigint() const
static void read_uncompressed(std::istream &, mnt6_G2 &)
static mnt6_Fq3 mul_by_a(const mnt6_Fq3 &elt)
void write_compressed(std::ostream &) const
static bigint< h_limbs > h
mnt6_G2 operator+(const mnt6_G2 &other) const
std::ostream & operator<<(std::ostream &out, const alt_bn128_G1 &g)
mnt6_G2 mul_by_cofactor() const
static bigint< base_field::num_limbs > base_field_char()
static const mp_size_t h_limbs
alt_bn128_G1 operator*(const bigint< m > &lhs, const alt_bn128_G1 &rhs)
static void batch_to_special_all_non_zeros(std::vector< mnt6_G2 > &vec)
static void read_compressed(std::istream &, mnt6_G2 &)
static size_t size_in_bits()
mnt6_G2 add(const mnt6_G2 &other) const
mnt6_G2(const mnt6_Fq3 &X, const mnt6_Fq3 &Y, const mnt6_Fq3 &Z)
static mnt6_G2 random_element()
mnt6_G2 mixed_add(const mnt6_G2 &other) const
static mnt6_Fq3 mul_by_b(const mnt6_Fq3 &elt)
void to_affine_coordinates()