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