Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
libff::alt_bn128_ate_G2_precomp Struct Reference

#include <alt_bn128_pairing.hpp>

Collaboration diagram for libff::alt_bn128_ate_G2_precomp:

Public Member Functions

bool operator== (const alt_bn128_ate_G2_precomp &other) const
 

Public Attributes

alt_bn128_Fq2 QX
 
alt_bn128_Fq2 QY
 
std::vector< alt_bn128_ate_ell_coeffscoeffs
 

Friends

std::ostream & operator<< (std::ostream &out, const alt_bn128_ate_G2_precomp &prec_Q)
 
std::istream & operator>> (std::istream &in, alt_bn128_ate_G2_precomp &prec_Q)
 

Detailed Description

Definition at line 41 of file alt_bn128_pairing.hpp.

Member Function Documentation

◆ operator==()

bool libff::alt_bn128_ate_G2_precomp::operator== ( const alt_bn128_ate_G2_precomp & other) const

Definition at line 64 of file alt_bn128_pairing.cpp.

65{
66 return (this->QX == other.QX &&
67 this->QY == other.QY &&
68 this->coeffs == other.coeffs);
69}

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & out,
const alt_bn128_ate_G2_precomp & prec_Q )
friend

Definition at line 71 of file alt_bn128_pairing.cpp.

72{
73 out << prec_Q.QX << OUTPUT_SEPARATOR << prec_Q.QY << "\n";
74 out << prec_Q.coeffs.size() << "\n";
75 for (const alt_bn128_ate_ell_coeffs &c : prec_Q.coeffs)
76 {
77 out << c << OUTPUT_NEWLINE;
78 }
79 return out;
80}
#define OUTPUT_NEWLINE
#define OUTPUT_SEPARATOR

◆ operator>>

std::istream & operator>> ( std::istream & in,
alt_bn128_ate_G2_precomp & prec_Q )
friend

Definition at line 82 of file alt_bn128_pairing.cpp.

83{
84 in >> prec_Q.QX;
86 in >> prec_Q.QY;
88
89 prec_Q.coeffs.clear();
90 size_t s;
91 in >> s;
92
94
95 prec_Q.coeffs.reserve(s);
96
97 for (size_t i = 0; i < s; ++i)
98 {
99 alt_bn128_ate_ell_coeffs c;
100 in >> c;
102 prec_Q.coeffs.emplace_back(c);
103 }
104
105 return in;
106}
void consume_OUTPUT_NEWLINE(std::istream &in)
void consume_OUTPUT_SEPARATOR(std::istream &in)
void consume_newline(std::istream &in)
char * s

Member Data Documentation

◆ coeffs

std::vector<alt_bn128_ate_ell_coeffs> libff::alt_bn128_ate_G2_precomp::coeffs

Definition at line 44 of file alt_bn128_pairing.hpp.

◆ QX

alt_bn128_Fq2 libff::alt_bn128_ate_G2_precomp::QX

Definition at line 42 of file alt_bn128_pairing.hpp.

◆ QY

alt_bn128_Fq2 libff::alt_bn128_ate_G2_precomp::QY

Definition at line 43 of file alt_bn128_pairing.hpp.


The documentation for this struct was generated from the following files: