arrow_backRetour aux issues
Consensys/gnark
#650
Débutant
Ouvrirarrow_forward
Débutant
Ouvrirarrow_forward
Débutant
Ouvrirarrow_forward
fix: test engine does not differentiate between constants and variables
ecoDébutant
type: bug
good first issue
type: consolidate
descriptionDescription
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
medik8s/fence-agents-remediation
star18
Poids du dépôt moyen
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 attempting to li…
Go
good first issue
Wayfare-labs/wayfare
star1
Poids du dépôt léger
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 acceptance criteria…
Go
help wanted
area:corridor
Wayfare-labs/wayfare
star1
Poids du dépôt léger
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 detail. I…
Go
help wanted
good first issue