Skip to content

Commit 682b50c

Browse files
authored
Refactor/gkr/blueprints (#1691)
1 parent 2beb826 commit 682b50c

71 files changed

Lines changed: 3974 additions & 2655 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

constraint/babybear/solver.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

constraint/babybear/system.go

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

constraint/bls12-377/solver.go

Lines changed: 5 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

constraint/bls12-377/system.go

Lines changed: 2 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

constraint/bls12-381/solver.go

Lines changed: 5 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

constraint/bls12-381/system.go

Lines changed: 2 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

constraint/blueprint.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ type Solver[E Element] interface {
3737
// Read interprets input calldata as a LinearExpression,
3838
// evaluates it and return the result and the number of uint32 word read.
3939
Read(calldata []uint32) (E, int)
40+
41+
// GetBlueprint returns the blueprint with the given ID.
42+
// This allows blueprints to query other blueprints by ID.
43+
GetBlueprint(id BlueprintID) Blueprint
4044
}
4145

4246
// BlueprintSolvable represents a blueprint that knows how to solve itself.

constraint/bn254/solver.go

Lines changed: 5 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

constraint/bn254/system.go

Lines changed: 2 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

constraint/bw6-761/solver.go

Lines changed: 5 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)