#include <bw6_761_g1.hpp>
Definition at line 14 of file bw6_761_g1.hpp.
◆ base_field
◆ scalar_field
◆ bw6_761_G1() [1/2]
libff::bw6_761_G1::bw6_761_G1 |
( |
| ) |
|
◆ bw6_761_G1() [2/2]
◆ add()
Definition at line 206 of file bw6_761_g1.cpp.
212 if (other.is_zero()) {
220 if (this->
operator==(other)) {
224 #ifdef PROFILE_OP_COUNTS
249 const bw6_761_Fq A = uu * Z1Z2 - (vvv + R + R);
253 const bw6_761_Fq Y3 = u * (R - A) - vvv * Y1Z2;
◆ base_field_char()
◆ batch_to_special_all_non_zeros()
void libff::bw6_761_G1::batch_to_special_all_non_zeros |
( |
std::vector< bw6_761_G1 > & |
vec | ) |
|
|
static |
Definition at line 489 of file bw6_761_g1.cpp.
491 std::vector<bw6_761_Fq> Z_vec;
492 Z_vec.reserve(vec.size());
494 for (
auto &el : vec) {
495 Z_vec.emplace_back(el.Z);
497 batch_invert<bw6_761_Fq>(Z_vec);
501 for (
size_t i = 0; i < vec.size(); ++i) {
502 vec[i].X = vec[i].X * Z_vec[i];
503 vec[i].Y = vec[i].Y * Z_vec[i];
◆ dbl()
◆ is_in_safe_subgroup()
bool libff::bw6_761_G1::is_in_safe_subgroup |
( |
| ) |
const |
◆ is_special()
bool libff::bw6_761_G1::is_special |
( |
| ) |
const |
◆ is_well_formed()
bool libff::bw6_761_G1::is_well_formed |
( |
| ) |
const |
◆ is_zero()
bool libff::bw6_761_G1::is_zero |
( |
| ) |
const |
◆ mixed_add()
Definition at line 263 of file bw6_761_g1.cpp.
266 assert(other.is_special());
273 if (other.is_zero()) {
284 if (this->
X == X2Z1 && this->
Y == Y2Z1) {
288 #ifdef PROFILE_OP_COUNTS
◆ mul_by_cofactor()
bw6_761_G1 libff::bw6_761_G1::mul_by_cofactor |
( |
| ) |
const |
◆ one()
◆ operator!=()
bool libff::bw6_761_G1::operator!= |
( |
const bw6_761_G1 & |
other | ) |
const |
◆ operator+()
Definition at line 111 of file bw6_761_g1.cpp.
118 if (other.is_zero()) {
138 if (X1Z2 == X2Z1 && Y1Z2 == Y2Z1) {
185 const bw6_761_Fq A = uu * Z1Z2 - (vvv + R + R);
189 const bw6_761_Fq Y3 = u * (R - A) - vvv * Y1Z2;
◆ operator-() [1/2]
◆ operator-() [2/2]
◆ operator==()
bool libff::bw6_761_G1::operator== |
( |
const bw6_761_G1 & |
other | ) |
const |
Definition at line 84 of file bw6_761_g1.cpp.
87 return other.is_zero();
90 if (other.is_zero()) {
98 if (((this->
X * other.Z) != (other.X * this->Z)) ||
99 ((this->Y * other.Z) != (other.Y * this->Z))) {
◆ order()
◆ print()
void libff::bw6_761_G1::print |
( |
| ) |
const |
Definition at line 26 of file bw6_761_g1.cpp.
32 copy.to_affine_coordinates();
35 copy.X.as_bigint().data,
37 copy.Y.as_bigint().data,
◆ print_coordinates()
void libff::bw6_761_G1::print_coordinates |
( |
| ) |
const |
Definition at line 42 of file bw6_761_g1.cpp.
48 "(%Nd : %Nd : %Nd)\n",
51 this->Y.as_bigint().data,
53 this->Z.as_bigint().data,
◆ random_element()
◆ read_compressed()
void libff::bw6_761_G1::read_compressed |
( |
std::istream & |
in, |
|
|
bw6_761_G1 & |
g |
|
) |
| |
|
static |
Definition at line 444 of file bw6_761_g1.cpp.
457 in.read((
char *)&Y_lsb, 1);
467 if ((tY.as_bigint().data[0] & 1) != Y_lsb) {
◆ read_uncompressed()
void libff::bw6_761_G1::read_uncompressed |
( |
std::istream & |
in, |
|
|
bw6_761_G1 & |
g |
|
) |
| |
|
static |
◆ size_in_bits()
static size_t libff::bw6_761_G1::size_in_bits |
( |
| ) |
|
|
inlinestatic |
◆ to_affine_coordinates()
void libff::bw6_761_G1::to_affine_coordinates |
( |
| ) |
|
Definition at line 58 of file bw6_761_g1.cpp.
66 this->
X = this->
X * Z_inv;
67 this->
Y = this->
Y * Z_inv;
◆ to_special()
void libff::bw6_761_G1::to_special |
( |
| ) |
|
◆ write_compressed()
void libff::bw6_761_G1::write_compressed |
( |
std::ostream & |
out | ) |
const |
◆ write_uncompressed()
void libff::bw6_761_G1::write_uncompressed |
( |
std::ostream & |
out | ) |
const |
◆ zero()
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const bw6_761_G1 & |
g |
|
) |
| |
|
friend |
Definition at line 416 of file bw6_761_g1.cpp.
418 #ifdef NO_PT_COMPRESSION
419 g.write_uncompressed(out);
421 g.write_compressed(out);
◆ operator>>
std::istream& operator>> |
( |
std::istream & |
in, |
|
|
bw6_761_G1 & |
g |
|
) |
| |
|
friend |
◆ coeff_a
◆ coeff_b
◆ fixed_base_exp_window_table
std::vector< size_t > libff::bw6_761_G1::fixed_base_exp_window_table |
|
static |
◆ G1_one
◆ G1_zero
◆ h_bitcount
const mp_size_t libff::bw6_761_G1::h_bitcount = 384 |
|
static |
◆ h_limbs
const mp_size_t libff::bw6_761_G1::h_limbs |
|
static |
◆ wnaf_window_table
std::vector< size_t > libff::bw6_761_G1::wnaf_window_table |
|
static |
The documentation for this class was generated from the following files:
- /home/runner/work/libff/libff/libff/algebra/curves/bw6_761/bw6_761_g1.hpp
- /home/runner/work/libff/libff/libff/algebra/curves/bw6_761/bw6_761_g1.cpp