From f8d15e2613185441afee26cf2f235bf1dbf7fbce Mon Sep 17 00:00:00 2001 From: nonam3e <71525212+nonam3e@users.noreply.github.com> Date: Thu, 25 Apr 2024 03:46:14 +0700 Subject: [PATCH] update imports in golang bindings (#498) ## Describe the changes This PR updates imports in golang bindings to the v2 version --- docs/docs/icicle/golang-bindings.md | 4 ++-- docs/docs/icicle/golang-bindings/ecntt.md | 4 ++-- .../golang-bindings/msm-pre-computation.md | 12 +++++----- docs/docs/icicle/golang-bindings/msm.md | 14 ++++++------ docs/docs/icicle/golang-bindings/multi-gpu.md | 6 ++--- docs/docs/icicle/golang-bindings/ntt.md | 6 ++--- docs/docs/icicle/golang-bindings/vec-ops.md | 18 +++++++-------- wrappers/golang/README.md | 2 +- wrappers/golang/core/error.go | 2 +- wrappers/golang/core/msm.go | 2 +- wrappers/golang/core/msm_test.go | 4 ++-- wrappers/golang/core/ntt.go | 2 +- wrappers/golang/core/ntt_test.go | 4 ++-- wrappers/golang/core/slice.go | 2 +- wrappers/golang/core/slice_test.go | 2 +- wrappers/golang/core/vec_ops.go | 2 +- wrappers/golang/core/vec_ops_test.go | 2 +- wrappers/golang/curves/bls12377/curve.go | 4 ++-- .../golang/curves/bls12377/ecntt/ecntt.go | 4 ++-- wrappers/golang/curves/bls12377/g2/curve.go | 4 ++-- wrappers/golang/curves/bls12377/g2/msm.go | 5 +++-- wrappers/golang/curves/bls12377/msm/msm.go | 5 +++-- wrappers/golang/curves/bls12377/ntt/ntt.go | 10 ++++----- .../curves/bls12377/polynomial/polynomial.go | 4 ++-- .../golang/curves/bls12377/scalar_field.go | 5 +++-- .../curves/bls12377/tests/base_field_test.go | 7 +++--- .../curves/bls12377/tests/curve_test.go | 7 +++--- .../curves/bls12377/tests/ecntt_test.go | 8 +++---- .../curves/bls12377/tests/g2_curve_test.go | 7 +++--- .../bls12377/tests/g2_g2base_field_test.go | 7 +++--- .../curves/bls12377/tests/g2_msm_test.go | 10 ++++----- .../golang/curves/bls12377/tests/main_test.go | 8 +++---- .../golang/curves/bls12377/tests/msm_test.go | 10 ++++----- .../golang/curves/bls12377/tests/ntt_test.go | 10 ++++----- .../curves/bls12377/tests/polynomial_test.go | 11 +++++----- .../bls12377/tests/scalar_field_test.go | 9 ++++---- .../curves/bls12377/tests/vec_ops_test.go | 8 +++---- .../golang/curves/bls12377/vecOps/vec_ops.go | 4 ++-- wrappers/golang/curves/bls12381/curve.go | 4 ++-- .../golang/curves/bls12381/ecntt/ecntt.go | 4 ++-- wrappers/golang/curves/bls12381/g2/curve.go | 4 ++-- wrappers/golang/curves/bls12381/g2/msm.go | 5 +++-- wrappers/golang/curves/bls12381/msm/msm.go | 5 +++-- wrappers/golang/curves/bls12381/ntt/ntt.go | 10 ++++----- .../curves/bls12381/polynomial/polynomial.go | 4 ++-- .../golang/curves/bls12381/scalar_field.go | 5 +++-- .../curves/bls12381/tests/base_field_test.go | 7 +++--- .../curves/bls12381/tests/curve_test.go | 7 +++--- .../curves/bls12381/tests/ecntt_test.go | 8 +++---- .../curves/bls12381/tests/g2_curve_test.go | 7 +++--- .../bls12381/tests/g2_g2base_field_test.go | 7 +++--- .../curves/bls12381/tests/g2_msm_test.go | 10 ++++----- .../golang/curves/bls12381/tests/main_test.go | 8 +++---- .../golang/curves/bls12381/tests/msm_test.go | 10 ++++----- .../golang/curves/bls12381/tests/ntt_test.go | 10 ++++----- .../curves/bls12381/tests/polynomial_test.go | 11 +++++----- .../bls12381/tests/scalar_field_test.go | 9 ++++---- .../curves/bls12381/tests/vec_ops_test.go | 8 +++---- .../golang/curves/bls12381/vecOps/vec_ops.go | 4 ++-- wrappers/golang/curves/bn254/curve.go | 4 ++-- wrappers/golang/curves/bn254/ecntt/ecntt.go | 4 ++-- wrappers/golang/curves/bn254/g2/curve.go | 4 ++-- wrappers/golang/curves/bn254/g2/msm.go | 5 +++-- wrappers/golang/curves/bn254/msm/msm.go | 5 +++-- wrappers/golang/curves/bn254/ntt/ntt.go | 10 ++++----- .../curves/bn254/polynomial/polynomial.go | 4 ++-- wrappers/golang/curves/bn254/scalar_field.go | 5 +++-- .../curves/bn254/tests/base_field_test.go | 7 +++--- .../golang/curves/bn254/tests/curve_test.go | 7 +++--- .../golang/curves/bn254/tests/ecntt_test.go | 8 +++---- .../curves/bn254/tests/g2_curve_test.go | 7 +++--- .../bn254/tests/g2_g2base_field_test.go | 7 +++--- .../golang/curves/bn254/tests/g2_msm_test.go | 8 +++---- .../golang/curves/bn254/tests/main_test.go | 8 +++---- .../golang/curves/bn254/tests/msm_test.go | 8 +++---- .../golang/curves/bn254/tests/ntt_test.go | 10 ++++----- .../curves/bn254/tests/polynomial_test.go | 11 +++++----- .../curves/bn254/tests/scalar_field_test.go | 9 ++++---- .../golang/curves/bn254/tests/vec_ops_test.go | 8 +++---- .../golang/curves/bn254/vecOps/vec_ops.go | 4 ++-- wrappers/golang/curves/bw6761/curve.go | 4 ++-- wrappers/golang/curves/bw6761/ecntt/ecntt.go | 4 ++-- wrappers/golang/curves/bw6761/g2/curve.go | 4 ++-- wrappers/golang/curves/bw6761/g2/msm.go | 5 +++-- wrappers/golang/curves/bw6761/msm/msm.go | 5 +++-- wrappers/golang/curves/bw6761/ntt/ntt.go | 10 ++++----- .../curves/bw6761/polynomial/polynomial.go | 4 ++-- wrappers/golang/curves/bw6761/scalar_field.go | 5 +++-- .../curves/bw6761/tests/base_field_test.go | 7 +++--- .../golang/curves/bw6761/tests/curve_test.go | 7 +++--- .../golang/curves/bw6761/tests/ecntt_test.go | 8 +++---- .../curves/bw6761/tests/g2_curve_test.go | 7 +++--- .../bw6761/tests/g2_g2base_field_test.go | 7 +++--- .../golang/curves/bw6761/tests/g2_msm_test.go | 10 ++++----- .../golang/curves/bw6761/tests/main_test.go | 8 +++---- .../golang/curves/bw6761/tests/msm_test.go | 10 ++++----- .../golang/curves/bw6761/tests/ntt_test.go | 10 ++++----- .../curves/bw6761/tests/polynomial_test.go | 11 +++++----- .../curves/bw6761/tests/scalar_field_test.go | 9 ++++---- .../curves/bw6761/tests/vec_ops_test.go | 8 +++---- .../golang/curves/bw6761/vecOps/vec_ops.go | 4 ++-- wrappers/golang/curves/grumpkin/curve.go | 4 ++-- wrappers/golang/curves/grumpkin/msm/msm.go | 5 +++-- .../golang/curves/grumpkin/scalar_field.go | 5 +++-- .../curves/grumpkin/tests/base_field_test.go | 7 +++--- .../curves/grumpkin/tests/curve_test.go | 7 +++--- .../golang/curves/grumpkin/tests/msm_test.go | 8 +++---- .../grumpkin/tests/scalar_field_test.go | 9 ++++---- .../curves/grumpkin/tests/vec_ops_test.go | 8 +++---- .../golang/curves/grumpkin/vecOps/vec_ops.go | 4 ++-- .../babybear/extension/extension_field.go | 5 +++-- .../fields/babybear/extension/ntt/ntt.go | 4 ++-- .../babybear/extension/vecOps/vec_ops.go | 4 ++-- wrappers/golang/fields/babybear/ntt/ntt.go | 10 ++++----- .../fields/babybear/polynomial/polynomial.go | 4 ++-- .../golang/fields/babybear/scalar_field.go | 5 +++-- .../babybear/tests/extension_field_test.go | 9 ++++---- .../babybear/tests/extension_vec_ops_test.go | 8 +++---- .../golang/fields/babybear/tests/main_test.go | 8 +++---- .../babybear/tests/ntt_no_domain_test.go | 8 +++---- .../golang/fields/babybear/tests/ntt_test.go | 10 ++++----- .../fields/babybear/tests/polynomial_test.go | 11 +++++----- .../babybear/tests/scalar_field_test.go | 9 ++++---- .../fields/babybear/tests/vec_ops_test.go | 8 +++---- .../golang/fields/babybear/vecOps/vec_ops.go | 4 ++-- .../internal/generator/curves/generate.go | 2 +- .../generator/curves/templates/curve.go.tmpl | 4 ++-- .../curves/templates/curve_test.go.tmpl | 4 ++-- .../internal/generator/ecntt/generate.go | 2 +- .../generator/ecntt/templates/ecntt.go.tmpl | 4 ++-- .../ecntt/templates/ecntt_test.go.tmpl | 8 +++---- .../internal/generator/fields/generate.go | 3 ++- .../generator/fields/templates/field.go.tmpl | 4 ++-- .../fields/templates/field_test.go.tmpl | 6 ++--- .../internal/generator/lib_linker/generate.go | 3 ++- wrappers/golang/internal/generator/main.go | 22 +++++++++---------- .../internal/generator/mock/generate.go | 3 ++- .../golang/internal/generator/msm/generate.go | 2 +- .../generator/msm/templates/msm.go.tmpl | 4 ++-- .../generator/msm/templates/msm_test.go.tmpl | 8 +++---- .../golang/internal/generator/ntt/generate.go | 2 +- .../generator/ntt/templates/ntt.go.tmpl | 6 ++--- .../ntt/templates/ntt_no_domain_test.go.tmpl | 8 +++---- .../generator/ntt/templates/ntt_test.go.tmpl | 10 ++++----- .../internal/generator/polynomial/generate.go | 2 +- .../polynomial/templates/polynomial.go.tmpl | 4 ++-- .../templates/polynomial_test.go.tmpl | 10 ++++----- .../internal/generator/tests/generate.go | 2 +- .../tests/templates/main_test.go.tmpl | 8 +++---- .../internal/generator/vecOps/generate.go | 2 +- .../vecOps/templates/vec_ops.go.tmpl | 4 ++-- .../vecOps/templates/vec_ops_test.go.tmpl | 8 +++---- 152 files changed, 510 insertions(+), 471 deletions(-) diff --git a/docs/docs/icicle/golang-bindings.md b/docs/docs/icicle/golang-bindings.md index b688ac42b..466422042 100644 --- a/docs/docs/icicle/golang-bindings.md +++ b/docs/docs/icicle/golang-bindings.md @@ -62,8 +62,8 @@ import ( "github.com/stretchr/testify/assert" "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) ... ``` diff --git a/docs/docs/icicle/golang-bindings/ecntt.md b/docs/docs/icicle/golang-bindings/ecntt.md index 78c10f32d..d967da6de 100644 --- a/docs/docs/icicle/golang-bindings/ecntt.md +++ b/docs/docs/icicle/golang-bindings/ecntt.md @@ -68,8 +68,8 @@ func GetDefaultNTTConfig[T any](cosetGen T) NTTConfig[T] package main import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) func Main() { diff --git a/docs/docs/icicle/golang-bindings/msm-pre-computation.md b/docs/docs/icicle/golang-bindings/msm-pre-computation.md index 1fcb6e1c3..e82d78bfa 100644 --- a/docs/docs/icicle/golang-bindings/msm-pre-computation.md +++ b/docs/docs/icicle/golang-bindings/msm-pre-computation.md @@ -42,9 +42,9 @@ package main import ( "log" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - bn254 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + bn254 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254" ) func main() { @@ -85,9 +85,9 @@ package main import ( "log" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - g2 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254/g2" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + g2 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254/g2" ) func main() { diff --git a/docs/docs/icicle/golang-bindings/msm.md b/docs/docs/icicle/golang-bindings/msm.md index b9e456788..5a1a5956d 100644 --- a/docs/docs/icicle/golang-bindings/msm.md +++ b/docs/docs/icicle/golang-bindings/msm.md @@ -11,9 +11,9 @@ package main import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - bn254 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + bn254 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254" ) func main() { @@ -167,7 +167,7 @@ Now you may import `g2` package of the specified curve. ```go import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls254/g2" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls254/g2" ) ``` @@ -177,9 +177,9 @@ This package include `G2Projective` and `G2Affine` points as well as a `G2Msm` m package main import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - bn254 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254" - g2 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254/g2" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + bn254 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254" + g2 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254/g2" ) func main() { diff --git a/docs/docs/icicle/golang-bindings/multi-gpu.md b/docs/docs/icicle/golang-bindings/multi-gpu.md index 02943c374..408950e4b 100644 --- a/docs/docs/icicle/golang-bindings/multi-gpu.md +++ b/docs/docs/icicle/golang-bindings/multi-gpu.md @@ -21,9 +21,9 @@ import ( "fmt" "sync" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - bn254 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + bn254 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254" ) func main() { diff --git a/docs/docs/icicle/golang-bindings/ntt.md b/docs/docs/icicle/golang-bindings/ntt.md index ace88b831..2f345cafa 100644 --- a/docs/docs/icicle/golang-bindings/ntt.md +++ b/docs/docs/icicle/golang-bindings/ntt.md @@ -10,9 +10,9 @@ package main import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - bn254 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + bn254 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254" "github.com/consensys/gnark-crypto/ecc/bn254/fr/fft" ) diff --git a/docs/docs/icicle/golang-bindings/vec-ops.md b/docs/docs/icicle/golang-bindings/vec-ops.md index 4feaff2e9..80bd64561 100644 --- a/docs/docs/icicle/golang-bindings/vec-ops.md +++ b/docs/docs/icicle/golang-bindings/vec-ops.md @@ -15,9 +15,9 @@ Icicle is exposing a number of vector operations which a user can control: package main import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - bn254 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + bn254 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254" ) func main() { @@ -41,9 +41,9 @@ func main() { package main import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - bn254 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + bn254 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254" ) func main() { @@ -67,9 +67,9 @@ func main() { package main import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - bn254 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + bn254 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254" ) func main() { diff --git a/wrappers/golang/README.md b/wrappers/golang/README.md index 46d486f4a..28613c59d 100644 --- a/wrappers/golang/README.md +++ b/wrappers/golang/README.md @@ -91,7 +91,7 @@ This is normally fixed by exporting the path to the shared library location in t ### cuda_runtime.h: No such file or directory ``` -# github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12381 +# github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12381 In file included from wrappers/golang/curves/bls12381/curve.go:5: wrappers/golang/curves/bls12381/include/curve.h:1:10: fatal error: cuda_runtime.h: No such file or directory 1 | #include diff --git a/wrappers/golang/core/error.go b/wrappers/golang/core/error.go index ffea9c43f..8c682b61c 100644 --- a/wrappers/golang/core/error.go +++ b/wrappers/golang/core/error.go @@ -1,7 +1,7 @@ package core import ( - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) type IcicleErrorCode int diff --git a/wrappers/golang/core/msm.go b/wrappers/golang/core/msm.go index f55f74082..eab8b42f0 100644 --- a/wrappers/golang/core/msm.go +++ b/wrappers/golang/core/msm.go @@ -4,7 +4,7 @@ import ( "fmt" "unsafe" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) type MSMConfig struct { diff --git a/wrappers/golang/core/msm_test.go b/wrappers/golang/core/msm_test.go index cc85ba92e..ca93bed1f 100644 --- a/wrappers/golang/core/msm_test.go +++ b/wrappers/golang/core/msm_test.go @@ -3,8 +3,8 @@ package core import ( "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core/internal" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core/internal" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" "github.com/stretchr/testify/assert" ) diff --git a/wrappers/golang/core/ntt.go b/wrappers/golang/core/ntt.go index 586774fed..0f980706c 100644 --- a/wrappers/golang/core/ntt.go +++ b/wrappers/golang/core/ntt.go @@ -4,7 +4,7 @@ import ( "fmt" "unsafe" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) type NTTDir int8 diff --git a/wrappers/golang/core/ntt_test.go b/wrappers/golang/core/ntt_test.go index b9866e450..e20a7eff1 100644 --- a/wrappers/golang/core/ntt_test.go +++ b/wrappers/golang/core/ntt_test.go @@ -3,8 +3,8 @@ package core import ( "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core/internal" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core/internal" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" "github.com/stretchr/testify/assert" ) diff --git a/wrappers/golang/core/slice.go b/wrappers/golang/core/slice.go index bcf3ace6e..2e4459576 100644 --- a/wrappers/golang/core/slice.go +++ b/wrappers/golang/core/slice.go @@ -3,7 +3,7 @@ package core import ( "unsafe" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) type HostOrDeviceSlice interface { diff --git a/wrappers/golang/core/slice_test.go b/wrappers/golang/core/slice_test.go index 46642ceef..210dd0af3 100644 --- a/wrappers/golang/core/slice_test.go +++ b/wrappers/golang/core/slice_test.go @@ -5,7 +5,7 @@ import ( "testing" "unsafe" - "github.com/ingonyama-zk/icicle/wrappers/golang/core/internal" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core/internal" "github.com/stretchr/testify/assert" ) diff --git a/wrappers/golang/core/vec_ops.go b/wrappers/golang/core/vec_ops.go index adae9756b..9ea4681ed 100644 --- a/wrappers/golang/core/vec_ops.go +++ b/wrappers/golang/core/vec_ops.go @@ -4,7 +4,7 @@ import ( "fmt" "unsafe" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) type VecOps int diff --git a/wrappers/golang/core/vec_ops_test.go b/wrappers/golang/core/vec_ops_test.go index 7c608dd4f..778e6e7a5 100644 --- a/wrappers/golang/core/vec_ops_test.go +++ b/wrappers/golang/core/vec_ops_test.go @@ -3,7 +3,7 @@ package core import ( "testing" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" "github.com/stretchr/testify/assert" ) diff --git a/wrappers/golang/curves/bls12377/curve.go b/wrappers/golang/curves/bls12377/curve.go index ec1290446..e21dd5808 100644 --- a/wrappers/golang/curves/bls12377/curve.go +++ b/wrappers/golang/curves/bls12377/curve.go @@ -7,8 +7,8 @@ import "C" import ( "unsafe" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) type Projective struct { diff --git a/wrappers/golang/curves/bls12377/ecntt/ecntt.go b/wrappers/golang/curves/bls12377/ecntt/ecntt.go index aea8f5baf..0fe75abdf 100644 --- a/wrappers/golang/curves/bls12377/ecntt/ecntt.go +++ b/wrappers/golang/curves/bls12377/ecntt/ecntt.go @@ -5,8 +5,8 @@ package ecntt import "C" import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) func ECNtt[T any](points core.HostOrDeviceSlice, dir core.NTTDir, cfg *core.NTTConfig[T], results core.HostOrDeviceSlice) core.IcicleError { diff --git a/wrappers/golang/curves/bls12377/g2/curve.go b/wrappers/golang/curves/bls12377/g2/curve.go index 8dd9ce5e2..50ac2a110 100644 --- a/wrappers/golang/curves/bls12377/g2/curve.go +++ b/wrappers/golang/curves/bls12377/g2/curve.go @@ -7,8 +7,8 @@ import "C" import ( "unsafe" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) type G2Projective struct { diff --git a/wrappers/golang/curves/bls12377/g2/msm.go b/wrappers/golang/curves/bls12377/g2/msm.go index 66ef66b60..aaf40874b 100644 --- a/wrappers/golang/curves/bls12377/g2/msm.go +++ b/wrappers/golang/curves/bls12377/g2/msm.go @@ -5,9 +5,10 @@ package g2 import "C" import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" "unsafe" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) func G2GetDefaultMSMConfig() core.MSMConfig { diff --git a/wrappers/golang/curves/bls12377/msm/msm.go b/wrappers/golang/curves/bls12377/msm/msm.go index a56bdd76d..f3f47a5c2 100644 --- a/wrappers/golang/curves/bls12377/msm/msm.go +++ b/wrappers/golang/curves/bls12377/msm/msm.go @@ -5,9 +5,10 @@ package msm import "C" import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" "unsafe" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) func GetDefaultMSMConfig() core.MSMConfig { diff --git a/wrappers/golang/curves/bls12377/ntt/ntt.go b/wrappers/golang/curves/bls12377/ntt/ntt.go index bcb104b6c..01a1dbb56 100644 --- a/wrappers/golang/curves/bls12377/ntt/ntt.go +++ b/wrappers/golang/curves/bls12377/ntt/ntt.go @@ -4,14 +4,12 @@ package ntt // #include "ntt.h" import "C" -import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - bls12_377 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12377" -) - import ( "unsafe" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + bls12_377 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12377" ) func Ntt[T any](scalars core.HostOrDeviceSlice, dir core.NTTDir, cfg *core.NTTConfig[T], results core.HostOrDeviceSlice) core.IcicleError { diff --git a/wrappers/golang/curves/bls12377/polynomial/polynomial.go b/wrappers/golang/curves/bls12377/polynomial/polynomial.go index 417f86d50..2f3998a8e 100644 --- a/wrappers/golang/curves/bls12377/polynomial/polynomial.go +++ b/wrappers/golang/curves/bls12377/polynomial/polynomial.go @@ -7,8 +7,8 @@ import "C" import ( "unsafe" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - bls12_377 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12377" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + bls12_377 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12377" ) type PolynomialHandle = C.struct_PolynomialInst diff --git a/wrappers/golang/curves/bls12377/scalar_field.go b/wrappers/golang/curves/bls12377/scalar_field.go index d7126220c..3f73fbd06 100644 --- a/wrappers/golang/curves/bls12377/scalar_field.go +++ b/wrappers/golang/curves/bls12377/scalar_field.go @@ -6,9 +6,10 @@ import "C" import ( "encoding/binary" "fmt" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" "unsafe" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) const ( diff --git a/wrappers/golang/curves/bls12377/tests/base_field_test.go b/wrappers/golang/curves/bls12377/tests/base_field_test.go index 8fd37dc8a..e3ebd46e9 100644 --- a/wrappers/golang/curves/bls12377/tests/base_field_test.go +++ b/wrappers/golang/curves/bls12377/tests/base_field_test.go @@ -1,10 +1,11 @@ package tests import ( - bls12_377 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12377" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" - "github.com/stretchr/testify/assert" "testing" + + bls12_377 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12377" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" + "github.com/stretchr/testify/assert" ) const ( diff --git a/wrappers/golang/curves/bls12377/tests/curve_test.go b/wrappers/golang/curves/bls12377/tests/curve_test.go index 2c918622f..5692c3aea 100644 --- a/wrappers/golang/curves/bls12377/tests/curve_test.go +++ b/wrappers/golang/curves/bls12377/tests/curve_test.go @@ -1,10 +1,11 @@ package tests import ( - bls12_377 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12377" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" - "github.com/stretchr/testify/assert" "testing" + + bls12_377 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12377" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" + "github.com/stretchr/testify/assert" ) func TestAffineZero(t *testing.T) { diff --git a/wrappers/golang/curves/bls12377/tests/ecntt_test.go b/wrappers/golang/curves/bls12377/tests/ecntt_test.go index 9c435f0ed..696f6d43b 100644 --- a/wrappers/golang/curves/bls12377/tests/ecntt_test.go +++ b/wrappers/golang/curves/bls12377/tests/ecntt_test.go @@ -3,10 +3,10 @@ package tests import ( "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - bls12_377 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12377" - ecntt "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12377/ecntt" - ntt "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12377/ntt" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + bls12_377 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12377" + ecntt "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12377/ecntt" + ntt "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12377/ntt" "github.com/stretchr/testify/assert" ) diff --git a/wrappers/golang/curves/bls12377/tests/g2_curve_test.go b/wrappers/golang/curves/bls12377/tests/g2_curve_test.go index a7691d2bd..cd997198c 100644 --- a/wrappers/golang/curves/bls12377/tests/g2_curve_test.go +++ b/wrappers/golang/curves/bls12377/tests/g2_curve_test.go @@ -1,10 +1,11 @@ package tests import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12377/g2" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" - "github.com/stretchr/testify/assert" "testing" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12377/g2" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" + "github.com/stretchr/testify/assert" ) func TestG2AffineZero(t *testing.T) { diff --git a/wrappers/golang/curves/bls12377/tests/g2_g2base_field_test.go b/wrappers/golang/curves/bls12377/tests/g2_g2base_field_test.go index 83c7d8ce0..6e623d134 100644 --- a/wrappers/golang/curves/bls12377/tests/g2_g2base_field_test.go +++ b/wrappers/golang/curves/bls12377/tests/g2_g2base_field_test.go @@ -1,10 +1,11 @@ package tests import ( - bls12_377 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12377/g2" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" - "github.com/stretchr/testify/assert" "testing" + + bls12_377 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12377/g2" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" + "github.com/stretchr/testify/assert" ) const ( diff --git a/wrappers/golang/curves/bls12377/tests/g2_msm_test.go b/wrappers/golang/curves/bls12377/tests/g2_msm_test.go index 2ccd5008b..cbe5b1d0f 100644 --- a/wrappers/golang/curves/bls12377/tests/g2_msm_test.go +++ b/wrappers/golang/curves/bls12377/tests/g2_msm_test.go @@ -8,14 +8,14 @@ import ( "github.com/stretchr/testify/assert" "github.com/consensys/gnark-crypto/ecc" - "github.com/consensys/gnark-crypto/ecc/bls12-377" + bls12377 "github.com/consensys/gnark-crypto/ecc/bls12-377" "github.com/consensys/gnark-crypto/ecc/bls12-377/fp" "github.com/consensys/gnark-crypto/ecc/bls12-377/fr" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - icicleBls12_377 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12377" - "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12377/g2" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + icicleBls12_377 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12377" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12377/g2" ) func projectiveToGnarkAffineG2(p g2.G2Projective) bls12377.G2Affine { diff --git a/wrappers/golang/curves/bls12377/tests/main_test.go b/wrappers/golang/curves/bls12377/tests/main_test.go index 5a8d90913..928e6c3fa 100644 --- a/wrappers/golang/curves/bls12377/tests/main_test.go +++ b/wrappers/golang/curves/bls12377/tests/main_test.go @@ -4,10 +4,10 @@ import ( "os" "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - bls12_377 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12377" - ntt "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12377/ntt" - poly "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12377/polynomial" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + bls12_377 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12377" + ntt "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12377/ntt" + poly "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12377/polynomial" "github.com/consensys/gnark-crypto/ecc/bls12-377/fr/fft" ) diff --git a/wrappers/golang/curves/bls12377/tests/msm_test.go b/wrappers/golang/curves/bls12377/tests/msm_test.go index b3237db7f..0d1d711b6 100644 --- a/wrappers/golang/curves/bls12377/tests/msm_test.go +++ b/wrappers/golang/curves/bls12377/tests/msm_test.go @@ -8,14 +8,14 @@ import ( "github.com/stretchr/testify/assert" "github.com/consensys/gnark-crypto/ecc" - "github.com/consensys/gnark-crypto/ecc/bls12-377" + bls12377 "github.com/consensys/gnark-crypto/ecc/bls12-377" "github.com/consensys/gnark-crypto/ecc/bls12-377/fp" "github.com/consensys/gnark-crypto/ecc/bls12-377/fr" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - icicleBls12_377 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12377" - "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12377/msm" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + icicleBls12_377 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12377" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12377/msm" ) func projectiveToGnarkAffine(p icicleBls12_377.Projective) bls12377.G1Affine { diff --git a/wrappers/golang/curves/bls12377/tests/ntt_test.go b/wrappers/golang/curves/bls12377/tests/ntt_test.go index 5bdb50133..ab6816825 100644 --- a/wrappers/golang/curves/bls12377/tests/ntt_test.go +++ b/wrappers/golang/curves/bls12377/tests/ntt_test.go @@ -6,11 +6,11 @@ import ( "github.com/consensys/gnark-crypto/ecc/bls12-377/fr" "github.com/consensys/gnark-crypto/ecc/bls12-377/fr/fft" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - bls12_377 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12377" - ntt "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12377/ntt" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + bls12_377 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12377" + ntt "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12377/ntt" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" "github.com/stretchr/testify/assert" ) diff --git a/wrappers/golang/curves/bls12377/tests/polynomial_test.go b/wrappers/golang/curves/bls12377/tests/polynomial_test.go index 82164cfae..ea5c52aad 100644 --- a/wrappers/golang/curves/bls12377/tests/polynomial_test.go +++ b/wrappers/golang/curves/bls12377/tests/polynomial_test.go @@ -3,11 +3,12 @@ package tests import ( "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - bls12_377 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12377" - // "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12377/ntt" - "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12377/polynomial" - "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12377/vecOps" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + bls12_377 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12377" + + // "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12377/ntt" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12377/polynomial" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12377/vecOps" "github.com/stretchr/testify/assert" ) diff --git a/wrappers/golang/curves/bls12377/tests/scalar_field_test.go b/wrappers/golang/curves/bls12377/tests/scalar_field_test.go index 208df7e59..29f067029 100644 --- a/wrappers/golang/curves/bls12377/tests/scalar_field_test.go +++ b/wrappers/golang/curves/bls12377/tests/scalar_field_test.go @@ -1,11 +1,12 @@ package tests import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - bls12_377 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12377" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" - "github.com/stretchr/testify/assert" "testing" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + bls12_377 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12377" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" + "github.com/stretchr/testify/assert" ) const ( diff --git a/wrappers/golang/curves/bls12377/tests/vec_ops_test.go b/wrappers/golang/curves/bls12377/tests/vec_ops_test.go index a7c82174e..c9e67e25f 100644 --- a/wrappers/golang/curves/bls12377/tests/vec_ops_test.go +++ b/wrappers/golang/curves/bls12377/tests/vec_ops_test.go @@ -3,10 +3,10 @@ package tests import ( "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - bls12_377 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12377" - "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12377/vecOps" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + bls12_377 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12377" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12377/vecOps" "github.com/stretchr/testify/assert" ) diff --git a/wrappers/golang/curves/bls12377/vecOps/vec_ops.go b/wrappers/golang/curves/bls12377/vecOps/vec_ops.go index 5e41c4f2d..d883828f7 100644 --- a/wrappers/golang/curves/bls12377/vecOps/vec_ops.go +++ b/wrappers/golang/curves/bls12377/vecOps/vec_ops.go @@ -5,8 +5,8 @@ package vecOps import "C" import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" "unsafe" ) diff --git a/wrappers/golang/curves/bls12381/curve.go b/wrappers/golang/curves/bls12381/curve.go index 0b946c25c..d376c5c21 100644 --- a/wrappers/golang/curves/bls12381/curve.go +++ b/wrappers/golang/curves/bls12381/curve.go @@ -7,8 +7,8 @@ import "C" import ( "unsafe" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) type Projective struct { diff --git a/wrappers/golang/curves/bls12381/ecntt/ecntt.go b/wrappers/golang/curves/bls12381/ecntt/ecntt.go index 9b9ebf44e..943ef8146 100644 --- a/wrappers/golang/curves/bls12381/ecntt/ecntt.go +++ b/wrappers/golang/curves/bls12381/ecntt/ecntt.go @@ -5,8 +5,8 @@ package ecntt import "C" import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) func ECNtt[T any](points core.HostOrDeviceSlice, dir core.NTTDir, cfg *core.NTTConfig[T], results core.HostOrDeviceSlice) core.IcicleError { diff --git a/wrappers/golang/curves/bls12381/g2/curve.go b/wrappers/golang/curves/bls12381/g2/curve.go index 92bd25378..2b8caa002 100644 --- a/wrappers/golang/curves/bls12381/g2/curve.go +++ b/wrappers/golang/curves/bls12381/g2/curve.go @@ -7,8 +7,8 @@ import "C" import ( "unsafe" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) type G2Projective struct { diff --git a/wrappers/golang/curves/bls12381/g2/msm.go b/wrappers/golang/curves/bls12381/g2/msm.go index 2f459f822..3e4a0ca47 100644 --- a/wrappers/golang/curves/bls12381/g2/msm.go +++ b/wrappers/golang/curves/bls12381/g2/msm.go @@ -5,9 +5,10 @@ package g2 import "C" import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" "unsafe" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) func G2GetDefaultMSMConfig() core.MSMConfig { diff --git a/wrappers/golang/curves/bls12381/msm/msm.go b/wrappers/golang/curves/bls12381/msm/msm.go index c205e795a..8706f0945 100644 --- a/wrappers/golang/curves/bls12381/msm/msm.go +++ b/wrappers/golang/curves/bls12381/msm/msm.go @@ -5,9 +5,10 @@ package msm import "C" import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" "unsafe" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) func GetDefaultMSMConfig() core.MSMConfig { diff --git a/wrappers/golang/curves/bls12381/ntt/ntt.go b/wrappers/golang/curves/bls12381/ntt/ntt.go index 201737dc0..29e3a5d20 100644 --- a/wrappers/golang/curves/bls12381/ntt/ntt.go +++ b/wrappers/golang/curves/bls12381/ntt/ntt.go @@ -4,14 +4,12 @@ package ntt // #include "ntt.h" import "C" -import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - bls12_381 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12381" -) - import ( "unsafe" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + bls12_381 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12381" ) func Ntt[T any](scalars core.HostOrDeviceSlice, dir core.NTTDir, cfg *core.NTTConfig[T], results core.HostOrDeviceSlice) core.IcicleError { diff --git a/wrappers/golang/curves/bls12381/polynomial/polynomial.go b/wrappers/golang/curves/bls12381/polynomial/polynomial.go index 3add5d0b8..016c9ab18 100644 --- a/wrappers/golang/curves/bls12381/polynomial/polynomial.go +++ b/wrappers/golang/curves/bls12381/polynomial/polynomial.go @@ -7,8 +7,8 @@ import "C" import ( "unsafe" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - bls12_381 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12381" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + bls12_381 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12381" ) type PolynomialHandle = C.struct_PolynomialInst diff --git a/wrappers/golang/curves/bls12381/scalar_field.go b/wrappers/golang/curves/bls12381/scalar_field.go index 6f6bec633..34bd51182 100644 --- a/wrappers/golang/curves/bls12381/scalar_field.go +++ b/wrappers/golang/curves/bls12381/scalar_field.go @@ -6,9 +6,10 @@ import "C" import ( "encoding/binary" "fmt" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" "unsafe" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) const ( diff --git a/wrappers/golang/curves/bls12381/tests/base_field_test.go b/wrappers/golang/curves/bls12381/tests/base_field_test.go index 9e263e292..3ef46f217 100644 --- a/wrappers/golang/curves/bls12381/tests/base_field_test.go +++ b/wrappers/golang/curves/bls12381/tests/base_field_test.go @@ -1,10 +1,11 @@ package tests import ( - bls12_381 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12381" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" - "github.com/stretchr/testify/assert" "testing" + + bls12_381 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12381" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" + "github.com/stretchr/testify/assert" ) const ( diff --git a/wrappers/golang/curves/bls12381/tests/curve_test.go b/wrappers/golang/curves/bls12381/tests/curve_test.go index be35807d5..38ee8b8f7 100644 --- a/wrappers/golang/curves/bls12381/tests/curve_test.go +++ b/wrappers/golang/curves/bls12381/tests/curve_test.go @@ -1,10 +1,11 @@ package tests import ( - bls12_381 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12381" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" - "github.com/stretchr/testify/assert" "testing" + + bls12_381 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12381" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" + "github.com/stretchr/testify/assert" ) func TestAffineZero(t *testing.T) { diff --git a/wrappers/golang/curves/bls12381/tests/ecntt_test.go b/wrappers/golang/curves/bls12381/tests/ecntt_test.go index 6180b5bd9..24837aabc 100644 --- a/wrappers/golang/curves/bls12381/tests/ecntt_test.go +++ b/wrappers/golang/curves/bls12381/tests/ecntt_test.go @@ -3,10 +3,10 @@ package tests import ( "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - bls12_381 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12381" - ecntt "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12381/ecntt" - ntt "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12381/ntt" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + bls12_381 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12381" + ecntt "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12381/ecntt" + ntt "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12381/ntt" "github.com/stretchr/testify/assert" ) diff --git a/wrappers/golang/curves/bls12381/tests/g2_curve_test.go b/wrappers/golang/curves/bls12381/tests/g2_curve_test.go index a3d5586a6..504c16be7 100644 --- a/wrappers/golang/curves/bls12381/tests/g2_curve_test.go +++ b/wrappers/golang/curves/bls12381/tests/g2_curve_test.go @@ -1,10 +1,11 @@ package tests import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12381/g2" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" - "github.com/stretchr/testify/assert" "testing" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12381/g2" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" + "github.com/stretchr/testify/assert" ) func TestG2AffineZero(t *testing.T) { diff --git a/wrappers/golang/curves/bls12381/tests/g2_g2base_field_test.go b/wrappers/golang/curves/bls12381/tests/g2_g2base_field_test.go index 78267c7a4..8c00d5d02 100644 --- a/wrappers/golang/curves/bls12381/tests/g2_g2base_field_test.go +++ b/wrappers/golang/curves/bls12381/tests/g2_g2base_field_test.go @@ -1,10 +1,11 @@ package tests import ( - bls12_381 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12381/g2" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" - "github.com/stretchr/testify/assert" "testing" + + bls12_381 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12381/g2" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" + "github.com/stretchr/testify/assert" ) const ( diff --git a/wrappers/golang/curves/bls12381/tests/g2_msm_test.go b/wrappers/golang/curves/bls12381/tests/g2_msm_test.go index f80016750..2d99a0bbe 100644 --- a/wrappers/golang/curves/bls12381/tests/g2_msm_test.go +++ b/wrappers/golang/curves/bls12381/tests/g2_msm_test.go @@ -8,14 +8,14 @@ import ( "github.com/stretchr/testify/assert" "github.com/consensys/gnark-crypto/ecc" - "github.com/consensys/gnark-crypto/ecc/bls12-381" + bls12381 "github.com/consensys/gnark-crypto/ecc/bls12-381" "github.com/consensys/gnark-crypto/ecc/bls12-381/fp" "github.com/consensys/gnark-crypto/ecc/bls12-381/fr" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - icicleBls12_381 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12381" - "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12381/g2" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + icicleBls12_381 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12381" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12381/g2" ) func projectiveToGnarkAffineG2(p g2.G2Projective) bls12381.G2Affine { diff --git a/wrappers/golang/curves/bls12381/tests/main_test.go b/wrappers/golang/curves/bls12381/tests/main_test.go index 288f7374c..31077b7bb 100644 --- a/wrappers/golang/curves/bls12381/tests/main_test.go +++ b/wrappers/golang/curves/bls12381/tests/main_test.go @@ -4,10 +4,10 @@ import ( "os" "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - bls12_381 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12381" - ntt "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12381/ntt" - poly "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12381/polynomial" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + bls12_381 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12381" + ntt "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12381/ntt" + poly "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12381/polynomial" "github.com/consensys/gnark-crypto/ecc/bls12-381/fr/fft" ) diff --git a/wrappers/golang/curves/bls12381/tests/msm_test.go b/wrappers/golang/curves/bls12381/tests/msm_test.go index 4f615343f..702680df2 100644 --- a/wrappers/golang/curves/bls12381/tests/msm_test.go +++ b/wrappers/golang/curves/bls12381/tests/msm_test.go @@ -8,14 +8,14 @@ import ( "github.com/stretchr/testify/assert" "github.com/consensys/gnark-crypto/ecc" - "github.com/consensys/gnark-crypto/ecc/bls12-381" + bls12381 "github.com/consensys/gnark-crypto/ecc/bls12-381" "github.com/consensys/gnark-crypto/ecc/bls12-381/fp" "github.com/consensys/gnark-crypto/ecc/bls12-381/fr" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - icicleBls12_381 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12381" - "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12381/msm" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + icicleBls12_381 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12381" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12381/msm" ) func projectiveToGnarkAffine(p icicleBls12_381.Projective) bls12381.G1Affine { diff --git a/wrappers/golang/curves/bls12381/tests/ntt_test.go b/wrappers/golang/curves/bls12381/tests/ntt_test.go index 281cf73fa..82e59c789 100644 --- a/wrappers/golang/curves/bls12381/tests/ntt_test.go +++ b/wrappers/golang/curves/bls12381/tests/ntt_test.go @@ -6,11 +6,11 @@ import ( "github.com/consensys/gnark-crypto/ecc/bls12-381/fr" "github.com/consensys/gnark-crypto/ecc/bls12-381/fr/fft" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - bls12_381 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12381" - ntt "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12381/ntt" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + bls12_381 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12381" + ntt "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12381/ntt" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" "github.com/stretchr/testify/assert" ) diff --git a/wrappers/golang/curves/bls12381/tests/polynomial_test.go b/wrappers/golang/curves/bls12381/tests/polynomial_test.go index a8ee8ce41..ffba55426 100644 --- a/wrappers/golang/curves/bls12381/tests/polynomial_test.go +++ b/wrappers/golang/curves/bls12381/tests/polynomial_test.go @@ -3,11 +3,12 @@ package tests import ( "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - bls12_381 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12381" - // "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12381/ntt" - "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12381/polynomial" - "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12381/vecOps" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + bls12_381 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12381" + + // "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12381/ntt" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12381/polynomial" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12381/vecOps" "github.com/stretchr/testify/assert" ) diff --git a/wrappers/golang/curves/bls12381/tests/scalar_field_test.go b/wrappers/golang/curves/bls12381/tests/scalar_field_test.go index d85ed6cec..cfc2007c8 100644 --- a/wrappers/golang/curves/bls12381/tests/scalar_field_test.go +++ b/wrappers/golang/curves/bls12381/tests/scalar_field_test.go @@ -1,11 +1,12 @@ package tests import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - bls12_381 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12381" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" - "github.com/stretchr/testify/assert" "testing" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + bls12_381 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12381" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" + "github.com/stretchr/testify/assert" ) const ( diff --git a/wrappers/golang/curves/bls12381/tests/vec_ops_test.go b/wrappers/golang/curves/bls12381/tests/vec_ops_test.go index f39e93fc2..8a383ee48 100644 --- a/wrappers/golang/curves/bls12381/tests/vec_ops_test.go +++ b/wrappers/golang/curves/bls12381/tests/vec_ops_test.go @@ -3,10 +3,10 @@ package tests import ( "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - bls12_381 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12381" - "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bls12381/vecOps" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + bls12_381 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12381" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bls12381/vecOps" "github.com/stretchr/testify/assert" ) diff --git a/wrappers/golang/curves/bls12381/vecOps/vec_ops.go b/wrappers/golang/curves/bls12381/vecOps/vec_ops.go index 494096852..a17aa93af 100644 --- a/wrappers/golang/curves/bls12381/vecOps/vec_ops.go +++ b/wrappers/golang/curves/bls12381/vecOps/vec_ops.go @@ -5,8 +5,8 @@ package vecOps import "C" import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" "unsafe" ) diff --git a/wrappers/golang/curves/bn254/curve.go b/wrappers/golang/curves/bn254/curve.go index 09a8bd102..80a844c7a 100644 --- a/wrappers/golang/curves/bn254/curve.go +++ b/wrappers/golang/curves/bn254/curve.go @@ -7,8 +7,8 @@ import "C" import ( "unsafe" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) type Projective struct { diff --git a/wrappers/golang/curves/bn254/ecntt/ecntt.go b/wrappers/golang/curves/bn254/ecntt/ecntt.go index c0b341df8..feda5f2d9 100644 --- a/wrappers/golang/curves/bn254/ecntt/ecntt.go +++ b/wrappers/golang/curves/bn254/ecntt/ecntt.go @@ -5,8 +5,8 @@ package ecntt import "C" import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) func ECNtt[T any](points core.HostOrDeviceSlice, dir core.NTTDir, cfg *core.NTTConfig[T], results core.HostOrDeviceSlice) core.IcicleError { diff --git a/wrappers/golang/curves/bn254/g2/curve.go b/wrappers/golang/curves/bn254/g2/curve.go index 0e3f0ccde..586d23831 100644 --- a/wrappers/golang/curves/bn254/g2/curve.go +++ b/wrappers/golang/curves/bn254/g2/curve.go @@ -7,8 +7,8 @@ import "C" import ( "unsafe" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) type G2Projective struct { diff --git a/wrappers/golang/curves/bn254/g2/msm.go b/wrappers/golang/curves/bn254/g2/msm.go index af58ca48b..9fb35de42 100644 --- a/wrappers/golang/curves/bn254/g2/msm.go +++ b/wrappers/golang/curves/bn254/g2/msm.go @@ -5,9 +5,10 @@ package g2 import "C" import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" "unsafe" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) func G2GetDefaultMSMConfig() core.MSMConfig { diff --git a/wrappers/golang/curves/bn254/msm/msm.go b/wrappers/golang/curves/bn254/msm/msm.go index 17ae582a9..bdd7a711d 100644 --- a/wrappers/golang/curves/bn254/msm/msm.go +++ b/wrappers/golang/curves/bn254/msm/msm.go @@ -5,9 +5,10 @@ package msm import "C" import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" "unsafe" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) func GetDefaultMSMConfig() core.MSMConfig { diff --git a/wrappers/golang/curves/bn254/ntt/ntt.go b/wrappers/golang/curves/bn254/ntt/ntt.go index 3082cdee7..4f1d1c70f 100644 --- a/wrappers/golang/curves/bn254/ntt/ntt.go +++ b/wrappers/golang/curves/bn254/ntt/ntt.go @@ -4,14 +4,12 @@ package ntt // #include "ntt.h" import "C" -import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - bn254 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254" -) - import ( "unsafe" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + bn254 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254" ) func Ntt[T any](scalars core.HostOrDeviceSlice, dir core.NTTDir, cfg *core.NTTConfig[T], results core.HostOrDeviceSlice) core.IcicleError { diff --git a/wrappers/golang/curves/bn254/polynomial/polynomial.go b/wrappers/golang/curves/bn254/polynomial/polynomial.go index 1df05cac0..ffee8af55 100644 --- a/wrappers/golang/curves/bn254/polynomial/polynomial.go +++ b/wrappers/golang/curves/bn254/polynomial/polynomial.go @@ -7,8 +7,8 @@ import "C" import ( "unsafe" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - bn254 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + bn254 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254" ) type PolynomialHandle = C.struct_PolynomialInst diff --git a/wrappers/golang/curves/bn254/scalar_field.go b/wrappers/golang/curves/bn254/scalar_field.go index 021983bc4..061abe786 100644 --- a/wrappers/golang/curves/bn254/scalar_field.go +++ b/wrappers/golang/curves/bn254/scalar_field.go @@ -6,9 +6,10 @@ import "C" import ( "encoding/binary" "fmt" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" "unsafe" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) const ( diff --git a/wrappers/golang/curves/bn254/tests/base_field_test.go b/wrappers/golang/curves/bn254/tests/base_field_test.go index 92bf2732f..771541ed4 100644 --- a/wrappers/golang/curves/bn254/tests/base_field_test.go +++ b/wrappers/golang/curves/bn254/tests/base_field_test.go @@ -1,10 +1,11 @@ package tests import ( - bn254 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" - "github.com/stretchr/testify/assert" "testing" + + bn254 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" + "github.com/stretchr/testify/assert" ) const ( diff --git a/wrappers/golang/curves/bn254/tests/curve_test.go b/wrappers/golang/curves/bn254/tests/curve_test.go index 50988d8d6..d6aa15ab7 100644 --- a/wrappers/golang/curves/bn254/tests/curve_test.go +++ b/wrappers/golang/curves/bn254/tests/curve_test.go @@ -1,10 +1,11 @@ package tests import ( - bn254 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" - "github.com/stretchr/testify/assert" "testing" + + bn254 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" + "github.com/stretchr/testify/assert" ) func TestAffineZero(t *testing.T) { diff --git a/wrappers/golang/curves/bn254/tests/ecntt_test.go b/wrappers/golang/curves/bn254/tests/ecntt_test.go index 28f9a6354..08587bba6 100644 --- a/wrappers/golang/curves/bn254/tests/ecntt_test.go +++ b/wrappers/golang/curves/bn254/tests/ecntt_test.go @@ -3,10 +3,10 @@ package tests import ( "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - bn254 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254" - ecntt "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254/ecntt" - ntt "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254/ntt" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + bn254 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254" + ecntt "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254/ecntt" + ntt "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254/ntt" "github.com/stretchr/testify/assert" ) diff --git a/wrappers/golang/curves/bn254/tests/g2_curve_test.go b/wrappers/golang/curves/bn254/tests/g2_curve_test.go index 5ae9d2e27..6efc21b89 100644 --- a/wrappers/golang/curves/bn254/tests/g2_curve_test.go +++ b/wrappers/golang/curves/bn254/tests/g2_curve_test.go @@ -1,10 +1,11 @@ package tests import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254/g2" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" - "github.com/stretchr/testify/assert" "testing" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254/g2" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" + "github.com/stretchr/testify/assert" ) func TestG2AffineZero(t *testing.T) { diff --git a/wrappers/golang/curves/bn254/tests/g2_g2base_field_test.go b/wrappers/golang/curves/bn254/tests/g2_g2base_field_test.go index ced8e6a2f..a45914b56 100644 --- a/wrappers/golang/curves/bn254/tests/g2_g2base_field_test.go +++ b/wrappers/golang/curves/bn254/tests/g2_g2base_field_test.go @@ -1,10 +1,11 @@ package tests import ( - bn254 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254/g2" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" - "github.com/stretchr/testify/assert" "testing" + + bn254 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254/g2" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" + "github.com/stretchr/testify/assert" ) const ( diff --git a/wrappers/golang/curves/bn254/tests/g2_msm_test.go b/wrappers/golang/curves/bn254/tests/g2_msm_test.go index 471d89f7a..166fe1cbb 100644 --- a/wrappers/golang/curves/bn254/tests/g2_msm_test.go +++ b/wrappers/golang/curves/bn254/tests/g2_msm_test.go @@ -12,10 +12,10 @@ import ( "github.com/consensys/gnark-crypto/ecc/bn254/fp" "github.com/consensys/gnark-crypto/ecc/bn254/fr" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - icicleBn254 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254" - "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254/g2" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + icicleBn254 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254/g2" ) func projectiveToGnarkAffineG2(p g2.G2Projective) bn254.G2Affine { diff --git a/wrappers/golang/curves/bn254/tests/main_test.go b/wrappers/golang/curves/bn254/tests/main_test.go index 71fa2e2de..f06c8a890 100644 --- a/wrappers/golang/curves/bn254/tests/main_test.go +++ b/wrappers/golang/curves/bn254/tests/main_test.go @@ -4,10 +4,10 @@ import ( "os" "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - bn254 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254" - ntt "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254/ntt" - poly "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254/polynomial" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + bn254 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254" + ntt "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254/ntt" + poly "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254/polynomial" "github.com/consensys/gnark-crypto/ecc/bn254/fr/fft" ) diff --git a/wrappers/golang/curves/bn254/tests/msm_test.go b/wrappers/golang/curves/bn254/tests/msm_test.go index 1dfc5e190..9a67e6fb8 100644 --- a/wrappers/golang/curves/bn254/tests/msm_test.go +++ b/wrappers/golang/curves/bn254/tests/msm_test.go @@ -12,10 +12,10 @@ import ( "github.com/consensys/gnark-crypto/ecc/bn254/fp" "github.com/consensys/gnark-crypto/ecc/bn254/fr" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - icicleBn254 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254" - "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254/msm" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + icicleBn254 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254/msm" ) func projectiveToGnarkAffine(p icicleBn254.Projective) bn254.G1Affine { diff --git a/wrappers/golang/curves/bn254/tests/ntt_test.go b/wrappers/golang/curves/bn254/tests/ntt_test.go index 49d60e631..980090e82 100644 --- a/wrappers/golang/curves/bn254/tests/ntt_test.go +++ b/wrappers/golang/curves/bn254/tests/ntt_test.go @@ -6,11 +6,11 @@ import ( "github.com/consensys/gnark-crypto/ecc/bn254/fr" "github.com/consensys/gnark-crypto/ecc/bn254/fr/fft" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - bn254 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254" - ntt "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254/ntt" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + bn254 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254" + ntt "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254/ntt" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" "github.com/stretchr/testify/assert" ) diff --git a/wrappers/golang/curves/bn254/tests/polynomial_test.go b/wrappers/golang/curves/bn254/tests/polynomial_test.go index 2861f2d64..20215727e 100644 --- a/wrappers/golang/curves/bn254/tests/polynomial_test.go +++ b/wrappers/golang/curves/bn254/tests/polynomial_test.go @@ -3,11 +3,12 @@ package tests import ( "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - bn254 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254" - // "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254/ntt" - "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254/polynomial" - "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254/vecOps" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + bn254 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254" + + // "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254/ntt" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254/polynomial" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254/vecOps" "github.com/stretchr/testify/assert" ) diff --git a/wrappers/golang/curves/bn254/tests/scalar_field_test.go b/wrappers/golang/curves/bn254/tests/scalar_field_test.go index 04a1e6d29..639733d17 100644 --- a/wrappers/golang/curves/bn254/tests/scalar_field_test.go +++ b/wrappers/golang/curves/bn254/tests/scalar_field_test.go @@ -1,11 +1,12 @@ package tests import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - bn254 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" - "github.com/stretchr/testify/assert" "testing" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + bn254 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" + "github.com/stretchr/testify/assert" ) const ( diff --git a/wrappers/golang/curves/bn254/tests/vec_ops_test.go b/wrappers/golang/curves/bn254/tests/vec_ops_test.go index ac121cd8d..20ed5e4c4 100644 --- a/wrappers/golang/curves/bn254/tests/vec_ops_test.go +++ b/wrappers/golang/curves/bn254/tests/vec_ops_test.go @@ -3,10 +3,10 @@ package tests import ( "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - bn254 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254" - "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bn254/vecOps" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + bn254 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bn254/vecOps" "github.com/stretchr/testify/assert" ) diff --git a/wrappers/golang/curves/bn254/vecOps/vec_ops.go b/wrappers/golang/curves/bn254/vecOps/vec_ops.go index bf7f0efdc..428f54968 100644 --- a/wrappers/golang/curves/bn254/vecOps/vec_ops.go +++ b/wrappers/golang/curves/bn254/vecOps/vec_ops.go @@ -5,8 +5,8 @@ package vecOps import "C" import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" "unsafe" ) diff --git a/wrappers/golang/curves/bw6761/curve.go b/wrappers/golang/curves/bw6761/curve.go index 7fc3e2a3d..907971405 100644 --- a/wrappers/golang/curves/bw6761/curve.go +++ b/wrappers/golang/curves/bw6761/curve.go @@ -7,8 +7,8 @@ import "C" import ( "unsafe" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) type Projective struct { diff --git a/wrappers/golang/curves/bw6761/ecntt/ecntt.go b/wrappers/golang/curves/bw6761/ecntt/ecntt.go index 29b2a5394..4bf2db434 100644 --- a/wrappers/golang/curves/bw6761/ecntt/ecntt.go +++ b/wrappers/golang/curves/bw6761/ecntt/ecntt.go @@ -5,8 +5,8 @@ package ecntt import "C" import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) func ECNtt[T any](points core.HostOrDeviceSlice, dir core.NTTDir, cfg *core.NTTConfig[T], results core.HostOrDeviceSlice) core.IcicleError { diff --git a/wrappers/golang/curves/bw6761/g2/curve.go b/wrappers/golang/curves/bw6761/g2/curve.go index ccffe49f7..4167674ef 100644 --- a/wrappers/golang/curves/bw6761/g2/curve.go +++ b/wrappers/golang/curves/bw6761/g2/curve.go @@ -7,8 +7,8 @@ import "C" import ( "unsafe" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) type G2Projective struct { diff --git a/wrappers/golang/curves/bw6761/g2/msm.go b/wrappers/golang/curves/bw6761/g2/msm.go index 98ac3af32..3fa67c9e4 100644 --- a/wrappers/golang/curves/bw6761/g2/msm.go +++ b/wrappers/golang/curves/bw6761/g2/msm.go @@ -5,9 +5,10 @@ package g2 import "C" import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" "unsafe" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) func G2GetDefaultMSMConfig() core.MSMConfig { diff --git a/wrappers/golang/curves/bw6761/msm/msm.go b/wrappers/golang/curves/bw6761/msm/msm.go index 9c0af1558..a267b6e79 100644 --- a/wrappers/golang/curves/bw6761/msm/msm.go +++ b/wrappers/golang/curves/bw6761/msm/msm.go @@ -5,9 +5,10 @@ package msm import "C" import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" "unsafe" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) func GetDefaultMSMConfig() core.MSMConfig { diff --git a/wrappers/golang/curves/bw6761/ntt/ntt.go b/wrappers/golang/curves/bw6761/ntt/ntt.go index 2206092c2..54e3ee69c 100644 --- a/wrappers/golang/curves/bw6761/ntt/ntt.go +++ b/wrappers/golang/curves/bw6761/ntt/ntt.go @@ -4,14 +4,12 @@ package ntt // #include "ntt.h" import "C" -import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - bw6_761 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bw6761" -) - import ( "unsafe" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + bw6_761 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bw6761" ) func Ntt[T any](scalars core.HostOrDeviceSlice, dir core.NTTDir, cfg *core.NTTConfig[T], results core.HostOrDeviceSlice) core.IcicleError { diff --git a/wrappers/golang/curves/bw6761/polynomial/polynomial.go b/wrappers/golang/curves/bw6761/polynomial/polynomial.go index 8c6e04211..49626f731 100644 --- a/wrappers/golang/curves/bw6761/polynomial/polynomial.go +++ b/wrappers/golang/curves/bw6761/polynomial/polynomial.go @@ -7,8 +7,8 @@ import "C" import ( "unsafe" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - bw6_761 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bw6761" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + bw6_761 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bw6761" ) type PolynomialHandle = C.struct_PolynomialInst diff --git a/wrappers/golang/curves/bw6761/scalar_field.go b/wrappers/golang/curves/bw6761/scalar_field.go index 4fd80d5e3..4e80714e0 100644 --- a/wrappers/golang/curves/bw6761/scalar_field.go +++ b/wrappers/golang/curves/bw6761/scalar_field.go @@ -6,9 +6,10 @@ import "C" import ( "encoding/binary" "fmt" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" "unsafe" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) const ( diff --git a/wrappers/golang/curves/bw6761/tests/base_field_test.go b/wrappers/golang/curves/bw6761/tests/base_field_test.go index c6737635f..38c0913f8 100644 --- a/wrappers/golang/curves/bw6761/tests/base_field_test.go +++ b/wrappers/golang/curves/bw6761/tests/base_field_test.go @@ -1,10 +1,11 @@ package tests import ( - bw6_761 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bw6761" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" - "github.com/stretchr/testify/assert" "testing" + + bw6_761 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bw6761" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" + "github.com/stretchr/testify/assert" ) const ( diff --git a/wrappers/golang/curves/bw6761/tests/curve_test.go b/wrappers/golang/curves/bw6761/tests/curve_test.go index c2089df67..10309f98a 100644 --- a/wrappers/golang/curves/bw6761/tests/curve_test.go +++ b/wrappers/golang/curves/bw6761/tests/curve_test.go @@ -1,10 +1,11 @@ package tests import ( - bw6_761 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bw6761" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" - "github.com/stretchr/testify/assert" "testing" + + bw6_761 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bw6761" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" + "github.com/stretchr/testify/assert" ) func TestAffineZero(t *testing.T) { diff --git a/wrappers/golang/curves/bw6761/tests/ecntt_test.go b/wrappers/golang/curves/bw6761/tests/ecntt_test.go index 3d37a9881..0a90035c9 100644 --- a/wrappers/golang/curves/bw6761/tests/ecntt_test.go +++ b/wrappers/golang/curves/bw6761/tests/ecntt_test.go @@ -3,10 +3,10 @@ package tests import ( "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - bw6_761 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bw6761" - ecntt "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bw6761/ecntt" - ntt "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bw6761/ntt" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + bw6_761 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bw6761" + ecntt "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bw6761/ecntt" + ntt "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bw6761/ntt" "github.com/stretchr/testify/assert" ) diff --git a/wrappers/golang/curves/bw6761/tests/g2_curve_test.go b/wrappers/golang/curves/bw6761/tests/g2_curve_test.go index 09797b2a4..2e47485b7 100644 --- a/wrappers/golang/curves/bw6761/tests/g2_curve_test.go +++ b/wrappers/golang/curves/bw6761/tests/g2_curve_test.go @@ -1,10 +1,11 @@ package tests import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bw6761/g2" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" - "github.com/stretchr/testify/assert" "testing" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bw6761/g2" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" + "github.com/stretchr/testify/assert" ) func TestG2AffineZero(t *testing.T) { diff --git a/wrappers/golang/curves/bw6761/tests/g2_g2base_field_test.go b/wrappers/golang/curves/bw6761/tests/g2_g2base_field_test.go index 41c21133f..5f82a54d4 100644 --- a/wrappers/golang/curves/bw6761/tests/g2_g2base_field_test.go +++ b/wrappers/golang/curves/bw6761/tests/g2_g2base_field_test.go @@ -1,10 +1,11 @@ package tests import ( - bw6_761 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bw6761/g2" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" - "github.com/stretchr/testify/assert" "testing" + + bw6_761 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bw6761/g2" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" + "github.com/stretchr/testify/assert" ) const ( diff --git a/wrappers/golang/curves/bw6761/tests/g2_msm_test.go b/wrappers/golang/curves/bw6761/tests/g2_msm_test.go index 2f03a15d1..5fa8b53d9 100644 --- a/wrappers/golang/curves/bw6761/tests/g2_msm_test.go +++ b/wrappers/golang/curves/bw6761/tests/g2_msm_test.go @@ -8,14 +8,14 @@ import ( "github.com/stretchr/testify/assert" "github.com/consensys/gnark-crypto/ecc" - "github.com/consensys/gnark-crypto/ecc/bw6-761" + bw6761 "github.com/consensys/gnark-crypto/ecc/bw6-761" "github.com/consensys/gnark-crypto/ecc/bw6-761/fp" "github.com/consensys/gnark-crypto/ecc/bw6-761/fr" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - icicleBw6_761 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bw6761" - "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bw6761/g2" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + icicleBw6_761 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bw6761" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bw6761/g2" ) func projectiveToGnarkAffineG2(p g2.G2Projective) bw6761.G2Affine { diff --git a/wrappers/golang/curves/bw6761/tests/main_test.go b/wrappers/golang/curves/bw6761/tests/main_test.go index 142bc2e3b..48d0499fc 100644 --- a/wrappers/golang/curves/bw6761/tests/main_test.go +++ b/wrappers/golang/curves/bw6761/tests/main_test.go @@ -4,10 +4,10 @@ import ( "os" "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - bw6_761 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bw6761" - ntt "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bw6761/ntt" - poly "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bw6761/polynomial" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + bw6_761 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bw6761" + ntt "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bw6761/ntt" + poly "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bw6761/polynomial" "github.com/consensys/gnark-crypto/ecc/bw6-761/fr/fft" ) diff --git a/wrappers/golang/curves/bw6761/tests/msm_test.go b/wrappers/golang/curves/bw6761/tests/msm_test.go index fcc6d34b6..911320d48 100644 --- a/wrappers/golang/curves/bw6761/tests/msm_test.go +++ b/wrappers/golang/curves/bw6761/tests/msm_test.go @@ -8,14 +8,14 @@ import ( "github.com/stretchr/testify/assert" "github.com/consensys/gnark-crypto/ecc" - "github.com/consensys/gnark-crypto/ecc/bw6-761" + bw6761 "github.com/consensys/gnark-crypto/ecc/bw6-761" "github.com/consensys/gnark-crypto/ecc/bw6-761/fp" "github.com/consensys/gnark-crypto/ecc/bw6-761/fr" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - icicleBw6_761 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bw6761" - "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bw6761/msm" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + icicleBw6_761 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bw6761" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bw6761/msm" ) func projectiveToGnarkAffine(p icicleBw6_761.Projective) bw6761.G1Affine { diff --git a/wrappers/golang/curves/bw6761/tests/ntt_test.go b/wrappers/golang/curves/bw6761/tests/ntt_test.go index 266af8d6e..4ff3d0196 100644 --- a/wrappers/golang/curves/bw6761/tests/ntt_test.go +++ b/wrappers/golang/curves/bw6761/tests/ntt_test.go @@ -6,11 +6,11 @@ import ( "github.com/consensys/gnark-crypto/ecc/bw6-761/fr" "github.com/consensys/gnark-crypto/ecc/bw6-761/fr/fft" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - bw6_761 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bw6761" - ntt "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bw6761/ntt" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + bw6_761 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bw6761" + ntt "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bw6761/ntt" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" "github.com/stretchr/testify/assert" ) diff --git a/wrappers/golang/curves/bw6761/tests/polynomial_test.go b/wrappers/golang/curves/bw6761/tests/polynomial_test.go index 9ceccddc1..afb425f58 100644 --- a/wrappers/golang/curves/bw6761/tests/polynomial_test.go +++ b/wrappers/golang/curves/bw6761/tests/polynomial_test.go @@ -3,11 +3,12 @@ package tests import ( "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - bw6_761 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bw6761" - // "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bw6761/ntt" - "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bw6761/polynomial" - "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bw6761/vecOps" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + bw6_761 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bw6761" + + // "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bw6761/ntt" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bw6761/polynomial" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bw6761/vecOps" "github.com/stretchr/testify/assert" ) diff --git a/wrappers/golang/curves/bw6761/tests/scalar_field_test.go b/wrappers/golang/curves/bw6761/tests/scalar_field_test.go index acad0ef31..79df06244 100644 --- a/wrappers/golang/curves/bw6761/tests/scalar_field_test.go +++ b/wrappers/golang/curves/bw6761/tests/scalar_field_test.go @@ -1,11 +1,12 @@ package tests import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - bw6_761 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bw6761" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" - "github.com/stretchr/testify/assert" "testing" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + bw6_761 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bw6761" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" + "github.com/stretchr/testify/assert" ) const ( diff --git a/wrappers/golang/curves/bw6761/tests/vec_ops_test.go b/wrappers/golang/curves/bw6761/tests/vec_ops_test.go index 25dde7a05..bd6802809 100644 --- a/wrappers/golang/curves/bw6761/tests/vec_ops_test.go +++ b/wrappers/golang/curves/bw6761/tests/vec_ops_test.go @@ -3,10 +3,10 @@ package tests import ( "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - bw6_761 "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bw6761" - "github.com/ingonyama-zk/icicle/wrappers/golang/curves/bw6761/vecOps" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + bw6_761 "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bw6761" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/bw6761/vecOps" "github.com/stretchr/testify/assert" ) diff --git a/wrappers/golang/curves/bw6761/vecOps/vec_ops.go b/wrappers/golang/curves/bw6761/vecOps/vec_ops.go index 4e5a25037..ad40566d8 100644 --- a/wrappers/golang/curves/bw6761/vecOps/vec_ops.go +++ b/wrappers/golang/curves/bw6761/vecOps/vec_ops.go @@ -5,8 +5,8 @@ package vecOps import "C" import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" "unsafe" ) diff --git a/wrappers/golang/curves/grumpkin/curve.go b/wrappers/golang/curves/grumpkin/curve.go index 41b5ca294..653cbc8ed 100644 --- a/wrappers/golang/curves/grumpkin/curve.go +++ b/wrappers/golang/curves/grumpkin/curve.go @@ -7,8 +7,8 @@ import "C" import ( "unsafe" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) type Projective struct { diff --git a/wrappers/golang/curves/grumpkin/msm/msm.go b/wrappers/golang/curves/grumpkin/msm/msm.go index 4d1717841..3f4658a5e 100644 --- a/wrappers/golang/curves/grumpkin/msm/msm.go +++ b/wrappers/golang/curves/grumpkin/msm/msm.go @@ -5,9 +5,10 @@ package msm import "C" import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" "unsafe" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) func GetDefaultMSMConfig() core.MSMConfig { diff --git a/wrappers/golang/curves/grumpkin/scalar_field.go b/wrappers/golang/curves/grumpkin/scalar_field.go index a335fb091..1efb65c45 100644 --- a/wrappers/golang/curves/grumpkin/scalar_field.go +++ b/wrappers/golang/curves/grumpkin/scalar_field.go @@ -6,9 +6,10 @@ import "C" import ( "encoding/binary" "fmt" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" "unsafe" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) const ( diff --git a/wrappers/golang/curves/grumpkin/tests/base_field_test.go b/wrappers/golang/curves/grumpkin/tests/base_field_test.go index 6acc6855b..9196bbe37 100644 --- a/wrappers/golang/curves/grumpkin/tests/base_field_test.go +++ b/wrappers/golang/curves/grumpkin/tests/base_field_test.go @@ -1,10 +1,11 @@ package tests import ( - grumpkin "github.com/ingonyama-zk/icicle/wrappers/golang/curves/grumpkin" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" - "github.com/stretchr/testify/assert" "testing" + + grumpkin "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/grumpkin" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" + "github.com/stretchr/testify/assert" ) const ( diff --git a/wrappers/golang/curves/grumpkin/tests/curve_test.go b/wrappers/golang/curves/grumpkin/tests/curve_test.go index c6f94b675..1659f32d9 100644 --- a/wrappers/golang/curves/grumpkin/tests/curve_test.go +++ b/wrappers/golang/curves/grumpkin/tests/curve_test.go @@ -1,10 +1,11 @@ package tests import ( - grumpkin "github.com/ingonyama-zk/icicle/wrappers/golang/curves/grumpkin" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" - "github.com/stretchr/testify/assert" "testing" + + grumpkin "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/grumpkin" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" + "github.com/stretchr/testify/assert" ) func TestAffineZero(t *testing.T) { diff --git a/wrappers/golang/curves/grumpkin/tests/msm_test.go b/wrappers/golang/curves/grumpkin/tests/msm_test.go index 0005fdac6..65060c98d 100644 --- a/wrappers/golang/curves/grumpkin/tests/msm_test.go +++ b/wrappers/golang/curves/grumpkin/tests/msm_test.go @@ -7,10 +7,10 @@ import ( "github.com/stretchr/testify/assert" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - icicleGrumpkin "github.com/ingonyama-zk/icicle/wrappers/golang/curves/grumpkin" - "github.com/ingonyama-zk/icicle/wrappers/golang/curves/grumpkin/msm" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + icicleGrumpkin "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/grumpkin" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/grumpkin/msm" ) func TestMSM(t *testing.T) { diff --git a/wrappers/golang/curves/grumpkin/tests/scalar_field_test.go b/wrappers/golang/curves/grumpkin/tests/scalar_field_test.go index f4fb41b09..9e99ebd62 100644 --- a/wrappers/golang/curves/grumpkin/tests/scalar_field_test.go +++ b/wrappers/golang/curves/grumpkin/tests/scalar_field_test.go @@ -1,11 +1,12 @@ package tests import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - grumpkin "github.com/ingonyama-zk/icicle/wrappers/golang/curves/grumpkin" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" - "github.com/stretchr/testify/assert" "testing" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + grumpkin "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/grumpkin" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" + "github.com/stretchr/testify/assert" ) const ( diff --git a/wrappers/golang/curves/grumpkin/tests/vec_ops_test.go b/wrappers/golang/curves/grumpkin/tests/vec_ops_test.go index 067851ccb..9413b0597 100644 --- a/wrappers/golang/curves/grumpkin/tests/vec_ops_test.go +++ b/wrappers/golang/curves/grumpkin/tests/vec_ops_test.go @@ -3,10 +3,10 @@ package tests import ( "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - grumpkin "github.com/ingonyama-zk/icicle/wrappers/golang/curves/grumpkin" - "github.com/ingonyama-zk/icicle/wrappers/golang/curves/grumpkin/vecOps" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + grumpkin "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/grumpkin" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/curves/grumpkin/vecOps" "github.com/stretchr/testify/assert" ) diff --git a/wrappers/golang/curves/grumpkin/vecOps/vec_ops.go b/wrappers/golang/curves/grumpkin/vecOps/vec_ops.go index 985bb0f4f..316fe5c0d 100644 --- a/wrappers/golang/curves/grumpkin/vecOps/vec_ops.go +++ b/wrappers/golang/curves/grumpkin/vecOps/vec_ops.go @@ -5,8 +5,8 @@ package vecOps import "C" import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" "unsafe" ) diff --git a/wrappers/golang/fields/babybear/extension/extension_field.go b/wrappers/golang/fields/babybear/extension/extension_field.go index 1a2486ec1..1a09f8634 100644 --- a/wrappers/golang/fields/babybear/extension/extension_field.go +++ b/wrappers/golang/fields/babybear/extension/extension_field.go @@ -6,9 +6,10 @@ import "C" import ( "encoding/binary" "fmt" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" "unsafe" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) const ( diff --git a/wrappers/golang/fields/babybear/extension/ntt/ntt.go b/wrappers/golang/fields/babybear/extension/ntt/ntt.go index 6238fbcee..1c7839fd4 100644 --- a/wrappers/golang/fields/babybear/extension/ntt/ntt.go +++ b/wrappers/golang/fields/babybear/extension/ntt/ntt.go @@ -5,8 +5,8 @@ package ntt import "C" import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) func Ntt[T any](scalars core.HostOrDeviceSlice, dir core.NTTDir, cfg *core.NTTConfig[T], results core.HostOrDeviceSlice) core.IcicleError { diff --git a/wrappers/golang/fields/babybear/extension/vecOps/vec_ops.go b/wrappers/golang/fields/babybear/extension/vecOps/vec_ops.go index c2cc71e0b..d65769176 100644 --- a/wrappers/golang/fields/babybear/extension/vecOps/vec_ops.go +++ b/wrappers/golang/fields/babybear/extension/vecOps/vec_ops.go @@ -5,8 +5,8 @@ package vecOps import "C" import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" "unsafe" ) diff --git a/wrappers/golang/fields/babybear/ntt/ntt.go b/wrappers/golang/fields/babybear/ntt/ntt.go index 99e2a3caa..8b8090850 100644 --- a/wrappers/golang/fields/babybear/ntt/ntt.go +++ b/wrappers/golang/fields/babybear/ntt/ntt.go @@ -4,14 +4,12 @@ package ntt // #include "ntt.h" import "C" -import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - babybear "github.com/ingonyama-zk/icicle/wrappers/golang/fields/babybear" -) - import ( "unsafe" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + babybear "github.com/ingonyama-zk/icicle/v2/wrappers/golang/fields/babybear" ) func Ntt[T any](scalars core.HostOrDeviceSlice, dir core.NTTDir, cfg *core.NTTConfig[T], results core.HostOrDeviceSlice) core.IcicleError { diff --git a/wrappers/golang/fields/babybear/polynomial/polynomial.go b/wrappers/golang/fields/babybear/polynomial/polynomial.go index 73650f007..8f9c8c0c6 100644 --- a/wrappers/golang/fields/babybear/polynomial/polynomial.go +++ b/wrappers/golang/fields/babybear/polynomial/polynomial.go @@ -7,8 +7,8 @@ import "C" import ( "unsafe" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - babybear "github.com/ingonyama-zk/icicle/wrappers/golang/fields/babybear" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + babybear "github.com/ingonyama-zk/icicle/v2/wrappers/golang/fields/babybear" ) type PolynomialHandle = C.struct_PolynomialInst diff --git a/wrappers/golang/fields/babybear/scalar_field.go b/wrappers/golang/fields/babybear/scalar_field.go index 97f80d826..212c68f7e 100644 --- a/wrappers/golang/fields/babybear/scalar_field.go +++ b/wrappers/golang/fields/babybear/scalar_field.go @@ -6,9 +6,10 @@ import "C" import ( "encoding/binary" "fmt" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" "unsafe" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) const ( diff --git a/wrappers/golang/fields/babybear/tests/extension_field_test.go b/wrappers/golang/fields/babybear/tests/extension_field_test.go index e0f01421e..dc045c5e9 100644 --- a/wrappers/golang/fields/babybear/tests/extension_field_test.go +++ b/wrappers/golang/fields/babybear/tests/extension_field_test.go @@ -1,11 +1,12 @@ package tests import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - babybear_extension "github.com/ingonyama-zk/icicle/wrappers/golang/fields/babybear/extension" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" - "github.com/stretchr/testify/assert" "testing" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + babybear_extension "github.com/ingonyama-zk/icicle/v2/wrappers/golang/fields/babybear/extension" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" + "github.com/stretchr/testify/assert" ) const ( diff --git a/wrappers/golang/fields/babybear/tests/extension_vec_ops_test.go b/wrappers/golang/fields/babybear/tests/extension_vec_ops_test.go index ba8e9d548..7eb4f0dcd 100644 --- a/wrappers/golang/fields/babybear/tests/extension_vec_ops_test.go +++ b/wrappers/golang/fields/babybear/tests/extension_vec_ops_test.go @@ -3,10 +3,10 @@ package tests import ( "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - babybear_extension "github.com/ingonyama-zk/icicle/wrappers/golang/fields/babybear/extension" - "github.com/ingonyama-zk/icicle/wrappers/golang/fields/babybear/extension/vecOps" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + babybear_extension "github.com/ingonyama-zk/icicle/v2/wrappers/golang/fields/babybear/extension" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/fields/babybear/extension/vecOps" "github.com/stretchr/testify/assert" ) diff --git a/wrappers/golang/fields/babybear/tests/main_test.go b/wrappers/golang/fields/babybear/tests/main_test.go index c3b80f7fb..4ef716afa 100644 --- a/wrappers/golang/fields/babybear/tests/main_test.go +++ b/wrappers/golang/fields/babybear/tests/main_test.go @@ -4,10 +4,10 @@ import ( "os" "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - babybear "github.com/ingonyama-zk/icicle/wrappers/golang/fields/babybear" - ntt "github.com/ingonyama-zk/icicle/wrappers/golang/fields/babybear/ntt" - poly "github.com/ingonyama-zk/icicle/wrappers/golang/fields/babybear/polynomial" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + babybear "github.com/ingonyama-zk/icicle/v2/wrappers/golang/fields/babybear" + ntt "github.com/ingonyama-zk/icicle/v2/wrappers/golang/fields/babybear/ntt" + poly "github.com/ingonyama-zk/icicle/v2/wrappers/golang/fields/babybear/polynomial" ) const ( diff --git a/wrappers/golang/fields/babybear/tests/ntt_no_domain_test.go b/wrappers/golang/fields/babybear/tests/ntt_no_domain_test.go index e21bc5b94..4746e405f 100644 --- a/wrappers/golang/fields/babybear/tests/ntt_no_domain_test.go +++ b/wrappers/golang/fields/babybear/tests/ntt_no_domain_test.go @@ -3,10 +3,10 @@ package tests import ( "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - babybear_extension "github.com/ingonyama-zk/icicle/wrappers/golang/fields/babybear/extension" - ntt "github.com/ingonyama-zk/icicle/wrappers/golang/fields/babybear/ntt" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + babybear_extension "github.com/ingonyama-zk/icicle/v2/wrappers/golang/fields/babybear/extension" + ntt "github.com/ingonyama-zk/icicle/v2/wrappers/golang/fields/babybear/ntt" ) func TestNttNoDomain(t *testing.T) { diff --git a/wrappers/golang/fields/babybear/tests/ntt_test.go b/wrappers/golang/fields/babybear/tests/ntt_test.go index cf152f3e5..f4d721721 100644 --- a/wrappers/golang/fields/babybear/tests/ntt_test.go +++ b/wrappers/golang/fields/babybear/tests/ntt_test.go @@ -3,11 +3,11 @@ package tests import ( "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - babybear "github.com/ingonyama-zk/icicle/wrappers/golang/fields/babybear" - ntt "github.com/ingonyama-zk/icicle/wrappers/golang/fields/babybear/ntt" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + babybear "github.com/ingonyama-zk/icicle/v2/wrappers/golang/fields/babybear" + ntt "github.com/ingonyama-zk/icicle/v2/wrappers/golang/fields/babybear/ntt" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" "github.com/stretchr/testify/assert" ) diff --git a/wrappers/golang/fields/babybear/tests/polynomial_test.go b/wrappers/golang/fields/babybear/tests/polynomial_test.go index cc428ab6b..0174a15c1 100644 --- a/wrappers/golang/fields/babybear/tests/polynomial_test.go +++ b/wrappers/golang/fields/babybear/tests/polynomial_test.go @@ -3,11 +3,12 @@ package tests import ( "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - babybear "github.com/ingonyama-zk/icicle/wrappers/golang/fields/babybear" - // "github.com/ingonyama-zk/icicle/wrappers/golang/fields/babybear/ntt" - "github.com/ingonyama-zk/icicle/wrappers/golang/fields/babybear/polynomial" - "github.com/ingonyama-zk/icicle/wrappers/golang/fields/babybear/vecOps" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + babybear "github.com/ingonyama-zk/icicle/v2/wrappers/golang/fields/babybear" + + // "github.com/ingonyama-zk/icicle/v2/wrappers/golang/fields/babybear/ntt" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/fields/babybear/polynomial" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/fields/babybear/vecOps" "github.com/stretchr/testify/assert" ) diff --git a/wrappers/golang/fields/babybear/tests/scalar_field_test.go b/wrappers/golang/fields/babybear/tests/scalar_field_test.go index c64b433ed..d31db1aec 100644 --- a/wrappers/golang/fields/babybear/tests/scalar_field_test.go +++ b/wrappers/golang/fields/babybear/tests/scalar_field_test.go @@ -1,11 +1,12 @@ package tests import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - babybear "github.com/ingonyama-zk/icicle/wrappers/golang/fields/babybear" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" - "github.com/stretchr/testify/assert" "testing" + + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + babybear "github.com/ingonyama-zk/icicle/v2/wrappers/golang/fields/babybear" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" + "github.com/stretchr/testify/assert" ) const ( diff --git a/wrappers/golang/fields/babybear/tests/vec_ops_test.go b/wrappers/golang/fields/babybear/tests/vec_ops_test.go index 535ec23f0..e3322008b 100644 --- a/wrappers/golang/fields/babybear/tests/vec_ops_test.go +++ b/wrappers/golang/fields/babybear/tests/vec_ops_test.go @@ -3,10 +3,10 @@ package tests import ( "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - babybear "github.com/ingonyama-zk/icicle/wrappers/golang/fields/babybear" - "github.com/ingonyama-zk/icicle/wrappers/golang/fields/babybear/vecOps" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + babybear "github.com/ingonyama-zk/icicle/v2/wrappers/golang/fields/babybear" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/fields/babybear/vecOps" "github.com/stretchr/testify/assert" ) diff --git a/wrappers/golang/fields/babybear/vecOps/vec_ops.go b/wrappers/golang/fields/babybear/vecOps/vec_ops.go index 37671e41a..24d1e3d82 100644 --- a/wrappers/golang/fields/babybear/vecOps/vec_ops.go +++ b/wrappers/golang/fields/babybear/vecOps/vec_ops.go @@ -5,8 +5,8 @@ package vecOps import "C" import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" "unsafe" ) diff --git a/wrappers/golang/internal/generator/curves/generate.go b/wrappers/golang/internal/generator/curves/generate.go index 67e8d740a..5c7c95f3d 100644 --- a/wrappers/golang/internal/generator/curves/generate.go +++ b/wrappers/golang/internal/generator/curves/generate.go @@ -3,7 +3,7 @@ package curves import ( "path" - generator "github.com/ingonyama-zk/icicle/wrappers/golang/internal/generator/generator_utils" + generator "github.com/ingonyama-zk/icicle/v2/wrappers/golang/internal/generator/generator_utils" ) var curveTemplates = map[string]string{ diff --git a/wrappers/golang/internal/generator/curves/templates/curve.go.tmpl b/wrappers/golang/internal/generator/curves/templates/curve.go.tmpl index bfab4629e..e6bd59d55 100644 --- a/wrappers/golang/internal/generator/curves/templates/curve.go.tmpl +++ b/wrappers/golang/internal/generator/curves/templates/curve.go.tmpl @@ -7,8 +7,8 @@ import "C" import ( "unsafe" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) {{end}} type {{.CurvePrefix}}Projective struct { diff --git a/wrappers/golang/internal/generator/curves/templates/curve_test.go.tmpl b/wrappers/golang/internal/generator/curves/templates/curve_test.go.tmpl index 5d6d92dcd..8a5cf3825 100644 --- a/wrappers/golang/internal/generator/curves/templates/curve_test.go.tmpl +++ b/wrappers/golang/internal/generator/curves/templates/curve_test.go.tmpl @@ -1,8 +1,8 @@ package tests import ( - {{if ne .CurvePrefix "G2"}}{{.Curve}}{{end}} "github.com/ingonyama-zk/icicle/wrappers/golang/{{.BaseImportPath}}" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" + {{if ne .CurvePrefix "G2"}}{{.Curve}}{{end}} "github.com/ingonyama-zk/icicle/v2/wrappers/golang/{{.BaseImportPath}}" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" "github.com/stretchr/testify/assert" "testing" ) diff --git a/wrappers/golang/internal/generator/ecntt/generate.go b/wrappers/golang/internal/generator/ecntt/generate.go index a239a7dc6..3ee977464 100644 --- a/wrappers/golang/internal/generator/ecntt/generate.go +++ b/wrappers/golang/internal/generator/ecntt/generate.go @@ -3,7 +3,7 @@ package ntt import ( "path" - generator "github.com/ingonyama-zk/icicle/wrappers/golang/internal/generator/generator_utils" + generator "github.com/ingonyama-zk/icicle/v2/wrappers/golang/internal/generator/generator_utils" ) var ecnttTemplates = map[string]string{ diff --git a/wrappers/golang/internal/generator/ecntt/templates/ecntt.go.tmpl b/wrappers/golang/internal/generator/ecntt/templates/ecntt.go.tmpl index cf80bf546..2e4e98d5e 100644 --- a/wrappers/golang/internal/generator/ecntt/templates/ecntt.go.tmpl +++ b/wrappers/golang/internal/generator/ecntt/templates/ecntt.go.tmpl @@ -5,8 +5,8 @@ package ecntt import "C" import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) func ECNtt[T any](points core.HostOrDeviceSlice, dir core.NTTDir, cfg *core.NTTConfig[T], results core.HostOrDeviceSlice) core.IcicleError { diff --git a/wrappers/golang/internal/generator/ecntt/templates/ecntt_test.go.tmpl b/wrappers/golang/internal/generator/ecntt/templates/ecntt_test.go.tmpl index 7786e72e7..ac9f96271 100644 --- a/wrappers/golang/internal/generator/ecntt/templates/ecntt_test.go.tmpl +++ b/wrappers/golang/internal/generator/ecntt/templates/ecntt_test.go.tmpl @@ -3,10 +3,10 @@ package tests import ( "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - {{.Curve}} "github.com/ingonyama-zk/icicle/wrappers/golang/{{.BaseImportPath}}" - ecntt "github.com/ingonyama-zk/icicle/wrappers/golang/{{.BaseImportPath}}/ecntt" - ntt "github.com/ingonyama-zk/icicle/wrappers/golang/{{.BaseImportPath}}/ntt" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + {{.Curve}} "github.com/ingonyama-zk/icicle/v2/wrappers/golang/{{.BaseImportPath}}" + ecntt "github.com/ingonyama-zk/icicle/v2/wrappers/golang/{{.BaseImportPath}}/ecntt" + ntt "github.com/ingonyama-zk/icicle/v2/wrappers/golang/{{.BaseImportPath}}/ntt" "github.com/stretchr/testify/assert" ) diff --git a/wrappers/golang/internal/generator/fields/generate.go b/wrappers/golang/internal/generator/fields/generate.go index 692792775..afed04685 100644 --- a/wrappers/golang/internal/generator/fields/generate.go +++ b/wrappers/golang/internal/generator/fields/generate.go @@ -1,9 +1,10 @@ package fields import ( - generator "github.com/ingonyama-zk/icicle/wrappers/golang/internal/generator/generator_utils" "path" "strings" + + generator "github.com/ingonyama-zk/icicle/v2/wrappers/golang/internal/generator/generator_utils" ) var fieldTemplates = map[string]string{ diff --git a/wrappers/golang/internal/generator/fields/templates/field.go.tmpl b/wrappers/golang/internal/generator/fields/templates/field.go.tmpl index da34e47a1..47bc7e92f 100644 --- a/wrappers/golang/internal/generator/fields/templates/field.go.tmpl +++ b/wrappers/golang/internal/generator/fields/templates/field.go.tmpl @@ -9,8 +9,8 @@ import ( "fmt" {{- if .IsScalar}} "unsafe" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" {{- end}} ) diff --git a/wrappers/golang/internal/generator/fields/templates/field_test.go.tmpl b/wrappers/golang/internal/generator/fields/templates/field_test.go.tmpl index 6fca06e3e..2a10ef24c 100644 --- a/wrappers/golang/internal/generator/fields/templates/field_test.go.tmpl +++ b/wrappers/golang/internal/generator/fields/templates/field_test.go.tmpl @@ -2,9 +2,9 @@ package tests import ( {{- if .IsScalar}} - "github.com/ingonyama-zk/icicle/wrappers/golang/core"{{end}} - {{if ne .FieldPrefix "G2"}}{{.Field}}{{end}} "github.com/ingonyama-zk/icicle/wrappers/golang/{{.BaseImportPath}}{{if eq .FieldPrefix "G2"}}/g2{{end}}" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core"{{end}} + {{if ne .FieldPrefix "G2"}}{{.Field}}{{end}} "github.com/ingonyama-zk/icicle/v2/wrappers/golang/{{.BaseImportPath}}{{if eq .FieldPrefix "G2"}}/g2{{end}}" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" "github.com/stretchr/testify/assert" "testing" ) diff --git a/wrappers/golang/internal/generator/lib_linker/generate.go b/wrappers/golang/internal/generator/lib_linker/generate.go index 2a3146ba1..6ec109e12 100644 --- a/wrappers/golang/internal/generator/lib_linker/generate.go +++ b/wrappers/golang/internal/generator/lib_linker/generate.go @@ -1,8 +1,9 @@ package lib_linker import ( - generator "github.com/ingonyama-zk/icicle/wrappers/golang/internal/generator/generator_utils" "strings" + + generator "github.com/ingonyama-zk/icicle/v2/wrappers/golang/internal/generator/generator_utils" ) type MainTemplateType string diff --git a/wrappers/golang/internal/generator/main.go b/wrappers/golang/internal/generator/main.go index f707f7f59..1c1e4f620 100644 --- a/wrappers/golang/internal/generator/main.go +++ b/wrappers/golang/internal/generator/main.go @@ -6,17 +6,17 @@ import ( "os/exec" "path" - config "github.com/ingonyama-zk/icicle/wrappers/golang/internal/generator/config" - curves "github.com/ingonyama-zk/icicle/wrappers/golang/internal/generator/curves" - ecntt "github.com/ingonyama-zk/icicle/wrappers/golang/internal/generator/ecntt" - fields "github.com/ingonyama-zk/icicle/wrappers/golang/internal/generator/fields" - lib_linker "github.com/ingonyama-zk/icicle/wrappers/golang/internal/generator/lib_linker" - mock "github.com/ingonyama-zk/icicle/wrappers/golang/internal/generator/mock" - msm "github.com/ingonyama-zk/icicle/wrappers/golang/internal/generator/msm" - ntt "github.com/ingonyama-zk/icicle/wrappers/golang/internal/generator/ntt" - poly "github.com/ingonyama-zk/icicle/wrappers/golang/internal/generator/polynomial" - "github.com/ingonyama-zk/icicle/wrappers/golang/internal/generator/tests" - vecops "github.com/ingonyama-zk/icicle/wrappers/golang/internal/generator/vecOps" + config "github.com/ingonyama-zk/icicle/v2/wrappers/golang/internal/generator/config" + curves "github.com/ingonyama-zk/icicle/v2/wrappers/golang/internal/generator/curves" + ecntt "github.com/ingonyama-zk/icicle/v2/wrappers/golang/internal/generator/ecntt" + fields "github.com/ingonyama-zk/icicle/v2/wrappers/golang/internal/generator/fields" + lib_linker "github.com/ingonyama-zk/icicle/v2/wrappers/golang/internal/generator/lib_linker" + mock "github.com/ingonyama-zk/icicle/v2/wrappers/golang/internal/generator/mock" + msm "github.com/ingonyama-zk/icicle/v2/wrappers/golang/internal/generator/msm" + ntt "github.com/ingonyama-zk/icicle/v2/wrappers/golang/internal/generator/ntt" + poly "github.com/ingonyama-zk/icicle/v2/wrappers/golang/internal/generator/polynomial" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/internal/generator/tests" + vecops "github.com/ingonyama-zk/icicle/v2/wrappers/golang/internal/generator/vecOps" ) func generateFiles() { diff --git a/wrappers/golang/internal/generator/mock/generate.go b/wrappers/golang/internal/generator/mock/generate.go index f162c60ea..c3ef8c51a 100644 --- a/wrappers/golang/internal/generator/mock/generate.go +++ b/wrappers/golang/internal/generator/mock/generate.go @@ -1,8 +1,9 @@ package fields import ( - generator "github.com/ingonyama-zk/icicle/wrappers/golang/internal/generator/generator_utils" "strings" + + generator "github.com/ingonyama-zk/icicle/v2/wrappers/golang/internal/generator/generator_utils" ) var mockTemplates = map[string]string{ diff --git a/wrappers/golang/internal/generator/msm/generate.go b/wrappers/golang/internal/generator/msm/generate.go index d1265ca67..8a150b6ec 100644 --- a/wrappers/golang/internal/generator/msm/generate.go +++ b/wrappers/golang/internal/generator/msm/generate.go @@ -4,7 +4,7 @@ import ( "path" "path/filepath" - generator "github.com/ingonyama-zk/icicle/wrappers/golang/internal/generator/generator_utils" + generator "github.com/ingonyama-zk/icicle/v2/wrappers/golang/internal/generator/generator_utils" ) var msmTemplates = map[string]string{ diff --git a/wrappers/golang/internal/generator/msm/templates/msm.go.tmpl b/wrappers/golang/internal/generator/msm/templates/msm.go.tmpl index ef3f48e8b..c4e8557dc 100644 --- a/wrappers/golang/internal/generator/msm/templates/msm.go.tmpl +++ b/wrappers/golang/internal/generator/msm/templates/msm.go.tmpl @@ -5,8 +5,8 @@ package {{.PackageName}} import "C" import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" "unsafe" ) diff --git a/wrappers/golang/internal/generator/msm/templates/msm_test.go.tmpl b/wrappers/golang/internal/generator/msm/templates/msm_test.go.tmpl index ec283fb43..70625801d 100644 --- a/wrappers/golang/internal/generator/msm/templates/msm_test.go.tmpl +++ b/wrappers/golang/internal/generator/msm/templates/msm_test.go.tmpl @@ -13,10 +13,10 @@ import ( "github.com/consensys/gnark-crypto/ecc/{{.GnarkImport}}/fp" "github.com/consensys/gnark-crypto/ecc/{{.GnarkImport}}/fr" {{end}} - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - icicle{{capitalize .Curve}} "github.com/ingonyama-zk/icicle/wrappers/golang/{{.BaseImportPath}}" - "github.com/ingonyama-zk/icicle/wrappers/golang/{{.BaseImportPath}}/{{if eq .CurvePrefix "G2"}}g2{{else}}msm{{end}}" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + icicle{{capitalize .Curve}} "github.com/ingonyama-zk/icicle/v2/wrappers/golang/{{.BaseImportPath}}" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/{{.BaseImportPath}}/{{if eq .CurvePrefix "G2"}}g2{{else}}msm{{end}}" ) {{if ne .GnarkImport "" -}} {{$isBW6 := eq .Curve "bw6_761"}}{{$isG2 := eq .CurvePrefix "G2"}}{{$isG1 := ne .CurvePrefix "G2"}}{{if or $isBW6 $isG1}} diff --git a/wrappers/golang/internal/generator/ntt/generate.go b/wrappers/golang/internal/generator/ntt/generate.go index 3f58ad941..d180ae7f6 100644 --- a/wrappers/golang/internal/generator/ntt/generate.go +++ b/wrappers/golang/internal/generator/ntt/generate.go @@ -3,7 +3,7 @@ package ntt import ( "path" - generator "github.com/ingonyama-zk/icicle/wrappers/golang/internal/generator/generator_utils" + generator "github.com/ingonyama-zk/icicle/v2/wrappers/golang/internal/generator/generator_utils" ) var nttTemplates = map[string]string{ diff --git a/wrappers/golang/internal/generator/ntt/templates/ntt.go.tmpl b/wrappers/golang/internal/generator/ntt/templates/ntt.go.tmpl index 93f63be68..eef062816 100644 --- a/wrappers/golang/internal/generator/ntt/templates/ntt.go.tmpl +++ b/wrappers/golang/internal/generator/ntt/templates/ntt.go.tmpl @@ -5,9 +5,9 @@ package {{.PackageName}} import "C" import ( - {{if .WithDomain}}{{.Field}} "github.com/ingonyama-zk/icicle/wrappers/golang/{{.BaseImportPath}}"{{end}} - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + {{if .WithDomain}}{{.Field}} "github.com/ingonyama-zk/icicle/v2/wrappers/golang/{{.BaseImportPath}}"{{end}} + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" ) {{if .WithDomain}} diff --git a/wrappers/golang/internal/generator/ntt/templates/ntt_no_domain_test.go.tmpl b/wrappers/golang/internal/generator/ntt/templates/ntt_no_domain_test.go.tmpl index 1bb61c3aa..42cbaf924 100644 --- a/wrappers/golang/internal/generator/ntt/templates/ntt_no_domain_test.go.tmpl +++ b/wrappers/golang/internal/generator/ntt/templates/ntt_no_domain_test.go.tmpl @@ -6,10 +6,10 @@ import ( {{end -}} "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - {{.FieldNoDomain}} "github.com/ingonyama-zk/icicle/wrappers/golang/{{.BaseImportPathNoDomain}}" - ntt "github.com/ingonyama-zk/icicle/wrappers/golang/{{.BaseImportPath}}/ntt" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + {{.FieldNoDomain}} "github.com/ingonyama-zk/icicle/v2/wrappers/golang/{{.BaseImportPathNoDomain}}" + ntt "github.com/ingonyama-zk/icicle/v2/wrappers/golang/{{.BaseImportPath}}/ntt" ) func TestNttNoDomain(t *testing.T) { diff --git a/wrappers/golang/internal/generator/ntt/templates/ntt_test.go.tmpl b/wrappers/golang/internal/generator/ntt/templates/ntt_test.go.tmpl index 1901d655a..d60ebf9f7 100644 --- a/wrappers/golang/internal/generator/ntt/templates/ntt_test.go.tmpl +++ b/wrappers/golang/internal/generator/ntt/templates/ntt_test.go.tmpl @@ -6,11 +6,11 @@ import ( {{end -}} "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - "github.com/ingonyama-zk/icicle/wrappers/golang/test_helpers" - {{.Field}} "github.com/ingonyama-zk/icicle/wrappers/golang/{{.BaseImportPath}}" - ntt "github.com/ingonyama-zk/icicle/wrappers/golang/{{.BaseImportPath}}/ntt" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/test_helpers" + {{.Field}} "github.com/ingonyama-zk/icicle/v2/wrappers/golang/{{.BaseImportPath}}" + ntt "github.com/ingonyama-zk/icicle/v2/wrappers/golang/{{.BaseImportPath}}/ntt" {{if ne .GnarkImport "" -}} "github.com/consensys/gnark-crypto/ecc/{{.GnarkImport}}/fr" "github.com/consensys/gnark-crypto/ecc/{{.GnarkImport}}/fr/fft" diff --git a/wrappers/golang/internal/generator/polynomial/generate.go b/wrappers/golang/internal/generator/polynomial/generate.go index 40a3300bf..7004c63be 100644 --- a/wrappers/golang/internal/generator/polynomial/generate.go +++ b/wrappers/golang/internal/generator/polynomial/generate.go @@ -3,7 +3,7 @@ package polynomial import ( "path" - generator "github.com/ingonyama-zk/icicle/wrappers/golang/internal/generator/generator_utils" + generator "github.com/ingonyama-zk/icicle/v2/wrappers/golang/internal/generator/generator_utils" ) var polynomialTemplates = map[string]string{ diff --git a/wrappers/golang/internal/generator/polynomial/templates/polynomial.go.tmpl b/wrappers/golang/internal/generator/polynomial/templates/polynomial.go.tmpl index bea3018d4..6a523ac19 100644 --- a/wrappers/golang/internal/generator/polynomial/templates/polynomial.go.tmpl +++ b/wrappers/golang/internal/generator/polynomial/templates/polynomial.go.tmpl @@ -7,8 +7,8 @@ import "C" import ( "unsafe" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - {{.Field}} "github.com/ingonyama-zk/icicle/wrappers/golang/{{.BaseImportPath}}" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + {{.Field}} "github.com/ingonyama-zk/icicle/v2/wrappers/golang/{{.BaseImportPath}}" ) type PolynomialHandle = C.struct_PolynomialInst diff --git a/wrappers/golang/internal/generator/polynomial/templates/polynomial_test.go.tmpl b/wrappers/golang/internal/generator/polynomial/templates/polynomial_test.go.tmpl index 6c01aa32d..b2adefa47 100644 --- a/wrappers/golang/internal/generator/polynomial/templates/polynomial_test.go.tmpl +++ b/wrappers/golang/internal/generator/polynomial/templates/polynomial_test.go.tmpl @@ -3,11 +3,11 @@ package tests import ( "testing" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - {{.Field}} "github.com/ingonyama-zk/icicle/wrappers/golang/{{.BaseImportPath}}" - // "github.com/ingonyama-zk/icicle/wrappers/golang/{{.BaseImportPath}}/ntt" - "github.com/ingonyama-zk/icicle/wrappers/golang/{{.BaseImportPath}}/polynomial" - "github.com/ingonyama-zk/icicle/wrappers/golang/{{.BaseImportPath}}/vecOps" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + {{.Field}} "github.com/ingonyama-zk/icicle/v2/wrappers/golang/{{.BaseImportPath}}" + // "github.com/ingonyama-zk/icicle/v2/wrappers/golang/{{.BaseImportPath}}/ntt" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/{{.BaseImportPath}}/polynomial" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/{{.BaseImportPath}}/vecOps" "github.com/stretchr/testify/assert" ) diff --git a/wrappers/golang/internal/generator/tests/generate.go b/wrappers/golang/internal/generator/tests/generate.go index 47b44a172..7552c3997 100644 --- a/wrappers/golang/internal/generator/tests/generate.go +++ b/wrappers/golang/internal/generator/tests/generate.go @@ -3,7 +3,7 @@ package tests import ( "path" - generator "github.com/ingonyama-zk/icicle/wrappers/golang/internal/generator/generator_utils" + generator "github.com/ingonyama-zk/icicle/v2/wrappers/golang/internal/generator/generator_utils" ) func Generate(baseDir, field, fieldPrefix, gnarkImport string, rou int, supportsNTT, supportsPoly bool) { diff --git a/wrappers/golang/internal/generator/tests/templates/main_test.go.tmpl b/wrappers/golang/internal/generator/tests/templates/main_test.go.tmpl index 17d342da8..1ecfca605 100644 --- a/wrappers/golang/internal/generator/tests/templates/main_test.go.tmpl +++ b/wrappers/golang/internal/generator/tests/templates/main_test.go.tmpl @@ -5,12 +5,12 @@ import ( "testing" {{if or .SupportsNTT .SupportsPoly -}} - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - {{.Field}} "github.com/ingonyama-zk/icicle/wrappers/golang/{{.BaseImportPath}}"{{end}} + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + {{.Field}} "github.com/ingonyama-zk/icicle/v2/wrappers/golang/{{.BaseImportPath}}"{{end}} {{if .SupportsNTT -}} - ntt "github.com/ingonyama-zk/icicle/wrappers/golang/{{.BaseImportPath}}/ntt"{{end}} + ntt "github.com/ingonyama-zk/icicle/v2/wrappers/golang/{{.BaseImportPath}}/ntt"{{end}} {{if .SupportsPoly -}} - poly "github.com/ingonyama-zk/icicle/wrappers/golang/{{.BaseImportPath}}/polynomial"{{end}} + poly "github.com/ingonyama-zk/icicle/v2/wrappers/golang/{{.BaseImportPath}}/polynomial"{{end}} {{if ne .GnarkImport "" -}} "github.com/consensys/gnark-crypto/ecc/{{.GnarkImport}}/fr/fft" diff --git a/wrappers/golang/internal/generator/vecOps/generate.go b/wrappers/golang/internal/generator/vecOps/generate.go index 938b74959..18b6a0d82 100644 --- a/wrappers/golang/internal/generator/vecOps/generate.go +++ b/wrappers/golang/internal/generator/vecOps/generate.go @@ -3,7 +3,7 @@ package vecops import ( "path" - generator "github.com/ingonyama-zk/icicle/wrappers/golang/internal/generator/generator_utils" + generator "github.com/ingonyama-zk/icicle/v2/wrappers/golang/internal/generator/generator_utils" ) var vecOpsTemplates = map[string]string{ diff --git a/wrappers/golang/internal/generator/vecOps/templates/vec_ops.go.tmpl b/wrappers/golang/internal/generator/vecOps/templates/vec_ops.go.tmpl index 90b887adc..4377bc012 100644 --- a/wrappers/golang/internal/generator/vecOps/templates/vec_ops.go.tmpl +++ b/wrappers/golang/internal/generator/vecOps/templates/vec_ops.go.tmpl @@ -5,8 +5,8 @@ package {{.PackageName}} import "C" import ( - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" "unsafe" ) diff --git a/wrappers/golang/internal/generator/vecOps/templates/vec_ops_test.go.tmpl b/wrappers/golang/internal/generator/vecOps/templates/vec_ops_test.go.tmpl index c25376394..817a5dba6 100644 --- a/wrappers/golang/internal/generator/vecOps/templates/vec_ops_test.go.tmpl +++ b/wrappers/golang/internal/generator/vecOps/templates/vec_ops_test.go.tmpl @@ -3,10 +3,10 @@ package tests import ( "testing" - {{.Field}} "github.com/ingonyama-zk/icicle/wrappers/golang/{{.BaseImportPath}}" - "github.com/ingonyama-zk/icicle/wrappers/golang/core" - cr "github.com/ingonyama-zk/icicle/wrappers/golang/cuda_runtime" - "github.com/ingonyama-zk/icicle/wrappers/golang/{{.BaseImportPath}}/vecOps" + {{.Field}} "github.com/ingonyama-zk/icicle/v2/wrappers/golang/{{.BaseImportPath}}" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/core" + cr "github.com/ingonyama-zk/icicle/v2/wrappers/golang/cuda_runtime" + "github.com/ingonyama-zk/icicle/v2/wrappers/golang/{{.BaseImportPath}}/vecOps" "github.com/stretchr/testify/assert" )