#include <bn254_if.hpp>
Definition at line 198 of file bn254_if.hpp.
◆ Ec2() [1/4]
◆ Ec2() [2/4]
Ec2::Ec2 |
( |
const Ec2 & | x | ) |
|
|
inline |
◆ Ec2() [3/4]
Ec2::Ec2 |
( |
const Fp2 & | x, |
|
|
const Fp2 & | y ) |
throw | ( | std::exception ) | | | |
|
inline |
◆ Ec2() [4/4]
Ec2::Ec2 |
( |
const Fp2 & | x, |
|
|
const Fp2 & | y, |
|
|
const Fp2 & | z ) |
throw | ( | std::exception ) | | | |
|
inline |
◆ add()
void Ec2::add |
( |
const Ec2 & | rhs | ) |
|
|
inline |
Definition at line 237 of file bn254_if.hpp.
static void add(EcT &R, const EcT &P, const EcT &Q)
◆ clear()
◆ dbl()
Definition at line 235 of file bn254_if.hpp.
static void dbl(EcT &R, const EcT &P)
◆ equals()
bool Ec2::equals |
( |
const Ec2 & | rhs | ) |
const |
|
inline |
Definition at line 232 of file bn254_if.hpp.
232{ return self_ == rhs.self_; }
◆ getX()
Definition at line 240 of file bn254_if.hpp.
240{
return *
reinterpret_cast<Fp2*
>(&self_.
p[0]); }
◆ getY()
Definition at line 241 of file bn254_if.hpp.
241{
return *
reinterpret_cast<Fp2*
>(&self_.
p[1]); }
◆ getZ()
Definition at line 242 of file bn254_if.hpp.
242{
return *
reinterpret_cast<Fp2*
>(&self_.
p[2]); }
◆ isValid()
bool Ec2::isValid |
( |
| ) |
const |
|
inline |
◆ isZero()
bool Ec2::isZero |
( |
| ) |
const |
|
inline |
◆ mul()
void Ec2::mul |
( |
const Mpz & | rhs | ) |
|
|
inline |
Definition at line 239 of file bn254_if.hpp.
static void mul(EcT &R, const EcT &P, const N &y)
◆ neg()
Definition at line 236 of file bn254_if.hpp.
static void neg(EcT &R, const EcT &P)
◆ set() [1/3]
void Ec2::set |
( |
const Fp2 & | x, |
|
|
const Fp2 & | y ) |
throw | ( | std::exception ) | | | |
|
inline |
Definition at line 213 of file bn254_if.hpp.
214 {
215 self_.
set(x.self_,
y.self_);
216 }
void set(const T &x, const T &y, bool verify=true)
◆ set() [2/3]
void Ec2::set |
( |
const Fp2 & | x, |
|
|
const Fp2 & | y, |
|
|
const Fp2 & | z ) |
throw | ( | std::exception ) | | | |
|
inline |
Definition at line 217 of file bn254_if.hpp.
218 {
219 self_.
set(x.self_,
y.self_, z.self_);
220 }
◆ set() [3/3]
void Ec2::set |
( |
const std::string & | str | ) |
|
throw | ( | std::exception ) | | | |
|
inline |
Definition at line 221 of file bn254_if.hpp.
222 {
223 std::istringstream iss(str);
224 iss >> self_;
225 }
◆ sub()
void Ec2::sub |
( |
const Ec2 & | rhs | ) |
|
|
inline |
Definition at line 238 of file bn254_if.hpp.
static void sub(EcT &R, const EcT &P, const EcT &Q)
◆ toString()
std::string Ec2::toString |
( |
| ) |
const |
throw | ( | std::exception ) | | | |
|
inline |
Definition at line 226 of file bn254_if.hpp.
227 {
228 std::ostringstream oss;
229 oss << self_;
230 return oss.str();
231 }
◆ Fp12
The documentation for this class was generated from the following file:
- libraries/fc/libraries/ff/depends/ate-pairing/java/bn254_if.hpp