Clearmatics Libff  0.1
C++ library for Finite Fields and Elliptic Curves
Public Member Functions | Public Attributes | Friends | List of all members
libff::bw6_761_ate_G2_precomp_iteration Struct Reference

#include <bw6_761_pairing.hpp>

Collaboration diagram for libff::bw6_761_ate_G2_precomp_iteration:
Collaboration graph
[legend]

Public Member Functions

bool operator== (const bw6_761_ate_G2_precomp_iteration &other) const
 

Public Attributes

bw6_761_Fq QX
 
bw6_761_Fq QY
 
std::vector< bw6_761_ate_ell_coeffscoeffs
 

Friends

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

Detailed Description

Definition at line 39 of file bw6_761_pairing.hpp.

Member Function Documentation

◆ operator==()

bool libff::bw6_761_ate_G2_precomp_iteration::operator== ( const bw6_761_ate_G2_precomp_iteration other) const

Definition at line 60 of file bw6_761_pairing.cpp.

62 {
63  return (
64  this->QX == other.QX && this->QY == other.QY &&
65  this->coeffs == other.coeffs);
66 }

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 68 of file bw6_761_pairing.cpp.

70 {
71  out << prec_Q.QX << OUTPUT_SEPARATOR << prec_Q.QY << "\n";
72  out << prec_Q.coeffs.size() << "\n";
73  for (const bw6_761_ate_ell_coeffs &c : prec_Q.coeffs) {
74  out << c << OUTPUT_NEWLINE;
75  }
76  return out;
77 }

◆ operator>>

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

Definition at line 79 of file bw6_761_pairing.cpp.

81 {
82  in >> prec_Q.QX;
84  in >> prec_Q.QY;
85  consume_newline(in);
86 
87  prec_Q.coeffs.clear();
88  size_t s;
89  in >> s;
90 
91  consume_newline(in);
92 
93  prec_Q.coeffs.reserve(s);
94 
95  for (size_t i = 0; i < s; ++i) {
96  bw6_761_ate_ell_coeffs c;
97  in >> c;
99  prec_Q.coeffs.emplace_back(c);
100  }
101 
102  return in;
103 }

Member Data Documentation

◆ coeffs

std::vector<bw6_761_ate_ell_coeffs> libff::bw6_761_ate_G2_precomp_iteration::coeffs

Definition at line 42 of file bw6_761_pairing.hpp.

◆ QX

bw6_761_Fq libff::bw6_761_ate_G2_precomp_iteration::QX

Definition at line 40 of file bw6_761_pairing.hpp.

◆ QY

bw6_761_Fq libff::bw6_761_ate_G2_precomp_iteration::QY

Definition at line 41 of file bw6_761_pairing.hpp.


The documentation for this struct was generated from the following files:
OUTPUT_SEPARATOR
#define OUTPUT_SEPARATOR
Definition: serialization.hpp:69
libff::consume_OUTPUT_SEPARATOR
void consume_OUTPUT_SEPARATOR(std::istream &in)
libff::consume_OUTPUT_NEWLINE
void consume_OUTPUT_NEWLINE(std::istream &in)
libff::bw6_761_ate_G2_precomp_iteration::QX
bw6_761_Fq QX
Definition: bw6_761_pairing.hpp:40
OUTPUT_NEWLINE
#define OUTPUT_NEWLINE
Definition: serialization.hpp:68
libff::consume_newline
void consume_newline(std::istream &in)