In this repository you can find an example on how to prove the inference of a NN built with Orion using LambdaClass STARK Prover.
scarb build
- Convert the Sierra file into CASM:
starknet-sierra-compile -- target/dev/orion_runner_OrionRunner.sierra.json target/dev/orion_runner.casm.json
- Clone the STARK prover repository.
git clone https://github.com/lambdaclass/lambdaworks_starknet_stack_prover.git
- Go the repo directory:
cd lambdaworks_starknet_stack_prover
- Prove the CASM file:
make prove PROGRAM_PATH=../target/dev/orion_runner.casm.json PROOF_PATH=zk.proof
- Verify the proof:
make verify PROOF_PATH=./zk.proof