Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the insertion/extraction operator of r1cs_ppzkadsnark_auth_data #162

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,10 @@ bool r1cs_ppzkadsnark_auth_data<ppT>::operator==(const r1cs_ppzkadsnark_auth_dat
template<typename ppT>
std::ostream& operator<<(std::ostream &out, const r1cs_ppzkadsnark_auth_data<ppT> &data)
{
out << data.mu;
//A libff::Fr instance cannot be correctly parsed if placed in front of a libff::G2 instance
//This is a ad hoc fix
out << data.Lambda;
out << data.mu;
out << data.sigma;

return out;
Expand All @@ -130,9 +132,11 @@ std::ostream& operator<<(std::ostream &out, const r1cs_ppzkadsnark_auth_data<ppT
template<typename ppT>
std::istream& operator>>(std::istream &in, r1cs_ppzkadsnark_auth_data<ppT> &data)
{
in >> data.mu;
//A libff::Fr instance cannot be correctly parsed if placed in front of a libff::G2 instance
//This is a ad hoc fix
in >> data.Lambda;
data.sigma;
in >> data.mu;
in >> data.sigma;

return in;
}
Expand Down