Integrate low memory prover.
This commit is contained in:
@@ -293,11 +293,14 @@ public:
|
|||||||
// estimate that it doesn't matter if we check every time.
|
// estimate that it doesn't matter if we check every time.
|
||||||
pb.constraint_system.swap_AB_if_beneficial();
|
pb.constraint_system.swap_AB_if_beneficial();
|
||||||
|
|
||||||
r1cs_ppzksnark_proving_key<ppzksnark_ppT> pk;
|
std::ifstream fh(pkPath, std::ios::binary);
|
||||||
loadFromFile(pkPath, pk);
|
|
||||||
|
|
||||||
return ZCProof(r1cs_ppzksnark_prover<ppzksnark_ppT>(
|
if(!fh.is_open()) {
|
||||||
pk,
|
throw std::runtime_error((boost::format("could not load param file at %s") % pkPath).str());
|
||||||
|
}
|
||||||
|
|
||||||
|
return ZCProof(r1cs_ppzksnark_prover_streaming<ppzksnark_ppT>(
|
||||||
|
fh,
|
||||||
primary_input,
|
primary_input,
|
||||||
aux_input,
|
aux_input,
|
||||||
pb.constraint_system
|
pb.constraint_system
|
||||||
|
|||||||
Reference in New Issue
Block a user