refactor(crypto): simplify elliptic curve implementation

This commit is contained in:
Prad Nukala
2025-10-09 15:11:59 -04:00
parent a934caa7d3
commit 7d339ae522
205 changed files with 380 additions and 380 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"github.com/pkg/errors"
"golang.org/x/crypto/sha3"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/crypto/core/curves"
)
// generators contains a list of points to be used as generators for bulletproofs.
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/require"
"golang.org/x/crypto/sha3"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/crypto/core/curves"
)
func TestGeneratorsHappyPath(t *testing.T) {
+1 -1
View File
@@ -9,7 +9,7 @@ package bulletproof
import (
"github.com/pkg/errors"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/crypto/core/curves"
)
// innerProduct takes two lists of scalars (a, b) and performs the dot product returning a single scalar.
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/crypto/core/curves"
)
func TestInnerProductHappyPath(t *testing.T) {
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"github.com/gtank/merlin"
"github.com/pkg/errors"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/crypto/core/curves"
)
// InnerProductProver is the struct used to create InnerProductProofs
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"github.com/gtank/merlin"
"github.com/stretchr/testify/require"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/crypto/core/curves"
)
func TestIPPHappyPath(t *testing.T) {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"github.com/gtank/merlin"
"github.com/pkg/errors"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/crypto/core/curves"
)
// InnerProductVerifier is the struct used to verify inner product proofs
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"github.com/gtank/merlin"
"github.com/stretchr/testify/require"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/crypto/core/curves"
)
func TestIPPVerifyHappyPath(t *testing.T) {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"github.com/gtank/merlin"
"github.com/pkg/errors"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/crypto/core/curves"
)
// BatchProve proves that a list of scalars v are in the range n.
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"github.com/gtank/merlin"
"github.com/stretchr/testify/require"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/crypto/core/curves"
)
func TestRangeBatchProverHappyPath(t *testing.T) {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"github.com/gtank/merlin"
"github.com/pkg/errors"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/crypto/core/curves"
)
// VerifyBatched verifies a given batched range proof.
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"github.com/gtank/merlin"
"github.com/stretchr/testify/require"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/crypto/core/curves"
)
func TestRangeBatchVerifyHappyPath(t *testing.T) {
+1 -1
View File
@@ -14,7 +14,7 @@ import (
"github.com/gtank/merlin"
"github.com/pkg/errors"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/crypto/core/curves"
)
// RangeProver is the struct used to create RangeProofs
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"github.com/gtank/merlin"
"github.com/stretchr/testify/require"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/crypto/core/curves"
)
func TestRangeProverHappyPath(t *testing.T) {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"github.com/gtank/merlin"
"github.com/pkg/errors"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/crypto/core/curves"
)
// RangeVerifier is the struct used to verify RangeProofs
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"github.com/gtank/merlin"
"github.com/stretchr/testify/require"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/crypto/core/curves"
)
func TestRangeVerifyHappyPath(t *testing.T) {