Keras model to Circom circuit transpiler
Top 99.8% on sourcepulse
This tool transpiles TensorFlow Keras models into Circom circuits, enabling the deployment of neural networks within zero-knowledge proofs. It targets developers and researchers in the ZKML (Zero-Knowledge Machine Learning) space looking to integrate ML models into blockchain or privacy-preserving applications.
How It Works
The tool parses a saved Keras model (.h5
format) and translates its layers and operations into equivalent Circom components. This allows for the execution of neural network inference within a ZK-SNARK-friendly arithmetic circuit, facilitating verifiable computation.
Quick Start & Requirements
pip install -r requirements.txt
or conda env create -f environment.yml
.bash setup-circom.sh
and npm install
.python main.py <model_path> [-o <output_dir>] [--raw]
Highlighted Details
tf.keras
models to Circom.npm test
.Maintenance & Community
No specific community channels or roadmap are detailed in the README.
Licensing & Compatibility
The repository does not explicitly state a license. Compatibility for commercial use or closed-source linking is undetermined.
Limitations & Caveats
The README does not specify which Keras layers are supported or provide performance benchmarks. The tool appears to be in early development, with potential limitations on model complexity and supported operations.
1 year ago
Inactive