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
+4 -4
View File
@@ -16,10 +16,10 @@ import (
"github.com/pkg/errors"
"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/ot/base/simplest"
"github.com/sonr-io/sonr/crypto/ot/extension/kos"
"github.com/sonr-io/crypto/core/curves"
"github.com/sonr-io/crypto/internal"
"github.com/sonr-io/crypto/ot/base/simplest"
"github.com/sonr-io/crypto/ot/extension/kos"
)
// This implements the Multiplication protocol of DKLs, protocol 5. https://eprint.iacr.org/2018/499.pdf
+4 -4
View File
@@ -12,10 +12,10 @@ import (
"github.com/stretchr/testify/require"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/sonr/crypto/ot/base/simplest"
"github.com/sonr-io/sonr/crypto/ot/extension/kos"
"github.com/sonr-io/sonr/crypto/ot/ottest"
"github.com/sonr-io/crypto/core/curves"
"github.com/sonr-io/crypto/ot/base/simplest"
"github.com/sonr-io/crypto/ot/extension/kos"
"github.com/sonr-io/crypto/ot/ottest"
)
func TestMultiply(t *testing.T) {
+5 -5
View File
@@ -20,11 +20,11 @@ import (
"github.com/pkg/errors"
"golang.org/x/crypto/sha3"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/sonr/crypto/ot/base/simplest"
"github.com/sonr-io/sonr/crypto/ot/extension/kos"
"github.com/sonr-io/sonr/crypto/tecdsa/dklsv1/dkg"
"github.com/sonr-io/sonr/crypto/zkp/schnorr"
"github.com/sonr-io/crypto/core/curves"
"github.com/sonr-io/crypto/ot/base/simplest"
"github.com/sonr-io/crypto/ot/extension/kos"
"github.com/sonr-io/crypto/tecdsa/dklsv1/dkg"
"github.com/sonr-io/crypto/zkp/schnorr"
)
const multiplicationCount = 2
+5 -5
View File
@@ -13,11 +13,11 @@ import (
"github.com/stretchr/testify/require"
"golang.org/x/crypto/sha3"
"github.com/sonr-io/sonr/crypto/core/curves"
"github.com/sonr-io/sonr/crypto/ot/base/simplest"
"github.com/sonr-io/sonr/crypto/ot/extension/kos"
"github.com/sonr-io/sonr/crypto/ot/ottest"
"github.com/sonr-io/sonr/crypto/tecdsa/dklsv1/dkg"
"github.com/sonr-io/crypto/core/curves"
"github.com/sonr-io/crypto/ot/base/simplest"
"github.com/sonr-io/crypto/ot/extension/kos"
"github.com/sonr-io/crypto/ot/ottest"
"github.com/sonr-io/crypto/tecdsa/dklsv1/dkg"
)
func TestSign(t *testing.T) {