You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Circuit trait requires me to implement the configure() function, defined as:
/// The circuit is given an opportunity to describe the exact gate/// arrangement, column arrangement, etc.fnconfigure(meta:&mutConstraintSystem<F>) -> Self::Config;
Because (unlike Circuit::synthesize()) I don't have access to &self here, I must know the configuration at compile time.
What's the reason for that? Is there a way around it?
In my case, I'm writing a tool that proves the inference of an ML model. The exact circuit depends on the model, which is dynamically loaded from a file. I understand the model needs to be available at key generation time, but why must I compile it into the program?
The text was updated successfully, but these errors were encountered:
So it turns out that this is fixed in the PSE fork by privacy-scaling-explorations#168: One can activate the circuit-params feature, which adds two functions to the Circuit trait:
The
Circuit
trait requires me to implement theconfigure()
function, defined as:Because (unlike
Circuit::synthesize()
) I don't have access to&self
here, I must know the configuration at compile time.What's the reason for that? Is there a way around it?
In my case, I'm writing a tool that proves the inference of an ML model. The exact circuit depends on the model, which is dynamically loaded from a file. I understand the model needs to be available at key generation time, but why must I compile it into the program?
The text was updated successfully, but these errors were encountered: