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

#include <bls12_381_pairing.hpp>

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

Public Member Functions

bool operator== (const bls12_381_ate_G1_precomp &other) const
 

Public Attributes

bls12_381_Fq PX
 
bls12_381_Fq PY
 

Friends

std::ostream & operator<< (std::ostream &out, const bls12_381_ate_G1_precomp &prec_P)
 
std::istream & operator>> (std::istream &in, bls12_381_ate_G1_precomp &prec_P)
 

Detailed Description

Definition at line 22 of file bls12_381_pairing.hpp.

Member Function Documentation

◆ operator==()

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

Definition at line 18 of file bls12_381_pairing.cpp.

20 {
21  return (this->PX == other.PX && this->PY == other.PY);
22 }

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const bls12_381_ate_G1_precomp prec_P 
)
friend

Definition at line 24 of file bls12_381_pairing.cpp.

26 {
27  out << prec_P.PX << OUTPUT_SEPARATOR << prec_P.PY;
28 
29  return out;
30 }

◆ operator>>

std::istream& operator>> ( std::istream &  in,
bls12_381_ate_G1_precomp prec_P 
)
friend

Definition at line 32 of file bls12_381_pairing.cpp.

33 {
34  in >> prec_P.PX;
36  in >> prec_P.PY;
37 
38  return in;
39 }

Member Data Documentation

◆ PX

bls12_381_Fq libff::bls12_381_ate_G1_precomp::PX

Definition at line 23 of file bls12_381_pairing.hpp.

◆ PY

bls12_381_Fq libff::bls12_381_ate_G1_precomp::PY

Definition at line 24 of file bls12_381_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::bls12_381_ate_G1_precomp::PX
bls12_381_Fq PX
Definition: bls12_381_pairing.hpp:23