Skip to content
This repository was archived by the owner on Oct 28, 2024. It is now read-only.
This repository was archived by the owner on Oct 28, 2024. It is now read-only.

Error when loading proving_key from pk_file #167

Open
@plyu3

Description

@plyu3

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?

截屏2022-02-11 下午5 45 20

截屏2022-02-11 下午5 47 09

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions