Skip to content

Rust adapter for 0xPolygonID/witnesscalc for any circuit

Notifications You must be signed in to change notification settings

zkmopro/witnesscalc_adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Witnesscalc Adapter

This project provides a Rust adapter for compiling and linking Circom circuit witness generator C++ sources into a native library for target platforms (e.g., mobile devices). It includes macros and functions to facilitate the integration of witness generation into Rust codebases.

Usage

In build.rs, add the following code to compile the witness generator C++ sources into a native library and link to it:

witnesscalc_adapter::build_and_link("../path to directory containing your C++ sources");

In your main code, use the witness macro to generate a witness for a given input:

witnesscalc_adapter::witness!(<circuit name>);

Acknowledgements

Inspired by https://github.com/chancehudson/rust-witness. This adapter relies on the 0xPolygonID/witnesscalc library fork.

About

Rust adapter for 0xPolygonID/witnesscalc for any circuit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published