fix: test engine does not differentiate between constants and variables
Débutant
type: buggood first issuetype: consolidate
1 731 ★
Poids du clone léger
Mise à jour
Description
In addition to being able to solve the witness for the circuit and run the prover, gnark has a feature where we represent all witness values as `*big.Int` and just run the computations. This feature (called the test engine) is very useful for writing and debugging complex circuits as we can compare the intermediate results to natively computed results.
Right now however, as the variables in test engines are vanilla `*big.Int`, we lose a bit of context - is the input a variable or a constant. In the frontend and gadgets we frequently take different paths depending on this bit. In order to ensure that the different computation paths are compatible, we have the [`SetAllVariablesAsConstants`](https://github.com/ConsenSys/gnark/blob/master/test/engine.go#L74) option. But this doesn't capture the situation where some of the inputs are variables and some constants.
It would be good to embed the variables in test engine which allows to capture the constantness bit.
Issues similaires
Tout voir
Go
Débutant
v0.8.0 starts a cluster-scoped Secret informer despite namespace-scoped Secret RBAC
## Description While testing Fence Agents Remediation (FAR) v0.8.0, I observed the manager repeatedly attemp…
Mise à jour
Go
Débutant
Check that an issuer's home_domain round-trips to the same stellar.toml
Written to the standard set by #33 — read that issue first for the expected level of detail and the acceptanc…
Mise à jour
Go
Débutant
Report auth_immutable: whether an issuer's flags can still change
> **This issue is the reference standard.** Every other check issue links back here for the expected level of…
Mise à jour