mirror of
https://github.com/sonr-io/crypto.git
synced 2026-08-02 15:31:38 +00:00
refactor(crypto): simplify elliptic curve implementation
This commit is contained in:
@@ -27,8 +27,8 @@ import (
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/sonr-io/sonr/crypto/core"
|
||||
"github.com/sonr-io/sonr/crypto/internal"
|
||||
"github.com/sonr-io/crypto/core"
|
||||
"github.com/sonr-io/crypto/internal"
|
||||
)
|
||||
|
||||
// PaillierPrimeBits is the number of bits used to generate Paillier Safe Primes.
|
||||
|
||||
+3
-3
@@ -12,9 +12,9 @@ import (
|
||||
"fmt"
|
||||
"math/big"
|
||||
|
||||
crypto "github.com/sonr-io/sonr/crypto/core"
|
||||
"github.com/sonr-io/sonr/crypto/core/curves"
|
||||
"github.com/sonr-io/sonr/crypto/internal"
|
||||
crypto "github.com/sonr-io/crypto/core"
|
||||
"github.com/sonr-io/crypto/core/curves"
|
||||
"github.com/sonr-io/crypto/internal"
|
||||
)
|
||||
|
||||
// [spec] 10.2 and ProvePSF, VerifyPSF fig.15
|
||||
|
||||
@@ -15,9 +15,9 @@ import (
|
||||
"github.com/btcsuite/btcd/btcec/v2"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
crypto "github.com/sonr-io/sonr/crypto/core"
|
||||
curves2 "github.com/sonr-io/sonr/crypto/core/curves"
|
||||
"github.com/sonr-io/sonr/crypto/internal"
|
||||
crypto "github.com/sonr-io/crypto/core"
|
||||
curves2 "github.com/sonr-io/crypto/core/curves"
|
||||
"github.com/sonr-io/crypto/internal"
|
||||
)
|
||||
|
||||
var testPrimes = []*big.Int{
|
||||
|
||||
Reference in New Issue
Block a user