Clearmatics Libff
0.1
C++ library for Finite Fields and Elliptic Curves
|
Go to the documentation of this file.
10 #include "depends/ate-pairing/include/bn.h"
20 std::ostream &
operator<<(std::ostream &,
const bn128_GT &);
21 std::istream &
operator>>(std::istream &, bn128_GT &);
38 void print() { std::cout << this->elem <<
"\n"; };
47 return power<bn128_GT, m>(rhs, lhs);
50 template<mp_
size_t m, const big
int<m> &modulus_p>
53 return power<bn128_GT, m>(rhs, lhs.
as_bigint());
57 #endif // BN128_GT_HPP_
std::istream & operator>>(std::istream &in, alt_bn128_G1 &g)
bool operator==(const bn128_GT &other) const
bn128_GT operator*(const bn128_GT &other) const
bn128_GT operator^(const bn128_GT &rhs, const bigint< m > &lhs)
friend std::ostream & operator<<(std::ostream &out, const bn128_GT &g)
bigint< n > as_bigint() const
std::ostream & operator<<(std::ostream &out, const alt_bn128_G1 &g)
friend std::istream & operator>>(std::istream &in, bn128_GT &g)
bool operator!=(const bn128_GT &other) const
bn128_GT unitary_inverse() const