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

#include <bn128_pairing.hpp>

Collaboration diagram for libff::bn128_ate_G1_precomp:

Public Member Functions

bool operator== (const bn128_ate_G1_precomp &other) const
 

Public Attributes

bn::Fp P [3]
 

Friends

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

Detailed Description

Definition at line 21 of file bn128_pairing.hpp.

Member Function Documentation

◆ operator==()

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

Definition at line 22 of file bn128_pairing.cpp.

23{
24 return (this->P[0] == other.P[0] &&
25 this->P[1] == other.P[1] &&
26 this->P[2] == other.P[2]);
27}

Friends And Related Symbol Documentation

◆ operator<<

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

Definition at line 29 of file bn128_pairing.cpp.

30{
31 for (size_t i = 0; i < 3; ++i)
32 {
33#ifndef BINARY_OUTPUT
34 out << prec_P.P[i] << "\n";
35#else
36 out.write((char*) &prec_P.P[i], sizeof(prec_P.P[i]));
37#endif
38 }
39 return out;
40}

◆ operator>>

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

Definition at line 42 of file bn128_pairing.cpp.

43{
44 for (size_t i = 0; i < 3; ++i)
45 {
46#ifndef BINARY_OUTPUT
47 in >> prec_P.P[i];
49#else
50 in.read((char*) &prec_P.P[i], sizeof(prec_P.P[i]));
51#endif
52 }
53 return in;
54}
void consume_newline(std::istream &in)

Member Data Documentation

◆ P

bn::Fp libff::bn128_ate_G1_precomp::P[3]

Definition at line 22 of file bn128_pairing.hpp.


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