Skip to content

Commit

Permalink
go-mod name change
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanMweiss committed Aug 8, 2024
1 parent 2f3d34d commit 06b7987
Show file tree
Hide file tree
Showing 100 changed files with 315 additions and 325 deletions.
2 changes: 1 addition & 1 deletion common/hash_utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"reflect"
"testing"

"github.com/bnb-chain/tss-lib/v2/common"
"github.com/yossigi/tss-lib/v2/common"
)

func TestRejectionSample(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion common/random_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/bnb-chain/tss-lib/v2/common"
"github.com/yossigi/tss-lib/v2/common"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions crypto/ckd/child_key_derivation.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (
"hash"
"math/big"

"github.com/bnb-chain/tss-lib/v2/common"
"github.com/bnb-chain/tss-lib/v2/crypto"
"github.com/btcsuite/btcd/btcec/v2"
"github.com/btcsuite/btcutil/base58"
"github.com/yossigi/tss-lib/v2/common"
"github.com/yossigi/tss-lib/v2/crypto"
"golang.org/x/crypto/ripemd160"
)

Expand Down
1 change: 0 additions & 1 deletion crypto/ckd/child_key_derivation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ package ckd_test
import (
"testing"

. "github.com/bnb-chain/tss-lib/v2/crypto/ckd"
"github.com/btcsuite/btcd/btcec/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion crypto/commitments/commitment.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"io"
"math/big"

"github.com/bnb-chain/tss-lib/v2/common"
"github.com/yossigi/tss-lib/v2/common"
)

const (
Expand Down
2 changes: 0 additions & 2 deletions crypto/commitments/commitment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import (
"testing"

"github.com/stretchr/testify/assert"

. "github.com/bnb-chain/tss-lib/v2/crypto/commitments"
)

func TestCreateVerify(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions crypto/dlnproof/proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
"io"
"math/big"

"github.com/bnb-chain/tss-lib/v2/common"
cmts "github.com/bnb-chain/tss-lib/v2/crypto/commitments"
"github.com/yossigi/tss-lib/v2/common"
cmts "github.com/yossigi/tss-lib/v2/crypto/commitments"
)

const Iterations = 128
Expand Down
2 changes: 1 addition & 1 deletion crypto/ecpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

"github.com/decred/dcrd/dcrec/edwards/v2"

"github.com/bnb-chain/tss-lib/v2/tss"
"github.com/yossigi/tss-lib/v2/tss"
)

// ECPoint convenience helper
Expand Down
3 changes: 1 addition & 2 deletions crypto/ecpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ import (
"github.com/decred/dcrd/dcrec/edwards/v2"
"github.com/stretchr/testify/assert"

. "github.com/bnb-chain/tss-lib/v2/crypto"
"github.com/bnb-chain/tss-lib/v2/tss"
"github.com/yossigi/tss-lib/v2/tss"
)

func TestFlattenECPoints(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion crypto/facproof/proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"io"
"math/big"

"github.com/bnb-chain/tss-lib/v2/common"
"github.com/yossigi/tss-lib/v2/common"
)

const (
Expand Down
7 changes: 3 additions & 4 deletions crypto/facproof/proof_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ import (

"github.com/stretchr/testify/assert"

"github.com/bnb-chain/tss-lib/v2/common"
"github.com/bnb-chain/tss-lib/v2/crypto"
. "github.com/bnb-chain/tss-lib/v2/crypto/facproof"
"github.com/bnb-chain/tss-lib/v2/tss"
"github.com/yossigi/tss-lib/v2/common"
"github.com/yossigi/tss-lib/v2/crypto"
"github.com/yossigi/tss-lib/v2/tss"
)

// Using a modulus length of 2048 is recommended in the GG18 spec
Expand Down
2 changes: 1 addition & 1 deletion crypto/modproof/proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"io"
"math/big"

"github.com/bnb-chain/tss-lib/v2/common"
"github.com/yossigi/tss-lib/v2/common"
)

const (
Expand Down
3 changes: 1 addition & 2 deletions crypto/modproof/proof_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ import (
"testing"
"time"

. "github.com/bnb-chain/tss-lib/v2/crypto/modproof"
"github.com/bnb-chain/tss-lib/v2/ecdsa/keygen"
"github.com/stretchr/testify/assert"
"github.com/yossigi/tss-lib/v2/ecdsa/keygen"
)

var Session = []byte("session")
Expand Down
8 changes: 4 additions & 4 deletions crypto/mta/proofs.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (
"io"
"math/big"

"github.com/bnb-chain/tss-lib/v2/common"
"github.com/bnb-chain/tss-lib/v2/crypto"
"github.com/bnb-chain/tss-lib/v2/crypto/paillier"
"github.com/bnb-chain/tss-lib/v2/tss"
"github.com/yossigi/tss-lib/v2/common"
"github.com/yossigi/tss-lib/v2/crypto"
"github.com/yossigi/tss-lib/v2/crypto/paillier"
"github.com/yossigi/tss-lib/v2/tss"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions crypto/mta/range_proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"io"
"math/big"

"github.com/bnb-chain/tss-lib/v2/common"
"github.com/bnb-chain/tss-lib/v2/crypto/paillier"
"github.com/yossigi/tss-lib/v2/common"
"github.com/yossigi/tss-lib/v2/crypto/paillier"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions crypto/mta/range_proof_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ import (

"github.com/stretchr/testify/assert"

"github.com/bnb-chain/tss-lib/v2/common"
"github.com/bnb-chain/tss-lib/v2/crypto"
"github.com/bnb-chain/tss-lib/v2/crypto/paillier"
"github.com/bnb-chain/tss-lib/v2/tss"
"github.com/yossigi/tss-lib/v2/common"
"github.com/yossigi/tss-lib/v2/crypto"
"github.com/yossigi/tss-lib/v2/crypto/paillier"
"github.com/yossigi/tss-lib/v2/tss"
)

// Using a modulus length of 2048 is recommended in the GG18 spec
Expand Down
6 changes: 3 additions & 3 deletions crypto/mta/share_protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"io"
"math/big"

"github.com/bnb-chain/tss-lib/v2/common"
"github.com/bnb-chain/tss-lib/v2/crypto"
"github.com/bnb-chain/tss-lib/v2/crypto/paillier"
"github.com/yossigi/tss-lib/v2/common"
"github.com/yossigi/tss-lib/v2/crypto"
"github.com/yossigi/tss-lib/v2/crypto/paillier"
)

func AliceInit(
Expand Down
10 changes: 5 additions & 5 deletions crypto/mta/share_protocol_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ import (

"github.com/stretchr/testify/assert"

"github.com/bnb-chain/tss-lib/v2/common"
"github.com/bnb-chain/tss-lib/v2/crypto"
"github.com/bnb-chain/tss-lib/v2/crypto/paillier"
"github.com/bnb-chain/tss-lib/v2/ecdsa/keygen"
"github.com/bnb-chain/tss-lib/v2/tss"
"github.com/yossigi/tss-lib/v2/common"
"github.com/yossigi/tss-lib/v2/crypto"
"github.com/yossigi/tss-lib/v2/crypto/paillier"
"github.com/yossigi/tss-lib/v2/ecdsa/keygen"
"github.com/yossigi/tss-lib/v2/tss"
)

// Using a modulus length of 2048 is recommended in the GG18 spec
Expand Down
4 changes: 2 additions & 2 deletions crypto/paillier/paillier.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (

"github.com/otiai10/primes"

"github.com/bnb-chain/tss-lib/v2/common"
crypto2 "github.com/bnb-chain/tss-lib/v2/crypto"
"github.com/yossigi/tss-lib/v2/common"
crypto2 "github.com/yossigi/tss-lib/v2/crypto"
)

const (
Expand Down
7 changes: 3 additions & 4 deletions crypto/paillier/paillier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ import (

"github.com/stretchr/testify/assert"

"github.com/bnb-chain/tss-lib/v2/common"
"github.com/bnb-chain/tss-lib/v2/crypto"
. "github.com/bnb-chain/tss-lib/v2/crypto/paillier"
"github.com/bnb-chain/tss-lib/v2/tss"
"github.com/yossigi/tss-lib/v2/common"
"github.com/yossigi/tss-lib/v2/crypto"
"github.com/yossigi/tss-lib/v2/tss"
)

// Using a modulus length of 2048 is recommended in the GG18 spec
Expand Down
4 changes: 2 additions & 2 deletions crypto/schnorr/schnorr_proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"io"
"math/big"

"github.com/bnb-chain/tss-lib/v2/common"
"github.com/bnb-chain/tss-lib/v2/crypto"
"github.com/yossigi/tss-lib/v2/common"
"github.com/yossigi/tss-lib/v2/crypto"
)

type (
Expand Down
7 changes: 3 additions & 4 deletions crypto/schnorr/schnorr_proof_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ import (

"github.com/stretchr/testify/assert"

"github.com/bnb-chain/tss-lib/v2/common"
"github.com/bnb-chain/tss-lib/v2/crypto"
. "github.com/bnb-chain/tss-lib/v2/crypto/schnorr"
"github.com/bnb-chain/tss-lib/v2/tss"
"github.com/yossigi/tss-lib/v2/common"
"github.com/yossigi/tss-lib/v2/crypto"
"github.com/yossigi/tss-lib/v2/tss"
)

var Session = []byte("session")
Expand Down
2 changes: 1 addition & 1 deletion crypto/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"io"
"math/big"

"github.com/bnb-chain/tss-lib/v2/common"
"github.com/yossigi/tss-lib/v2/common"
)

func GenerateNTildei(rand io.Reader, safePrimes [2]*big.Int) (NTildei, h1i, h2i *big.Int, err error) {
Expand Down
4 changes: 2 additions & 2 deletions crypto/vss/feldman_vss.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (
"io"
"math/big"

"github.com/bnb-chain/tss-lib/v2/common"
"github.com/bnb-chain/tss-lib/v2/crypto"
"github.com/yossigi/tss-lib/v2/common"
"github.com/yossigi/tss-lib/v2/crypto"
)

type (
Expand Down
5 changes: 2 additions & 3 deletions crypto/vss/feldman_vss_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ import (

"github.com/stretchr/testify/assert"

"github.com/bnb-chain/tss-lib/v2/common"
. "github.com/bnb-chain/tss-lib/v2/crypto/vss"
"github.com/bnb-chain/tss-lib/v2/tss"
"github.com/yossigi/tss-lib/v2/common"
"github.com/yossigi/tss-lib/v2/tss"
)

func TestCheckIndexesDup(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion ecdsa/ethereum/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"errors"
"math/big"

"github.com/bnb-chain/tss-lib/v2/crypto"
"github.com/ethereum/go-ethereum/common"
ethcommon "github.com/ethereum/go-ethereum/common"
ethcrypto "github.com/ethereum/go-ethereum/crypto"
"github.com/yossigi/tss-lib/v2/crypto"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion ecdsa/keygen/dln_verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"errors"
"math/big"

"github.com/bnb-chain/tss-lib/v2/crypto/dlnproof"
"github.com/yossigi/tss-lib/v2/crypto/dlnproof"
)

type DlnProofVerifier struct {
Expand Down
2 changes: 1 addition & 1 deletion ecdsa/keygen/dln_verifier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"runtime"
"testing"

"github.com/bnb-chain/tss-lib/v2/crypto/dlnproof"
"github.com/yossigi/tss-lib/v2/crypto/dlnproof"
)

func BenchmarkDlnProof_Verify(b *testing.B) {
Expand Down
8 changes: 4 additions & 4 deletions ecdsa/keygen/local_party.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"fmt"
"math/big"

"github.com/bnb-chain/tss-lib/v2/common"
cmt "github.com/bnb-chain/tss-lib/v2/crypto/commitments"
"github.com/bnb-chain/tss-lib/v2/crypto/vss"
"github.com/bnb-chain/tss-lib/v2/tss"
"github.com/yossigi/tss-lib/v2/common"
cmt "github.com/yossigi/tss-lib/v2/crypto/commitments"
"github.com/yossigi/tss-lib/v2/crypto/vss"
"github.com/yossigi/tss-lib/v2/tss"
)

// Implements Party
Expand Down
14 changes: 7 additions & 7 deletions ecdsa/keygen/local_party_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ import (
"github.com/ipfs/go-log"
"github.com/stretchr/testify/assert"

"github.com/bnb-chain/tss-lib/v2/common"
"github.com/bnb-chain/tss-lib/v2/crypto"
"github.com/bnb-chain/tss-lib/v2/crypto/dlnproof"
"github.com/bnb-chain/tss-lib/v2/crypto/paillier"
"github.com/bnb-chain/tss-lib/v2/crypto/vss"
"github.com/bnb-chain/tss-lib/v2/test"
"github.com/bnb-chain/tss-lib/v2/tss"
"github.com/yossigi/tss-lib/v2/common"
"github.com/yossigi/tss-lib/v2/crypto"
"github.com/yossigi/tss-lib/v2/crypto/dlnproof"
"github.com/yossigi/tss-lib/v2/crypto/paillier"
"github.com/yossigi/tss-lib/v2/crypto/vss"
"github.com/yossigi/tss-lib/v2/test"
"github.com/yossigi/tss-lib/v2/tss"
)

const (
Expand Down
17 changes: 9 additions & 8 deletions ecdsa/keygen/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@
package keygen

import (
"github.com/bnb-chain/tss-lib/v2/crypto/facproof"
"github.com/bnb-chain/tss-lib/v2/crypto/modproof"
"math/big"

"github.com/bnb-chain/tss-lib/v2/common"
cmt "github.com/bnb-chain/tss-lib/v2/crypto/commitments"
"github.com/bnb-chain/tss-lib/v2/crypto/dlnproof"
"github.com/bnb-chain/tss-lib/v2/crypto/paillier"
"github.com/bnb-chain/tss-lib/v2/crypto/vss"
"github.com/bnb-chain/tss-lib/v2/tss"
"github.com/yossigi/tss-lib/v2/crypto/facproof"
"github.com/yossigi/tss-lib/v2/crypto/modproof"

"github.com/yossigi/tss-lib/v2/common"
cmt "github.com/yossigi/tss-lib/v2/crypto/commitments"
"github.com/yossigi/tss-lib/v2/crypto/dlnproof"
"github.com/yossigi/tss-lib/v2/crypto/paillier"
"github.com/yossigi/tss-lib/v2/crypto/vss"
"github.com/yossigi/tss-lib/v2/tss"
)

// These messages were generated from Protocol Buffers definitions into ecdsa-keygen.pb.go
Expand Down
4 changes: 2 additions & 2 deletions ecdsa/keygen/prepare.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"runtime"
"time"

"github.com/bnb-chain/tss-lib/v2/common"
"github.com/bnb-chain/tss-lib/v2/crypto/paillier"
"github.com/yossigi/tss-lib/v2/common"
"github.com/yossigi/tss-lib/v2/crypto/paillier"
)

const (
Expand Down
Loading

0 comments on commit 06b7987

Please sign in to comment.