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

Feature request: Add compile API from to build circuit from source and assignments #115

Open
paulcadman opened this issue Jun 29, 2023 · 0 comments

Comments

@paulcadman
Copy link
Collaborator

vamp-ir is used as a library in the taiga product. It will be used to compile and execute circuits provided from user input in transactions. Both the vamp-ir code for a circuit and its inputs will be fields on some transaction data structure rather than files in the file-system.

It would be convenient to have a vamp-ir compile API to support this use case.

As a starting off point for discussion let's consider:

compile_from_source(
        vamp_ir_source: &str,
        named_field_assignments: HashMap<String, Fp>
        field_ops: &dyn FieldOps,
        config: &Config) -> Result<Halo2Module<FP>, VampIRError>

This could be made generic on the PrimeField (and module type? - not sure I don't know rust well).

requirements / questions / comments:

@paulcadman paulcadman changed the title Feature request: Add compile API from to build circuit from source string and assignments Feature request: Add compile API from to build circuit from source and assignments Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant