Skip to content

Serde Support for Core Structures #1182

@ivanlele

Description

@ivanlele

Hi team,

I'm wondering if there are plans to add serde support or other serialization methods for core structures such as ValueVec, Circuit, etc.

Current Issue:
Currently, when you want to compile a circuit separately and use it later, you need to populate the witness and save it together with only the constraints, not the entire circuit (as shown in your examples here.

Problem:
If you want to create a witness separately from the circuit compilation scope, you may not be able to access WitnessFiller because it's derived from Circuit, which is not serializable and cannot be saved.

Proposed Solution:
I cloned this project and added serde support for all the mentioned structures. This allows me to run circuit compilation and witness population separately. At first glance, there are no issues - proofs generate correctly.

Question:
Would the team be open to adding serde support for these structures?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions