Clearmatics Libff
0.1
C++ library for Finite Fields and Elliptic Curves
|
Go to the documentation of this file.
8 #ifndef BLS12_377_G1_HPP_
9 #define BLS12_377_G1_HPP_
18 std::ostream &
operator<<(std::ostream &,
const bls12_377_G1 &);
19 std::istream &
operator>>(std::istream &, bls12_377_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;
111 template<mp_
size_t m>
114 return scalar_mul<bls12_377_G1, m>(rhs, lhs);
117 template<mp_
size_t m, const big
int<m> &modulus_p>
121 return scalar_mul<bls12_377_G1, m>(rhs, lhs.
as_bigint());
126 #endif // BLS12_377_G1_HPP_
static bls12_377_Fq coeff_b
static bls12_377_G1 G1_zero
void write_compressed(std::ostream &) const
bool is_in_safe_subgroup() const
static const bls12_377_G1 & zero()
bls12_377_G1 sigma() const
static const mp_size_t h_limbs
bls12_377_G1(const bls12_377_Fq &X, const bls12_377_Fq &Y, const bls12_377_Fq &Z)
void write_uncompressed(std::ostream &) const
std::istream & operator>>(std::istream &in, alt_bn128_G1 &g)
static bls12_377_Fq coeff_a
static bls12_377_G1 random_element()
bls12_377_G1 mixed_add(const bls12_377_G1 &other) const
bls12_377_G1 operator+(const bls12_377_G1 &other) const
bool operator==(const bls12_377_G1 &other) const
void to_affine_coordinates()
static std::vector< size_t > wnaf_window_table
void print_coordinates() const
static bigint< scalar_field::num_limbs > order()
static size_t size_in_bits()
bool operator!=(const bls12_377_G1 &other) const
bls12_377_G1 mul_by_cofactor() const
static const bigint< n > & field_char()
bool is_well_formed() const
static void read_uncompressed(std::istream &, bls12_377_G1 &)
bigint< n > as_bigint() const
static void batch_to_special_all_non_zeros(std::vector< bls12_377_G1 > &vec)
std::ostream & operator<<(std::ostream &out, const alt_bn128_G1 &g)
static const bls12_377_G1 & one()
alt_bn128_G1 operator*(const bigint< m > &lhs, const alt_bn128_G1 &rhs)
static bls12_377_G1 G1_one
static void read_compressed(std::istream &, bls12_377_G1 &)
bls12_377_G1 add(const bls12_377_G1 &other) const
bls12_377_Fr scalar_field
static std::vector< size_t > fixed_base_exp_window_table
static const mp_size_t h_bitcount
static size_t size_in_bits()
static bigint< h_limbs > h
static bigint< base_field::num_limbs > base_field_char()
bls12_377_G1 proof_of_safe_subgroup() const
bls12_377_G1 operator-() const