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_G1 &);
24 std::istream &
operator>>(std::istream &, mnt6_G1 &);
29 #ifdef PROFILE_OP_COUNTS
30 static long long add_cnt;
31 static long long dbl_cnt;
46 (
h_bitcount + GMP_NUMB_BITS - 1) / GMP_NUMB_BITS;
108 template<mp_
size_t m>
111 return scalar_mul<mnt6_G1, m>(rhs, lhs);
114 template<mp_
size_t m, const big
int<m> &modulus_p>
117 return scalar_mul<mnt6_G1, m>(rhs, lhs.
as_bigint());
122 #endif // MNT6_G1_HPP_
mnt6_G1 mixed_add(const mnt6_G1 &other) const
mnt6_G1 operator+(const mnt6_G1 &other) const
mnt6_G1(const mnt6_Fq &X, const mnt6_Fq &Y, const mnt6_Fq &Z)
mnt6_G1 mul_by_cofactor() const
static size_t size_in_bits()
static void read_uncompressed(std::istream &, mnt6_G1 &)
std::istream & operator>>(std::istream &in, alt_bn128_G1 &g)
mnt6_G1 operator-() const
void to_affine_coordinates()
bool operator==(const mnt6_G1 &other) const
mnt6_G1 add(const mnt6_G1 &other) const
bool is_in_safe_subgroup() const
bool operator!=(const mnt6_G1 &other) const
static std::vector< size_t > wnaf_window_table
static bigint< base_field::num_limbs > base_field_char()
static size_t size_in_bits()
void print_coordinates() const
static bigint< h_limbs > h
static std::vector< size_t > fixed_base_exp_window_table
static void read_compressed(std::istream &, mnt6_G1 &)
static const mnt6_G1 & zero()
static const bigint< n > & field_char()
static bigint< scalar_field::num_limbs > order()
bigint< n > as_bigint() const
static const mp_size_t h_bitcount
static const mnt6_G1 & one()
std::ostream & operator<<(std::ostream &out, const alt_bn128_G1 &g)
static mnt6_G1 random_element()
alt_bn128_G1 operator*(const bigint< m > &lhs, const alt_bn128_G1 &rhs)
mnt6_G1(const mnt6_Fq &X, const mnt6_Fq &Y)
static const mp_size_t h_limbs
void write_compressed(std::ostream &) const
bool is_well_formed() const
void write_uncompressed(std::ostream &) const
static void batch_to_special_all_non_zeros(std::vector< mnt6_G1 > &vec)