Skip to content

Commit

Permalink
perf/feature: new serialization format for constraint systems (#1119)
Browse files Browse the repository at this point in the history
* step1: start to explore using intcomp

* perf: partial binary serialization for constraint system

* test: regenerate test circuits

* perf: make it parallel

* style: cosmetics edit

* feat: use uvarint for call data and regenerate regression test scs

* build: clean go.mod

* test: add fuzztest for intcomp

* test: add fuzzing seed corpus

---------

Co-authored-by: Ivo Kubjas <ivo.kubjas@consensys.net>
  • Loading branch information
gbotrel and ivokub authored Apr 30, 2024
1 parent 882f60f commit f3c5cf3
Show file tree
Hide file tree
Showing 243 changed files with 2,122 additions and 755 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ jobs:
go test -json -v -p 4 -tags=release_checks,solccheck . 2>&1 | gotestfmt -hide=all | tee -a /tmp/gotest.log
go test -json -v -p 4 -tags=prover_checks ./test/... 2>&1 | gotestfmt -hide=all | tee -a /tmp/gotest.log
go test -json -v -p 4 -tags=prover_checks ./examples/... 2>&1 | gotestfmt -hide=all | tee -a /tmp/gotest.log
go test -json -v -run=NONE -fuzz=FuzzIntcomp -fuzztime=30s ./internal/backend/ioutils 2>&1 | gotestfmt -hide=all | tee -a /tmp/gotest.log
- name: Generate job summary
id: generate-job-summary
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ jobs:
go test -v -p 4 -tags=release_checks,solccheck .
go test -v -p 4 -timeout=50m -tags=release_checks -race ./examples/cubic/...
go test -v -p 4 -timeout=50m -tags=release_checks -short -race ./test/...
go test -v -run=NONE -fuzz=FuzzIntcomp -fuzztime=30s ./internal/backend/ioutils
slack-workflow-status-failed:
Expand Down
38 changes: 38 additions & 0 deletions constraint/bls12-377/coeff.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

101 changes: 101 additions & 0 deletions constraint/bls12-377/marshal.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion constraint/bls12-377/solver.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

82 changes: 0 additions & 82 deletions constraint/bls12-377/system.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 38 additions & 0 deletions constraint/bls12-381/coeff.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f3c5cf3

Please sign in to comment.