Skip to content

Commit

Permalink
update go wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
siq1 committed Sep 9, 2024
1 parent 5dc8bf8 commit 8c890d2
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 10 deletions.
8 changes: 8 additions & 0 deletions api.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package ExpanderCompilerCollection

import "github.com/PolyhedraZK/ExpanderCompilerCollection/ecgo"

type API = ecgo.API
type CompileResult = ecgo.CompileResult

var Compile = ecgo.Compile
9 changes: 9 additions & 0 deletions builder/api.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package builder

import "github.com/PolyhedraZK/ExpanderCompilerCollection/ecgo/builder"

var MemorizedVoidFunc = builder.MemorizedVoidFunc
var Memorized0DFunc = builder.Memorized0DFunc
var Memorized1DFunc = builder.Memorized1DFunc
var Memorized2DFunc = builder.Memorized2DFunc
var Memorized3DFunc = builder.Memorized3DFunc
4 changes: 2 additions & 2 deletions ecgo/examples/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/PolyhedraZK/ExpanderCompilerCollection/examples
go 1.21.6

require (
github.com/PolyhedraZK/ExpanderCompilerCollection/ecgo v0.0.0
github.com/PolyhedraZK/ExpanderCompilerCollection v0.0.0
github.com/consensys/gnark v0.10.0
github.com/consensys/gnark-crypto v0.13.0
github.com/ethereum/go-ethereum v1.13.14
Expand All @@ -30,4 +30,4 @@ require (
rsc.io/tmplfunc v0.0.3 // indirect
)

replace github.com/PolyhedraZK/ExpanderCompilerCollection/ecgo v0.0.0 => ../
replace github.com/PolyhedraZK/ExpanderCompilerCollection v0.0.0 => ../../
5 changes: 5 additions & 0 deletions field/bn254/bn254.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package bn254

import "github.com/PolyhedraZK/ExpanderCompilerCollection/ecgo/field/bn254"

var ScalarField = bn254.ScalarField
1 change: 1 addition & 0 deletions field/field.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package field
5 changes: 5 additions & 0 deletions field/gf2/gf2.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package gf2

import "github.com/PolyhedraZK/ExpanderCompilerCollection/ecgo/field/gf2"

var ScalarField = gf2.ScalarField
5 changes: 5 additions & 0 deletions field/m31/m31.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package m31

import "github.com/PolyhedraZK/ExpanderCompilerCollection/ecgo/field/m31"

var ScalarField = m31.ScalarField
7 changes: 2 additions & 5 deletions ecgo/go.mod → go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/PolyhedraZK/ExpanderCompilerCollection/ecgo
module github.com/PolyhedraZK/ExpanderCompilerCollection

go 1.21.6

Expand All @@ -7,10 +7,7 @@ require (
github.com/consensys/gnark-crypto v0.13.0
)

require (
github.com/juju/fslock v0.0.0-20160525022230-4d5c94c67b4b
github.com/kr/text v0.2.0 // indirect
)
require github.com/kr/text v0.2.0 // indirect

require (
github.com/bits-and-blooms/bitset v1.13.0 // indirect
Expand Down
2 changes: 0 additions & 2 deletions ecgo/go.sum → go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ github.com/ingonyama-zk/icicle v0.0.0-20230928131117-97f0079e5c71 h1:YxI1RTPzpFJ
github.com/ingonyama-zk/icicle v0.0.0-20230928131117-97f0079e5c71/go.mod h1:kAK8/EoN7fUEmakzgZIYdWy1a2rBnpCaZLqSHwZWxEk=
github.com/ingonyama-zk/iciclegnark v0.1.0 h1:88MkEghzjQBMjrYRJFxZ9oR9CTIpB8NG2zLeCJSvXKQ=
github.com/ingonyama-zk/iciclegnark v0.1.0/go.mod h1:wz6+IpyHKs6UhMMoQpNqz1VY+ddfKqC/gRwR/64W6WU=
github.com/juju/fslock v0.0.0-20160525022230-4d5c94c67b4b h1:FQ7+9fxhyp82ks9vAuyPzG0/vVbWwMwLJ+P6yJI5FN8=
github.com/juju/fslock v0.0.0-20160525022230-4d5c94c67b4b/go.mod h1:HMcgvsgd0Fjj4XXDkbjdmlbI505rUPBs6WBMYg2pXks=
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
Expand Down
2 changes: 1 addition & 1 deletion ecgo/go.work → go.work
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ go 1.21.6

use (
.
./examples
./ecgo/examples
)
File renamed without changes.
5 changes: 5 additions & 0 deletions test/test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package test

import "github.com/PolyhedraZK/ExpanderCompilerCollection/ecgo/test"

var CheckCircuit = test.CheckCircuit

0 comments on commit 8c890d2

Please sign in to comment.