v0.6.0
[v0.6.0] - 2022-01-03
Important: next release (v0.7.0) will be compatible with Go1.18+ only
Breaking changes
circuit.Define(curveID, api)->circuit.Define(api); addedapi.Curve()to retrieve curve infoapi.Constant(...)was removed. Can now directy assign values with=operator in the circuit definition and the witness assignment.frontend.Variableis now an alias forinterface{}- assert helper is now under
gnark/test. Instead of taking aCompiledConstraintSystemit takes aCircuitas input, enabling easier tests accross curves and proving schemes through the use oftest/TestingOption(WithBackends(backend.GROTH16),WithCurves(ecc.BN254), ...) api.NewHinthandles multiple outputs and custom solverHintdefinition has changed
Feat
- added explicit warning when parser encounters unadressable struct field #169
FromInterfacesupports uintXX and intXX types closes #197- lighter stack trace by default for circuits, more verbose when
-tags=debugprovided - added
api.Tagandapi.AddCounterto measure number of constraints in portion of circuit api.DivUncheckeddoes not handle zero divisor.api.Divdoes.- added
frontend.IsConstantandConstantValueapis - add support for bw6-633 curve
- added
api.Lookup2method (2-bit lookup) - frontend: plonk frontend directly implements the
frontend.APIinterface instead of building on top of theR1CSbuilder - std: fields and pairing over BLS24-315 in BW6-633 circuit
- test: add
Runfor running circuit test configurations as subtests - test: add
Logmethod for logging in subtests - test: assert helper cross check constraint system solver results with
big.Inttest execution engine
Perf
- std: verifying a Pairing (bls12-377, Groth16) inside a circuit went from ~40k constraints to less than <12k constraints
Fix
- fixes #169 ensure frontend.Circuit methods are defined on pointer receiver
- fixes #178 by adding cbor.MaxMapPairs options when reading R1CS
- fixed
AssertIsBooleanin plonk (mul by constant failed) - fixes #168 adds context to a non-deterministic compilation error in the Assert object
- frontend: reduce constant by modulus
- frontend: plonk compiler now outputs a reasonable number of constraints #186
Build
- updated to gnark-crypto v0.6.0
Pull Requests
- Merge pull request #192 from ConsenSys/multi-hint
- Merge pull request #220 from ConsenSys/feat-from-interface
- Merge pull request #217 from ConsenSys/fix-internal-compiled
- Merge pull request #191 from ConsenSys/assert-subtests
- Merge pull request #200 from ConsenSys/refactor/frontend
- Merge pull request #205 from ConsenSys/fix/constant-mod-reduction
- Merge pull request #186 from ConsenSys/fix/plonk_constraints
- Merge pull request #185 from ConsenSys/feat/bw6-633
- Merge pull request #189 from ConsenSys/lookup2
- Merge pull request #183 from ivokub/hint-registry
- Merge pull request #182 from ConsenSys/std/pairing
- Merge pull request #176 from ConsenSys/feat-constraint-counter
- Merge pull request #180 from ConsenSys/refactor-variable-interface
- Merge pull request #173 from ConsenSys/feat-debug-tag