Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions constraint/solver/gkrgates/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (

"github.com/consensys/gnark"
"github.com/consensys/gnark-crypto/ecc"
"github.com/consensys/gnark/std/gkrapi/v2/gkr"

bls12377 "github.com/consensys/gnark/internal/gkr/bls12-377"
bls12381 "github.com/consensys/gnark/internal/gkr/bls12-381"
Expand All @@ -18,8 +19,6 @@ import (
bw6633 "github.com/consensys/gnark/internal/gkr/bw6-633"
bw6761 "github.com/consensys/gnark/internal/gkr/bw6-761"
"github.com/consensys/gnark/internal/gkr/gkrtypes"

"github.com/consensys/gnark/std/gkrapi/gkr"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion constraint/solver/gkrgates/registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/consensys/gnark/frontend"
"github.com/consensys/gnark/internal/gkr/gkrtesting"
"github.com/consensys/gnark/internal/gkr/gkrtypes"
"github.com/consensys/gnark/std/gkrapi/gkr"
"github.com/consensys/gnark/std/gkrapi/v2/gkr"
"github.com/stretchr/testify/assert"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import (
"fmt"
"github.com/consensys/gnark-crypto/ecc"
"github.com/consensys/gnark/internal/gkr/gkrtypes"
"github.com/consensys/gnark/std/gkrapi/v2/gkr"

"github.com/consensys/gnark/std/gkrapi/gkr"
"{{.FieldPackagePath}}"
{{- if .CanUseFFT }}
"{{.FieldPackagePath}}/fft"
Expand Down
2 changes: 1 addition & 1 deletion internal/generator/backend/template/gkr/gkr.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"sync"
"github.com/consensys/gnark/frontend"
"github.com/consensys/gnark/internal/gkr/gkrtypes"
"github.com/consensys/gnark/std/gkrapi/gkr"
"github.com/consensys/gnark/std/gkrapi/v2/gkr"
)

// The goal is to prove/verify evaluations of many instances of the same circuit
Expand Down
2 changes: 1 addition & 1 deletion internal/generator/backend/template/gkr/gkr.test.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/consensys/gnark/internal/gkr/gkrtesting"
"github.com/consensys/gnark/internal/gkr/gkrtypes"
"github.com/consensys/gnark/internal/utils"
"github.com/consensys/gnark/std/gkrapi/gkr"
"github.com/consensys/gnark/std/gkrapi/v2/gkr"
"github.com/stretchr/testify/assert"
"fmt"
"hash"
Expand Down
2 changes: 1 addition & 1 deletion internal/gkr/bls12-377/gate_testing.go

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

2 changes: 1 addition & 1 deletion internal/gkr/bls12-377/gkr.go

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

2 changes: 1 addition & 1 deletion internal/gkr/bls12-377/gkr_test.go

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

2 changes: 1 addition & 1 deletion internal/gkr/bls12-381/gate_testing.go

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

2 changes: 1 addition & 1 deletion internal/gkr/bls12-381/gkr.go

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

2 changes: 1 addition & 1 deletion internal/gkr/bls12-381/gkr_test.go

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

2 changes: 1 addition & 1 deletion internal/gkr/bls24-315/gate_testing.go

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

2 changes: 1 addition & 1 deletion internal/gkr/bls24-315/gkr.go

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

2 changes: 1 addition & 1 deletion internal/gkr/bls24-315/gkr_test.go

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

2 changes: 1 addition & 1 deletion internal/gkr/bls24-317/gate_testing.go

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

2 changes: 1 addition & 1 deletion internal/gkr/bls24-317/gkr.go

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

2 changes: 1 addition & 1 deletion internal/gkr/bls24-317/gkr_test.go

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

2 changes: 1 addition & 1 deletion internal/gkr/bn254/gate_testing.go

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

2 changes: 1 addition & 1 deletion internal/gkr/bn254/gkr.go

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

2 changes: 1 addition & 1 deletion internal/gkr/bn254/gkr_test.go

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

2 changes: 1 addition & 1 deletion internal/gkr/bw6-633/gate_testing.go

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

2 changes: 1 addition & 1 deletion internal/gkr/bw6-633/gkr.go

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

2 changes: 1 addition & 1 deletion internal/gkr/bw6-633/gkr_test.go

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

2 changes: 1 addition & 1 deletion internal/gkr/bw6-761/gate_testing.go

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

2 changes: 1 addition & 1 deletion internal/gkr/bw6-761/gkr.go

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

2 changes: 1 addition & 1 deletion internal/gkr/bw6-761/gkr_test.go

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

13 changes: 0 additions & 13 deletions internal/gkr/gkrinfo/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ import (
)

type (
InputDependency struct {
OutputWire int
OutputInstance int
InputInstance int
}

Wire struct {
Gate string
Inputs []int
Expand All @@ -27,13 +21,6 @@ type (
SolveHintID solver.HintID
ProveHintID solver.HintID
}

Permutations struct {
SortedInstances []int
SortedWires []int
InstancesPermutation []int
WiresPermutation []int
}
)

func (w Wire) IsInput() bool {
Expand Down
2 changes: 1 addition & 1 deletion internal/gkr/gkrtesting/gkrtesting.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/consensys/gnark/frontend"
"github.com/consensys/gnark/internal/gkr/gkrinfo"
"github.com/consensys/gnark/internal/gkr/gkrtypes"
"github.com/consensys/gnark/std/gkrapi/gkr"
"github.com/consensys/gnark/std/gkrapi/v2/gkr"
)

// Cache for circuits and gates.
Expand Down
12 changes: 1 addition & 11 deletions internal/gkr/gkrtypes/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import (
"github.com/consensys/gnark-crypto/ecc"
"github.com/consensys/gnark/frontend"
"github.com/consensys/gnark/internal/gkr/gkrinfo"
"github.com/consensys/gnark/internal/utils"
"github.com/consensys/gnark/std/gkrapi/gkr"
"github.com/consensys/gnark/std/gkrapi/v2/gkr"
"github.com/consensys/gnark/std/polynomial"
)

Expand Down Expand Up @@ -253,15 +252,6 @@ func StoringToSolvingInfo(info gkrinfo.StoringInfo, gateGetter func(name gkr.Gat
// WireAssignment is assignment of values to the same wire across many instances of the circuit
type WireAssignment []polynomial.MultiLin

func (a WireAssignment) Permute(p gkrinfo.Permutations) {
utils.Permute(a, p.WiresPermutation)
for i := range a {
if a[i] != nil {
utils.Permute(a[i], p.InstancesPermutation)
}
}
}

func (a WireAssignment) NbInstances() int {
for _, aW := range a {
if aW != nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/gkr/small_rational/gate_testing.go

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

2 changes: 1 addition & 1 deletion internal/gkr/small_rational/gkr.go

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

Loading
Loading