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 mnt4_G2 &);
24 std::istream &
operator>>(std::istream &, mnt4_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;
105 template<mp_
size_t m>
108 return scalar_mul<mnt4_G2, m>(rhs, lhs);
111 template<mp_
size_t m, const big
int<m> &modulus_p>
114 return scalar_mul<mnt4_G2, m>(rhs, lhs.
as_bigint());
119 #endif // MNT4_G2_HPP_
void write_compressed(std::ostream &) const
void print_coordinates() const
mnt4_G2 add(const mnt4_G2 &other) const
static const mp_size_t h_bitcount
static bigint< h_limbs > h
static size_t size_in_bits()
static void read_compressed(std::istream &, mnt4_G2 &)
std::istream & operator>>(std::istream &in, alt_bn128_G1 &g)
bool operator!=(const mnt4_G2 &other) const
bool is_well_formed() const
static bigint< mnt4_Fq::num_limbs > base_field_char()
static size_t size_in_bits()
mnt4_G2 operator+(const mnt4_G2 &other) const
void write_uncompressed(std::ostream &) const
void to_affine_coordinates()
static void batch_to_special_all_non_zeros(std::vector< mnt4_G2 > &vec)
static mnt4_G2 random_element()
static std::vector< size_t > fixed_base_exp_window_table
static const bigint< n > & field_char()
bigint< n > as_bigint() const
static void read_uncompressed(std::istream &, mnt4_G2 &)
std::ostream & operator<<(std::ostream &out, const alt_bn128_G1 &g)
static const mnt4_G2 & one()
alt_bn128_G1 operator*(const bigint< m > &lhs, const alt_bn128_G1 &rhs)
mnt4_G2 mixed_add(const mnt4_G2 &other) const
static mnt4_Fq2 mul_by_a(const mnt4_Fq2 &elt)
mnt4_G2 operator-() const
bool operator==(const mnt4_G2 &other) const
static std::vector< size_t > wnaf_window_table
static const mp_size_t h_limbs
mnt4_G2 mul_by_cofactor() const
bool is_in_safe_subgroup() const
static mnt4_Fq2 mul_by_b(const mnt4_Fq2 &elt)
static bigint< mnt4_Fr::num_limbs > order()
mnt4_G2(const mnt4_Fq2 &X, const mnt4_Fq2 &Y, const mnt4_Fq2 &Z)
static const mnt4_G2 & zero()