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