#include <bn254_if.hpp>
|
| Ec1 () |
|
| Ec1 (const Ec1 &x) |
|
| Ec1 (const Fp &x, const Fp &y) throw (std::exception) |
|
| Ec1 (const Fp &x, const Fp &y, const Fp &z) throw (std::exception) |
|
bool | isValid () const |
|
void | set (const Fp &x, const Fp &y) throw (std::exception) |
|
void | set (const Fp &x, const Fp &y, const Fp &z) throw (std::exception) |
|
void | set (const std::string &str) throw (std::exception) |
|
std::string | toString () const throw (std::exception) |
|
bool | equals (const Ec1 &rhs) const |
|
bool | isZero () const |
|
void | clear () |
|
void | dbl () |
|
void | neg () |
|
void | add (const Ec1 &rhs) |
|
void | sub (const Ec1 &rhs) |
|
void | mul (const Mpz &rhs) |
|
Fp & | getX () |
|
Fp & | getY () |
|
Fp & | getZ () |
|
Definition at line 151 of file bn254_if.hpp.
◆ Ec1() [1/4]
◆ Ec1() [2/4]
Ec1::Ec1 |
( |
const Ec1 & | x | ) |
|
|
inline |
◆ Ec1() [3/4]
Ec1::Ec1 |
( |
const Fp & | x, |
|
|
const Fp & | y ) |
throw | ( | std::exception ) | | | |
|
inline |
◆ Ec1() [4/4]
Ec1::Ec1 |
( |
const Fp & | x, |
|
|
const Fp & | y, |
|
|
const Fp & | z ) |
throw | ( | std::exception ) | | | |
|
inline |
◆ add()
void Ec1::add |
( |
const Ec1 & | rhs | ) |
|
|
inline |
Definition at line 190 of file bn254_if.hpp.
static void add(EcT &R, const EcT &P, const EcT &Q)
◆ clear()
◆ dbl()
Definition at line 188 of file bn254_if.hpp.
static void dbl(EcT &R, const EcT &P)
◆ equals()
bool Ec1::equals |
( |
const Ec1 & | rhs | ) |
const |
|
inline |
Definition at line 185 of file bn254_if.hpp.
185{ return self_ == rhs.self_; }
◆ getX()
Definition at line 193 of file bn254_if.hpp.
193{
return *
reinterpret_cast<Fp*
>(&self_.
p[0]); }
◆ getY()
Definition at line 194 of file bn254_if.hpp.
194{
return *
reinterpret_cast<Fp*
>(&self_.
p[1]); }
◆ getZ()
Definition at line 195 of file bn254_if.hpp.
195{
return *
reinterpret_cast<Fp*
>(&self_.
p[2]); }
◆ isValid()
bool Ec1::isValid |
( |
| ) |
const |
|
inline |
◆ isZero()
bool Ec1::isZero |
( |
| ) |
const |
|
inline |
◆ mul()
void Ec1::mul |
( |
const Mpz & | rhs | ) |
|
|
inline |
Definition at line 192 of file bn254_if.hpp.
static void mul(EcT &R, const EcT &P, const N &y)
◆ neg()
Definition at line 189 of file bn254_if.hpp.
static void neg(EcT &R, const EcT &P)
◆ set() [1/3]
void Ec1::set |
( |
const Fp & | x, |
|
|
const Fp & | y ) |
throw | ( | std::exception ) | | | |
|
inline |
Definition at line 166 of file bn254_if.hpp.
167 {
168 self_.
set(x.self_,
y.self_);
169 }
void set(const T &x, const T &y, bool verify=true)
◆ set() [2/3]
void Ec1::set |
( |
const Fp & | x, |
|
|
const Fp & | y, |
|
|
const Fp & | z ) |
throw | ( | std::exception ) | | | |
|
inline |
Definition at line 170 of file bn254_if.hpp.
171 {
172 self_.
set(x.self_,
y.self_, z.self_);
173 }
◆ set() [3/3]
void Ec1::set |
( |
const std::string & | str | ) |
|
throw | ( | std::exception ) | | | |
|
inline |
Definition at line 174 of file bn254_if.hpp.
175 {
176 std::istringstream iss(str);
177 iss >> self_;
178 }
◆ sub()
void Ec1::sub |
( |
const Ec1 & | rhs | ) |
|
|
inline |
Definition at line 191 of file bn254_if.hpp.
static void sub(EcT &R, const EcT &P, const EcT &Q)
◆ toString()
std::string Ec1::toString |
( |
| ) |
const |
throw | ( | std::exception ) | | | |
|
inline |
Definition at line 179 of file bn254_if.hpp.
180 {
181 std::ostringstream oss;
182 oss << self_;
183 return oss.str();
184 }
◆ Fp12
The documentation for this class was generated from the following file:
- libraries/fc/libraries/ff/depends/ate-pairing/java/bn254_if.hpp