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