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
+2 -2
View File
@@ -10,8 +10,8 @@ import (
"errors"
"fmt"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/sonr/crypto/signatures/common"
"github.com/sonr-io/crypto/core/curves"
"github.com/sonr-io/crypto/signatures/common"
)
// BlindSignature is a BBS+ blind signature
+3 -3
View File
@@ -14,9 +14,9 @@ import (
"github.com/gtank/merlin"
"golang.org/x/crypto/sha3"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/sonr/crypto/internal"
"github.com/sonr-io/sonr/crypto/signatures/common"
"github.com/sonr-io/crypto/core/curves"
"github.com/sonr-io/crypto/internal"
"github.com/sonr-io/crypto/signatures/common"
)
// BlindSignatureContext contains the data used for computing
@@ -12,7 +12,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/crypto/core/curves"
)
func TestBlindSignatureContext(t *testing.T) {
+1 -1
View File
@@ -9,7 +9,7 @@ package bbs
import (
"errors"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/crypto/core/curves"
)
// MessageGenerators are used to sign a vector of commitments for
+2 -2
View File
@@ -12,8 +12,8 @@ import (
"github.com/gtank/merlin"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/sonr/crypto/signatures/common"
"github.com/sonr-io/crypto/core/curves"
"github.com/sonr-io/crypto/signatures/common"
)
// PokSignature a.k.a. Proof of Knowledge of a Signature
+2 -2
View File
@@ -12,8 +12,8 @@ import (
"github.com/gtank/merlin"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/sonr/crypto/signatures/common"
"github.com/sonr-io/crypto/core/curves"
"github.com/sonr-io/crypto/signatures/common"
)
// PokSignatureProof is the actual proof sent from a prover
+2 -2
View File
@@ -13,8 +13,8 @@ import (
"github.com/gtank/merlin"
"github.com/stretchr/testify/require"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/sonr/crypto/signatures/common"
"github.com/sonr-io/crypto/core/curves"
"github.com/sonr-io/crypto/signatures/common"
)
func TestPokSignatureProofSomeMessagesRevealed(t *testing.T) {
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"errors"
"fmt"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/crypto/core/curves"
)
// PublicKey is a BBS+ verification key
+1 -1
View File
@@ -16,7 +16,7 @@ import (
"golang.org/x/crypto/hkdf"
"golang.org/x/crypto/sha3"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/crypto/core/curves"
)
// SecretKey is a BBS+ signing key
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"errors"
"fmt"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/crypto/core/curves"
)
// Signature is a BBS+ signature
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/crypto/core/curves"
)
func TestSignatureWorks(t *testing.T) {