Clearmatics Libff
0.1
C++ library for Finite Fields and Elliptic Curves
|
Go to the documentation of this file.
8 #ifndef ALT_BN128_G1_HPP_
9 #define ALT_BN128_G1_HPP_
18 std::ostream &
operator<<(std::ostream &,
const alt_bn128_G1 &);
19 std::istream &
operator>>(std::istream &, alt_bn128_G1 &);
24 #ifdef PROFILE_OP_COUNTS
25 static long long add_cnt;
26 static long long dbl_cnt;
41 (
h_bitcount + GMP_NUMB_BITS - 1) / GMP_NUMB_BITS;
101 return scalar_mul<alt_bn128_G1, m>(rhs, lhs);
104 template<mp_
size_t m, const big
int<m> &modulus_p>
108 return scalar_mul<alt_bn128_G1, m>(rhs, lhs.
as_bigint());
113 #endif // ALT_BN128_G1_HPP_
bool is_in_safe_subgroup() const
void to_affine_coordinates()
static size_t size_in_bits()
alt_bn128_G1 mul_by_cofactor() const
void write_compressed(std::ostream &) const
std::istream & operator>>(std::istream &in, alt_bn128_G1 &g)
static alt_bn128_Fq coeff_b
static void read_compressed(std::istream &, alt_bn128_G1 &)
void write_uncompressed(std::ostream &) const
bool operator!=(const alt_bn128_G1 &other) const
static alt_bn128_G1 G1_zero
bool operator==(const alt_bn128_G1 &other) const
alt_bn128_G1(const alt_bn128_Fq &X, const alt_bn128_Fq &Y, const alt_bn128_Fq &Z)
alt_bn128_Fr scalar_field
static size_t size_in_bits()
static alt_bn128_G1 G1_one
alt_bn128_G1 operator+(const alt_bn128_G1 &other) const
static bigint< h_limbs > h
alt_bn128_G1 add(const alt_bn128_G1 &other) const
alt_bn128_G1 operator-() const
static alt_bn128_G1 random_element()
static std::vector< size_t > fixed_base_exp_window_table
static bigint< scalar_field::num_limbs > order()
static const bigint< n > & field_char()
static alt_bn128_Fq coeff_a
void print_coordinates() const
bigint< n > as_bigint() const
static void batch_to_special_all_non_zeros(std::vector< alt_bn128_G1 > &vec)
static const mp_size_t h_limbs
static const alt_bn128_G1 & one()
std::ostream & operator<<(std::ostream &out, const alt_bn128_G1 &g)
alt_bn128_G1 operator*(const bigint< m > &lhs, const alt_bn128_G1 &rhs)
static const alt_bn128_G1 & zero()
static std::vector< size_t > wnaf_window_table
bool is_well_formed() const
static void read_uncompressed(std::istream &, alt_bn128_G1 &)
alt_bn128_G1 mixed_add(const alt_bn128_G1 &other) const
static const mp_size_t h_bitcount
static bigint< base_field::num_limbs > base_field_char()