Hello, after generating keypair, I am trying to store pk and vk into file and users can prove or verify by using pk_file or vk_file.
Everything works with vk but fails when doing proving_key. I tried to use function: stub_prove_from_pb in stubs.cpp but there is an error:
Assertion failed: (limbs_written <= n), function operator>>, file bigint.tcc, line 218.
Abort trap: 6
I then go into deeper and find the error happens when calling loadFromFile in utils.hpp. The system cannot convert the stringstream into ethsnarks::ProvingKeyT type. I fetched lines related to writing proving_key to file and load proving_key from file here. Last line is where cause the error. To be more specific, error happens in loadFromFile:
T obj;
ss >> obj;
The program fail to convert the input stringstream into a ProvingKeyT.
Hello, after generating keypair, I am trying to store pk and vk into file and users can prove or verify by using pk_file or vk_file. Everything works with vk but fails when doing proving_key. I tried to use function: stub_prove_from_pb in stubs.cpp but there is an error: Assertion failed: (limbs_written <= n), function operator>>, file bigint.tcc, line 218. Abort trap: 6
I then go into deeper and find the error happens when calling loadFromFile in utils.hpp. The system cannot convert the stringstream into ethsnarks::ProvingKeyT type. I fetched lines related to writing proving_key to file and load proving_key from file here. Last line is where cause the error. To be more specific, error happens in loadFromFile:
T obj; ss >> obj;
The program fail to convert the input stringstream into a ProvingKeyT.
Is there anyway to resolve it?