Re: nargo execute. Is it possible to just generate witnesses without recompiling circuit? #7854
-
Hi, I'm wondering if it's possible to just generate witnesses (Prover.toml is already populated) without recompiling an already compiled circuit. I'm running However, it seems like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @ihyunnam, yes I agree that the current behaviour isn't ideal. You're correct that if you're not making changes to your circuit then by default We'd like to fully separate execution from compilation however, so we also have a This isn't currently distributed in our releases but if you compile from source then you can make use of this. |
Beta Was this translation helpful? Give feedback.
Hi @ihyunnam, yes I agree that the current behaviour isn't ideal.
You're correct that if you're not making changes to your circuit then by default
nargo execute
will short-circuit compilation after monomorphisation once we've checked that you'd be regenerating the same artifact as before. Repeatedly callingnargo execute
should have a relatively low compilation overhead.We'd like to fully separate execution from compilation however, so we also have a
noir-execute
binary which will directly consume a noir build artifact https://github.com/noir-lang/noir/blob/master/tooling/artifact_cli/This isn't currently distributed in our releases but if you compile from source then you can make use o…