From faf18846e7402be4ff69f936c299ff906a60d181 Mon Sep 17 00:00:00 2001 From: ycen <44356973+yycen@users.noreply.github.com> Date: Sat, 26 Aug 2023 13:13:02 +0800 Subject: [PATCH] Update module name to v2 (#262) --- Makefile | 2 +- common/hash_utils_test.go | 2 +- common/random_test.go | 2 +- crypto/ckd/child_key_derivation.go | 4 ++-- crypto/ckd/child_key_derivation_test.go | 2 +- crypto/commitments/commitment.go | 2 +- crypto/commitments/commitment_test.go | 2 +- crypto/dlnproof/proof.go | 4 ++-- crypto/ecpoint.go | 2 +- crypto/ecpoint_test.go | 4 ++-- crypto/facproof/proof.go | 2 +- crypto/facproof/proof_test.go | 8 ++++---- crypto/modproof/proof.go | 2 +- crypto/modproof/proof_test.go | 4 ++-- crypto/mta/proofs.go | 8 ++++---- crypto/mta/range_proof.go | 4 ++-- crypto/mta/range_proof_test.go | 8 ++++---- crypto/mta/share_protocol.go | 6 +++--- crypto/mta/share_protocol_test.go | 10 +++++----- crypto/paillier/paillier.go | 4 ++-- crypto/paillier/paillier_test.go | 8 ++++---- crypto/schnorr/schnorr_proof.go | 4 ++-- crypto/schnorr/schnorr_proof_test.go | 8 ++++---- crypto/utils.go | 2 +- crypto/vss/feldman_vss.go | 7 +++---- crypto/vss/feldman_vss_test.go | 6 +++--- ecdsa/keygen/dln_verifier.go | 2 +- ecdsa/keygen/dln_verifier_test.go | 2 +- ecdsa/keygen/local_party.go | 8 ++++---- ecdsa/keygen/local_party_test.go | 14 +++++++------- ecdsa/keygen/messages.go | 16 ++++++++-------- ecdsa/keygen/prepare.go | 4 ++-- ecdsa/keygen/round_1.go | 12 ++++++------ ecdsa/keygen/round_2.go | 8 ++++---- ecdsa/keygen/round_3.go | 10 +++++----- ecdsa/keygen/round_4.go | 6 +++--- ecdsa/keygen/rounds.go | 4 ++-- ecdsa/keygen/save_data.go | 6 +++--- ecdsa/keygen/test_utils.go | 4 ++-- ecdsa/resharing/local_party.go | 12 ++++++------ ecdsa/resharing/local_party_test.go | 14 +++++++------- ecdsa/resharing/messages.go | 18 +++++++++--------- ecdsa/resharing/round_1_old_step_1.go | 12 ++++++------ ecdsa/resharing/round_2_new_step_1.go | 8 ++++---- ecdsa/resharing/round_3_old_step_2.go | 2 +- ecdsa/resharing/round_4_new_step_2.go | 14 +++++++------- ecdsa/resharing/round_5_new_step_3.go | 4 ++-- ecdsa/resharing/rounds.go | 8 ++++---- ecdsa/signing/finalize.go | 4 ++-- ecdsa/signing/key_derivation_util.go | 8 ++++---- ecdsa/signing/local_party.go | 12 ++++++------ ecdsa/signing/local_party_test.go | 8 ++++---- ecdsa/signing/messages.go | 12 ++++++------ ecdsa/signing/prepare.go | 4 ++-- ecdsa/signing/round_1.go | 12 ++++++------ ecdsa/signing/round_2.go | 4 ++-- ecdsa/signing/round_3.go | 6 +++--- ecdsa/signing/round_4.go | 6 +++--- ecdsa/signing/round_5.go | 8 ++++---- ecdsa/signing/round_6.go | 4 ++-- ecdsa/signing/round_7.go | 8 ++++---- ecdsa/signing/round_8.go | 2 +- ecdsa/signing/round_9.go | 4 ++-- ecdsa/signing/rounds.go | 8 ++++---- eddsa/keygen/local_party.go | 8 ++++---- eddsa/keygen/local_party_test.go | 10 +++++----- eddsa/keygen/messages.go | 12 ++++++------ eddsa/keygen/round_1.go | 10 +++++----- eddsa/keygen/round_2.go | 4 ++-- eddsa/keygen/round_3.go | 10 +++++----- eddsa/keygen/rounds.go | 4 ++-- eddsa/keygen/save_data.go | 4 ++-- eddsa/keygen/test_utils.go | 4 ++-- eddsa/resharing/local_party.go | 12 ++++++------ eddsa/resharing/local_party_test.go | 14 +++++++------- eddsa/resharing/messages.go | 10 +++++----- eddsa/resharing/round_1_old_step_1.go | 12 ++++++------ eddsa/resharing/round_2_new_step_1.go | 2 +- eddsa/resharing/round_3_old_step_2.go | 2 +- eddsa/resharing/round_4_new_step_2.go | 10 +++++----- eddsa/resharing/round_5_new_step_3.go | 2 +- eddsa/resharing/rounds.go | 4 ++-- eddsa/signing/finalize.go | 2 +- eddsa/signing/local_party.go | 10 +++++----- eddsa/signing/local_party_test.go | 8 ++++---- eddsa/signing/messages.go | 10 +++++----- eddsa/signing/prepare.go | 2 +- eddsa/signing/round_1.go | 10 +++++----- eddsa/signing/round_2.go | 4 ++-- eddsa/signing/round_3.go | 8 ++++---- eddsa/signing/rounds.go | 8 ++++---- eddsa/signing/utils.go | 2 +- go.mod | 2 +- test/utils.go | 2 +- tss/party.go | 2 +- tss/party_id.go | 2 +- 96 files changed, 310 insertions(+), 311 deletions(-) diff --git a/Makefile b/Makefile index e385c479..4ffff95f 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -MODULE = github.com/bnb-chain/tss-lib +MODULE = github.com/bnb-chain/tss-lib/v2 PACKAGES = $(shell go list ./... | grep -v '/vendor/') all: protob test diff --git a/common/hash_utils_test.go b/common/hash_utils_test.go index b4abcfd6..c0fdce2c 100644 --- a/common/hash_utils_test.go +++ b/common/hash_utils_test.go @@ -11,7 +11,7 @@ import ( "reflect" "testing" - "github.com/bnb-chain/tss-lib/common" + "github.com/bnb-chain/tss-lib/v2/common" ) func TestRejectionSample(t *testing.T) { diff --git a/common/random_test.go b/common/random_test.go index 4a9eb3c8..b7ca5f95 100644 --- a/common/random_test.go +++ b/common/random_test.go @@ -12,7 +12,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/bnb-chain/tss-lib/common" + "github.com/bnb-chain/tss-lib/v2/common" ) const ( diff --git a/crypto/ckd/child_key_derivation.go b/crypto/ckd/child_key_derivation.go index 6d188d3a..fd608723 100644 --- a/crypto/ckd/child_key_derivation.go +++ b/crypto/ckd/child_key_derivation.go @@ -14,8 +14,8 @@ import ( "hash" "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" "github.com/btcsuite/btcd/btcec" "github.com/btcsuite/btcutil/base58" "golang.org/x/crypto/ripemd160" diff --git a/crypto/ckd/child_key_derivation_test.go b/crypto/ckd/child_key_derivation_test.go index a065b9d9..9f97f78f 100644 --- a/crypto/ckd/child_key_derivation_test.go +++ b/crypto/ckd/child_key_derivation_test.go @@ -9,7 +9,7 @@ package ckd_test import ( "testing" - . "github.com/bnb-chain/tss-lib/crypto/ckd" + . "github.com/bnb-chain/tss-lib/v2/crypto/ckd" "github.com/btcsuite/btcd/btcec" ) diff --git a/crypto/commitments/commitment.go b/crypto/commitments/commitment.go index b58a3ced..d273fe74 100644 --- a/crypto/commitments/commitment.go +++ b/crypto/commitments/commitment.go @@ -12,7 +12,7 @@ package commitments import ( "math/big" - "github.com/bnb-chain/tss-lib/common" + "github.com/bnb-chain/tss-lib/v2/common" ) const ( diff --git a/crypto/commitments/commitment_test.go b/crypto/commitments/commitment_test.go index d3912607..3dedf214 100644 --- a/crypto/commitments/commitment_test.go +++ b/crypto/commitments/commitment_test.go @@ -12,7 +12,7 @@ import ( "github.com/stretchr/testify/assert" - . "github.com/bnb-chain/tss-lib/crypto/commitments" + . "github.com/bnb-chain/tss-lib/v2/crypto/commitments" ) func TestCreateVerify(t *testing.T) { diff --git a/crypto/dlnproof/proof.go b/crypto/dlnproof/proof.go index 772df346..43dd1556 100644 --- a/crypto/dlnproof/proof.go +++ b/crypto/dlnproof/proof.go @@ -15,8 +15,8 @@ import ( "fmt" "math/big" - "github.com/bnb-chain/tss-lib/common" - cmts "github.com/bnb-chain/tss-lib/crypto/commitments" + "github.com/bnb-chain/tss-lib/v2/common" + cmts "github.com/bnb-chain/tss-lib/v2/crypto/commitments" ) const Iterations = 128 diff --git a/crypto/ecpoint.go b/crypto/ecpoint.go index 7c09d926..d0248398 100644 --- a/crypto/ecpoint.go +++ b/crypto/ecpoint.go @@ -18,7 +18,7 @@ import ( "github.com/decred/dcrd/dcrec/edwards/v2" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/tss" ) // ECPoint convenience helper diff --git a/crypto/ecpoint_test.go b/crypto/ecpoint_test.go index b3d518e6..f3cf1af7 100644 --- a/crypto/ecpoint_test.go +++ b/crypto/ecpoint_test.go @@ -17,8 +17,8 @@ import ( "github.com/decred/dcrd/dcrec/edwards/v2" "github.com/stretchr/testify/assert" - . "github.com/bnb-chain/tss-lib/crypto" - "github.com/bnb-chain/tss-lib/tss" + . "github.com/bnb-chain/tss-lib/v2/crypto" + "github.com/bnb-chain/tss-lib/v2/tss" ) func TestFlattenECPoints(t *testing.T) { diff --git a/crypto/facproof/proof.go b/crypto/facproof/proof.go index 6458ff93..32ac00cf 100644 --- a/crypto/facproof/proof.go +++ b/crypto/facproof/proof.go @@ -12,7 +12,7 @@ import ( "fmt" "math/big" - "github.com/bnb-chain/tss-lib/common" + "github.com/bnb-chain/tss-lib/v2/common" ) const ( diff --git a/crypto/facproof/proof_test.go b/crypto/facproof/proof_test.go index ef73ea74..7676f19f 100644 --- a/crypto/facproof/proof_test.go +++ b/crypto/facproof/proof_test.go @@ -12,10 +12,10 @@ import ( "github.com/stretchr/testify/assert" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - . "github.com/bnb-chain/tss-lib/crypto/facproof" - "github.com/bnb-chain/tss-lib/tss" + "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" ) // Using a modulus length of 2048 is recommended in the GG18 spec diff --git a/crypto/modproof/proof.go b/crypto/modproof/proof.go index bcbb9ee0..3277db12 100644 --- a/crypto/modproof/proof.go +++ b/crypto/modproof/proof.go @@ -10,7 +10,7 @@ import ( "fmt" "math/big" - "github.com/bnb-chain/tss-lib/common" + "github.com/bnb-chain/tss-lib/v2/common" ) const ( diff --git a/crypto/modproof/proof_test.go b/crypto/modproof/proof_test.go index d5380563..5a6dc419 100644 --- a/crypto/modproof/proof_test.go +++ b/crypto/modproof/proof_test.go @@ -10,8 +10,8 @@ import ( "testing" "time" - . "github.com/bnb-chain/tss-lib/crypto/modproof" - "github.com/bnb-chain/tss-lib/ecdsa/keygen" + . "github.com/bnb-chain/tss-lib/v2/crypto/modproof" + "github.com/bnb-chain/tss-lib/v2/ecdsa/keygen" "github.com/stretchr/testify/assert" ) diff --git a/crypto/mta/proofs.go b/crypto/mta/proofs.go index 55142c7a..2bd61174 100644 --- a/crypto/mta/proofs.go +++ b/crypto/mta/proofs.go @@ -12,10 +12,10 @@ import ( "fmt" "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - "github.com/bnb-chain/tss-lib/crypto/paillier" - "github.com/bnb-chain/tss-lib/tss" + "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" ) const ( diff --git a/crypto/mta/range_proof.go b/crypto/mta/range_proof.go index 37ed1a4d..11bb999f 100644 --- a/crypto/mta/range_proof.go +++ b/crypto/mta/range_proof.go @@ -12,8 +12,8 @@ import ( "fmt" "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto/paillier" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto/paillier" ) const ( diff --git a/crypto/mta/range_proof_test.go b/crypto/mta/range_proof_test.go index a20dd701..318335f1 100644 --- a/crypto/mta/range_proof_test.go +++ b/crypto/mta/range_proof_test.go @@ -15,10 +15,10 @@ import ( "github.com/stretchr/testify/assert" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - "github.com/bnb-chain/tss-lib/crypto/paillier" - "github.com/bnb-chain/tss-lib/tss" + "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" ) // Using a modulus length of 2048 is recommended in the GG18 spec diff --git a/crypto/mta/share_protocol.go b/crypto/mta/share_protocol.go index 40e1b924..94c1c877 100644 --- a/crypto/mta/share_protocol.go +++ b/crypto/mta/share_protocol.go @@ -11,9 +11,9 @@ import ( "errors" "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - "github.com/bnb-chain/tss-lib/crypto/paillier" + "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" ) func AliceInit( diff --git a/crypto/mta/share_protocol_test.go b/crypto/mta/share_protocol_test.go index 81ad3c93..aed84f39 100644 --- a/crypto/mta/share_protocol_test.go +++ b/crypto/mta/share_protocol_test.go @@ -14,11 +14,11 @@ import ( "github.com/stretchr/testify/assert" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - "github.com/bnb-chain/tss-lib/crypto/paillier" - "github.com/bnb-chain/tss-lib/ecdsa/keygen" - "github.com/bnb-chain/tss-lib/tss" + "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" ) // Using a modulus length of 2048 is recommended in the GG18 spec diff --git a/crypto/paillier/paillier.go b/crypto/paillier/paillier.go index 14ad6412..1b249b12 100644 --- a/crypto/paillier/paillier.go +++ b/crypto/paillier/paillier.go @@ -26,8 +26,8 @@ import ( "github.com/otiai10/primes" - "github.com/bnb-chain/tss-lib/common" - crypto2 "github.com/bnb-chain/tss-lib/crypto" + "github.com/bnb-chain/tss-lib/v2/common" + crypto2 "github.com/bnb-chain/tss-lib/v2/crypto" ) const ( diff --git a/crypto/paillier/paillier_test.go b/crypto/paillier/paillier_test.go index 6d9cc53b..a9ebff73 100644 --- a/crypto/paillier/paillier_test.go +++ b/crypto/paillier/paillier_test.go @@ -14,10 +14,10 @@ import ( "github.com/stretchr/testify/assert" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - . "github.com/bnb-chain/tss-lib/crypto/paillier" - "github.com/bnb-chain/tss-lib/tss" + "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" ) // Using a modulus length of 2048 is recommended in the GG18 spec diff --git a/crypto/schnorr/schnorr_proof.go b/crypto/schnorr/schnorr_proof.go index bf12d44e..3a4b6aa8 100644 --- a/crypto/schnorr/schnorr_proof.go +++ b/crypto/schnorr/schnorr_proof.go @@ -10,8 +10,8 @@ import ( "errors" "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" ) type ( diff --git a/crypto/schnorr/schnorr_proof_test.go b/crypto/schnorr/schnorr_proof_test.go index 91175024..fbf633ea 100644 --- a/crypto/schnorr/schnorr_proof_test.go +++ b/crypto/schnorr/schnorr_proof_test.go @@ -11,10 +11,10 @@ import ( "github.com/stretchr/testify/assert" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - . "github.com/bnb-chain/tss-lib/crypto/schnorr" - "github.com/bnb-chain/tss-lib/tss" + "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" ) var ( diff --git a/crypto/utils.go b/crypto/utils.go index 54eddbde..5448113a 100644 --- a/crypto/utils.go +++ b/crypto/utils.go @@ -10,7 +10,7 @@ import ( "fmt" "math/big" - "github.com/bnb-chain/tss-lib/common" + "github.com/bnb-chain/tss-lib/v2/common" ) func GenerateNTildei(safePrimes [2]*big.Int) (NTildei, h1i, h2i *big.Int, err error) { diff --git a/crypto/vss/feldman_vss.go b/crypto/vss/feldman_vss.go index 5904dc2d..21c49714 100644 --- a/crypto/vss/feldman_vss.go +++ b/crypto/vss/feldman_vss.go @@ -16,8 +16,8 @@ import ( "fmt" "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" ) type ( @@ -58,7 +58,6 @@ func CheckIndexes(ec elliptic.Curve, indexes []*big.Int) ([]*big.Int, error) { // Returns a new array of secret shares created by Shamir's Secret Sharing Algorithm, // requiring a minimum number of shares to recreate, of length shares, from the input secret -// func Create(ec elliptic.Curve, threshold int, secret *big.Int, indexes []*big.Int) (Vs, Shares, error) { if secret == nil || indexes == nil { return nil, nil, fmt.Errorf("vss secret or indexes == nil: %v %v", secret, indexes) @@ -158,8 +157,8 @@ func samplePolynomial(ec elliptic.Curve, threshold int, secret *big.Int) []*big. // Evauluates a polynomial with coefficients such that: // evaluatePolynomial([a, b, c, d], x): -// returns a + bx + cx^2 + dx^3 // +// returns a + bx + cx^2 + dx^3 func evaluatePolynomial(ec elliptic.Curve, threshold int, v []*big.Int, id *big.Int) (result *big.Int) { q := ec.Params().N modQ := common.ModInt(q) diff --git a/crypto/vss/feldman_vss_test.go b/crypto/vss/feldman_vss_test.go index d6c0284d..ef55f685 100644 --- a/crypto/vss/feldman_vss_test.go +++ b/crypto/vss/feldman_vss_test.go @@ -12,9 +12,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/bnb-chain/tss-lib/common" - . "github.com/bnb-chain/tss-lib/crypto/vss" - "github.com/bnb-chain/tss-lib/tss" + "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" ) func TestCheckIndexesDup(t *testing.T) { diff --git a/ecdsa/keygen/dln_verifier.go b/ecdsa/keygen/dln_verifier.go index cc6be8bf..c6ec68d7 100644 --- a/ecdsa/keygen/dln_verifier.go +++ b/ecdsa/keygen/dln_verifier.go @@ -10,7 +10,7 @@ import ( "errors" "math/big" - "github.com/bnb-chain/tss-lib/crypto/dlnproof" + "github.com/bnb-chain/tss-lib/v2/crypto/dlnproof" ) type DlnProofVerifier struct { diff --git a/ecdsa/keygen/dln_verifier_test.go b/ecdsa/keygen/dln_verifier_test.go index 738bbf6b..89d76bba 100644 --- a/ecdsa/keygen/dln_verifier_test.go +++ b/ecdsa/keygen/dln_verifier_test.go @@ -11,7 +11,7 @@ import ( "runtime" "testing" - "github.com/bnb-chain/tss-lib/crypto/dlnproof" + "github.com/bnb-chain/tss-lib/v2/crypto/dlnproof" ) func BenchmarkDlnProof_Verify(b *testing.B) { diff --git a/ecdsa/keygen/local_party.go b/ecdsa/keygen/local_party.go index 5513aba9..05be2554 100644 --- a/ecdsa/keygen/local_party.go +++ b/ecdsa/keygen/local_party.go @@ -11,10 +11,10 @@ import ( "fmt" "math/big" - "github.com/bnb-chain/tss-lib/common" - cmt "github.com/bnb-chain/tss-lib/crypto/commitments" - "github.com/bnb-chain/tss-lib/crypto/vss" - "github.com/bnb-chain/tss-lib/tss" + "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" ) // Implements Party diff --git a/ecdsa/keygen/local_party_test.go b/ecdsa/keygen/local_party_test.go index c392f549..66499479 100644 --- a/ecdsa/keygen/local_party_test.go +++ b/ecdsa/keygen/local_party_test.go @@ -20,13 +20,13 @@ import ( "github.com/ipfs/go-log" "github.com/stretchr/testify/assert" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - "github.com/bnb-chain/tss-lib/crypto/dlnproof" - "github.com/bnb-chain/tss-lib/crypto/paillier" - "github.com/bnb-chain/tss-lib/crypto/vss" - "github.com/bnb-chain/tss-lib/test" - "github.com/bnb-chain/tss-lib/tss" + "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" ) const ( diff --git a/ecdsa/keygen/messages.go b/ecdsa/keygen/messages.go index 9be7d852..b4d6062c 100644 --- a/ecdsa/keygen/messages.go +++ b/ecdsa/keygen/messages.go @@ -7,16 +7,16 @@ package keygen import ( - "github.com/bnb-chain/tss-lib/crypto/facproof" - "github.com/bnb-chain/tss-lib/crypto/modproof" + "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/common" - cmt "github.com/bnb-chain/tss-lib/crypto/commitments" - "github.com/bnb-chain/tss-lib/crypto/dlnproof" - "github.com/bnb-chain/tss-lib/crypto/paillier" - "github.com/bnb-chain/tss-lib/crypto/vss" - "github.com/bnb-chain/tss-lib/tss" + "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" ) // These messages were generated from Protocol Buffers definitions into ecdsa-keygen.pb.go diff --git a/ecdsa/keygen/prepare.go b/ecdsa/keygen/prepare.go index 775ef53e..cfbc127f 100644 --- a/ecdsa/keygen/prepare.go +++ b/ecdsa/keygen/prepare.go @@ -13,8 +13,8 @@ import ( "runtime" "time" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto/paillier" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto/paillier" ) const ( diff --git a/ecdsa/keygen/round_1.go b/ecdsa/keygen/round_1.go index 96104475..306ca2be 100644 --- a/ecdsa/keygen/round_1.go +++ b/ecdsa/keygen/round_1.go @@ -10,12 +10,12 @@ import ( "errors" "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - cmts "github.com/bnb-chain/tss-lib/crypto/commitments" - "github.com/bnb-chain/tss-lib/crypto/dlnproof" - "github.com/bnb-chain/tss-lib/crypto/vss" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" + cmts "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/vss" + "github.com/bnb-chain/tss-lib/v2/tss" ) var ( diff --git a/ecdsa/keygen/round_2.go b/ecdsa/keygen/round_2.go index 364235e9..3eac8eba 100644 --- a/ecdsa/keygen/round_2.go +++ b/ecdsa/keygen/round_2.go @@ -12,11 +12,11 @@ import ( "math/big" "sync" - "github.com/bnb-chain/tss-lib/crypto/facproof" - "github.com/bnb-chain/tss-lib/crypto/modproof" + "github.com/bnb-chain/tss-lib/v2/crypto/facproof" + "github.com/bnb-chain/tss-lib/v2/crypto/modproof" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/tss" ) const ( diff --git a/ecdsa/keygen/round_3.go b/ecdsa/keygen/round_3.go index 205569ed..b704358a 100644 --- a/ecdsa/keygen/round_3.go +++ b/ecdsa/keygen/round_3.go @@ -13,11 +13,11 @@ import ( "github.com/hashicorp/go-multierror" errors2 "github.com/pkg/errors" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - "github.com/bnb-chain/tss-lib/crypto/commitments" - "github.com/bnb-chain/tss-lib/crypto/vss" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" + "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" ) func (round *round3) Start() *tss.Error { diff --git a/ecdsa/keygen/round_4.go b/ecdsa/keygen/round_4.go index 18603904..23abc2dc 100644 --- a/ecdsa/keygen/round_4.go +++ b/ecdsa/keygen/round_4.go @@ -9,9 +9,9 @@ package keygen import ( "errors" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto/paillier" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto/paillier" + "github.com/bnb-chain/tss-lib/v2/tss" ) func (round *round4) Start() *tss.Error { diff --git a/ecdsa/keygen/rounds.go b/ecdsa/keygen/rounds.go index 5bce6d10..48f82691 100644 --- a/ecdsa/keygen/rounds.go +++ b/ecdsa/keygen/rounds.go @@ -9,8 +9,8 @@ package keygen import ( "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/tss" ) const ( diff --git a/ecdsa/keygen/save_data.go b/ecdsa/keygen/save_data.go index 9218d9b6..ec43d436 100644 --- a/ecdsa/keygen/save_data.go +++ b/ecdsa/keygen/save_data.go @@ -11,9 +11,9 @@ import ( "errors" "math/big" - "github.com/bnb-chain/tss-lib/crypto" - "github.com/bnb-chain/tss-lib/crypto/paillier" - "github.com/bnb-chain/tss-lib/tss" + "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" ) type ( diff --git a/ecdsa/keygen/test_utils.go b/ecdsa/keygen/test_utils.go index 85aa117c..0169865e 100644 --- a/ecdsa/keygen/test_utils.go +++ b/ecdsa/keygen/test_utils.go @@ -18,8 +18,8 @@ import ( "github.com/pkg/errors" - "github.com/bnb-chain/tss-lib/test" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/test" + "github.com/bnb-chain/tss-lib/v2/tss" ) const ( diff --git a/ecdsa/resharing/local_party.go b/ecdsa/resharing/local_party.go index a8efdbb0..00c403e6 100644 --- a/ecdsa/resharing/local_party.go +++ b/ecdsa/resharing/local_party.go @@ -10,12 +10,12 @@ import ( "fmt" "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - cmt "github.com/bnb-chain/tss-lib/crypto/commitments" - "github.com/bnb-chain/tss-lib/crypto/vss" - "github.com/bnb-chain/tss-lib/ecdsa/keygen" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" + 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/ecdsa/keygen" + "github.com/bnb-chain/tss-lib/v2/tss" ) // Implements Party diff --git a/ecdsa/resharing/local_party_test.go b/ecdsa/resharing/local_party_test.go index 278de530..91861059 100644 --- a/ecdsa/resharing/local_party_test.go +++ b/ecdsa/resharing/local_party_test.go @@ -17,13 +17,13 @@ import ( "github.com/ipfs/go-log" "github.com/stretchr/testify/assert" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - "github.com/bnb-chain/tss-lib/ecdsa/keygen" - . "github.com/bnb-chain/tss-lib/ecdsa/resharing" - "github.com/bnb-chain/tss-lib/ecdsa/signing" - "github.com/bnb-chain/tss-lib/test" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" + "github.com/bnb-chain/tss-lib/v2/ecdsa/keygen" + . "github.com/bnb-chain/tss-lib/v2/ecdsa/resharing" + "github.com/bnb-chain/tss-lib/v2/ecdsa/signing" + "github.com/bnb-chain/tss-lib/v2/test" + "github.com/bnb-chain/tss-lib/v2/tss" ) const ( diff --git a/ecdsa/resharing/messages.go b/ecdsa/resharing/messages.go index b655b309..e9f3b3cb 100644 --- a/ecdsa/resharing/messages.go +++ b/ecdsa/resharing/messages.go @@ -10,15 +10,15 @@ import ( "crypto/elliptic" "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - cmt "github.com/bnb-chain/tss-lib/crypto/commitments" - "github.com/bnb-chain/tss-lib/crypto/dlnproof" - "github.com/bnb-chain/tss-lib/crypto/facproof" - "github.com/bnb-chain/tss-lib/crypto/modproof" - "github.com/bnb-chain/tss-lib/crypto/paillier" - "github.com/bnb-chain/tss-lib/crypto/vss" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" + 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/facproof" + "github.com/bnb-chain/tss-lib/v2/crypto/modproof" + "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" ) // These messages were generated from Protocol Buffers definitions into ecdsa-resharing.pb.go diff --git a/ecdsa/resharing/round_1_old_step_1.go b/ecdsa/resharing/round_1_old_step_1.go index c7d71ea9..8e1ce9c4 100644 --- a/ecdsa/resharing/round_1_old_step_1.go +++ b/ecdsa/resharing/round_1_old_step_1.go @@ -11,12 +11,12 @@ import ( "fmt" "math/big" - "github.com/bnb-chain/tss-lib/crypto" - "github.com/bnb-chain/tss-lib/crypto/commitments" - "github.com/bnb-chain/tss-lib/crypto/vss" - "github.com/bnb-chain/tss-lib/ecdsa/keygen" - "github.com/bnb-chain/tss-lib/ecdsa/signing" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/crypto" + "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/ecdsa/keygen" + "github.com/bnb-chain/tss-lib/v2/ecdsa/signing" + "github.com/bnb-chain/tss-lib/v2/tss" ) // round 1 represents round 1 of the keygen part of the GG18 ECDSA TSS spec (Gennaro, Goldfeder; 2018) diff --git a/ecdsa/resharing/round_2_new_step_1.go b/ecdsa/resharing/round_2_new_step_1.go index adebda90..8a47283a 100644 --- a/ecdsa/resharing/round_2_new_step_1.go +++ b/ecdsa/resharing/round_2_new_step_1.go @@ -11,11 +11,11 @@ import ( "errors" "math/big" - "github.com/bnb-chain/tss-lib/crypto/modproof" + "github.com/bnb-chain/tss-lib/v2/crypto/modproof" - "github.com/bnb-chain/tss-lib/crypto/dlnproof" - "github.com/bnb-chain/tss-lib/ecdsa/keygen" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/crypto/dlnproof" + "github.com/bnb-chain/tss-lib/v2/ecdsa/keygen" + "github.com/bnb-chain/tss-lib/v2/tss" ) var ( diff --git a/ecdsa/resharing/round_3_old_step_2.go b/ecdsa/resharing/round_3_old_step_2.go index fcaf755a..f222290e 100644 --- a/ecdsa/resharing/round_3_old_step_2.go +++ b/ecdsa/resharing/round_3_old_step_2.go @@ -9,7 +9,7 @@ package resharing import ( "errors" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/tss" ) func (round *round3) Start() *tss.Error { diff --git a/ecdsa/resharing/round_4_new_step_2.go b/ecdsa/resharing/round_4_new_step_2.go index 55eeb3a1..f3115c59 100644 --- a/ecdsa/resharing/round_4_new_step_2.go +++ b/ecdsa/resharing/round_4_new_step_2.go @@ -12,16 +12,16 @@ import ( "math/big" "sync" - "github.com/bnb-chain/tss-lib/crypto/facproof" + "github.com/bnb-chain/tss-lib/v2/crypto/facproof" errors2 "github.com/pkg/errors" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - "github.com/bnb-chain/tss-lib/crypto/commitments" - "github.com/bnb-chain/tss-lib/crypto/vss" - "github.com/bnb-chain/tss-lib/ecdsa/keygen" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" + "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/ecdsa/keygen" + "github.com/bnb-chain/tss-lib/v2/tss" ) func (round *round4) Start() *tss.Error { diff --git a/ecdsa/resharing/round_5_new_step_3.go b/ecdsa/resharing/round_5_new_step_3.go index b821f485..6c149c02 100644 --- a/ecdsa/resharing/round_5_new_step_3.go +++ b/ecdsa/resharing/round_5_new_step_3.go @@ -10,8 +10,8 @@ import ( "errors" "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/tss" ) func (round *round5) Start() *tss.Error { diff --git a/ecdsa/resharing/rounds.go b/ecdsa/resharing/rounds.go index 8dc78a5b..d2c24e81 100644 --- a/ecdsa/resharing/rounds.go +++ b/ecdsa/resharing/rounds.go @@ -10,10 +10,10 @@ import ( "errors" "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - "github.com/bnb-chain/tss-lib/ecdsa/keygen" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" + "github.com/bnb-chain/tss-lib/v2/ecdsa/keygen" + "github.com/bnb-chain/tss-lib/v2/tss" ) const ( diff --git a/ecdsa/signing/finalize.go b/ecdsa/signing/finalize.go index b2fc670f..302ee321 100644 --- a/ecdsa/signing/finalize.go +++ b/ecdsa/signing/finalize.go @@ -12,8 +12,8 @@ import ( "fmt" "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/tss" ) func (round *finalization) Start() *tss.Error { diff --git a/ecdsa/signing/key_derivation_util.go b/ecdsa/signing/key_derivation_util.go index e5826a71..668d9d4f 100644 --- a/ecdsa/signing/key_derivation_util.go +++ b/ecdsa/signing/key_derivation_util.go @@ -7,10 +7,10 @@ import ( "crypto/elliptic" "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - "github.com/bnb-chain/tss-lib/crypto/ckd" - "github.com/bnb-chain/tss-lib/ecdsa/keygen" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" + "github.com/bnb-chain/tss-lib/v2/crypto/ckd" + "github.com/bnb-chain/tss-lib/v2/ecdsa/keygen" "github.com/btcsuite/btcd/chaincfg" ) diff --git a/ecdsa/signing/local_party.go b/ecdsa/signing/local_party.go index c6575179..86172e5f 100644 --- a/ecdsa/signing/local_party.go +++ b/ecdsa/signing/local_party.go @@ -11,12 +11,12 @@ import ( "fmt" "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - cmt "github.com/bnb-chain/tss-lib/crypto/commitments" - "github.com/bnb-chain/tss-lib/crypto/mta" - "github.com/bnb-chain/tss-lib/ecdsa/keygen" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" + cmt "github.com/bnb-chain/tss-lib/v2/crypto/commitments" + "github.com/bnb-chain/tss-lib/v2/crypto/mta" + "github.com/bnb-chain/tss-lib/v2/ecdsa/keygen" + "github.com/bnb-chain/tss-lib/v2/tss" ) // Implements Party diff --git a/ecdsa/signing/local_party_test.go b/ecdsa/signing/local_party_test.go index 51b83873..303c54f5 100644 --- a/ecdsa/signing/local_party_test.go +++ b/ecdsa/signing/local_party_test.go @@ -18,10 +18,10 @@ import ( "github.com/ipfs/go-log" "github.com/stretchr/testify/assert" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/ecdsa/keygen" - "github.com/bnb-chain/tss-lib/test" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/ecdsa/keygen" + "github.com/bnb-chain/tss-lib/v2/test" + "github.com/bnb-chain/tss-lib/v2/tss" ) const ( diff --git a/ecdsa/signing/messages.go b/ecdsa/signing/messages.go index fbb2a621..8d3d853a 100644 --- a/ecdsa/signing/messages.go +++ b/ecdsa/signing/messages.go @@ -10,12 +10,12 @@ import ( "crypto/elliptic" "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - cmt "github.com/bnb-chain/tss-lib/crypto/commitments" - "github.com/bnb-chain/tss-lib/crypto/mta" - "github.com/bnb-chain/tss-lib/crypto/schnorr" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" + cmt "github.com/bnb-chain/tss-lib/v2/crypto/commitments" + "github.com/bnb-chain/tss-lib/v2/crypto/mta" + "github.com/bnb-chain/tss-lib/v2/crypto/schnorr" + "github.com/bnb-chain/tss-lib/v2/tss" ) // These messages were generated from Protocol Buffers definitions into ecdsa-signing.pb.go diff --git a/ecdsa/signing/prepare.go b/ecdsa/signing/prepare.go index 60f107bf..ae6d186c 100644 --- a/ecdsa/signing/prepare.go +++ b/ecdsa/signing/prepare.go @@ -11,8 +11,8 @@ import ( "fmt" "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" ) // PrepareForSigning(), GG18Spec (11) Fig. 14 diff --git a/ecdsa/signing/round_1.go b/ecdsa/signing/round_1.go index e1b8d0e3..23ed876e 100644 --- a/ecdsa/signing/round_1.go +++ b/ecdsa/signing/round_1.go @@ -11,12 +11,12 @@ import ( "fmt" "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - "github.com/bnb-chain/tss-lib/crypto/commitments" - "github.com/bnb-chain/tss-lib/crypto/mta" - "github.com/bnb-chain/tss-lib/ecdsa/keygen" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" + "github.com/bnb-chain/tss-lib/v2/crypto/commitments" + "github.com/bnb-chain/tss-lib/v2/crypto/mta" + "github.com/bnb-chain/tss-lib/v2/ecdsa/keygen" + "github.com/bnb-chain/tss-lib/v2/tss" ) var ( diff --git a/ecdsa/signing/round_2.go b/ecdsa/signing/round_2.go index 489d22bd..0568f3dd 100644 --- a/ecdsa/signing/round_2.go +++ b/ecdsa/signing/round_2.go @@ -13,8 +13,8 @@ import ( errorspkg "github.com/pkg/errors" - "github.com/bnb-chain/tss-lib/crypto/mta" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/crypto/mta" + "github.com/bnb-chain/tss-lib/v2/tss" ) func (round *round2) Start() *tss.Error { diff --git a/ecdsa/signing/round_3.go b/ecdsa/signing/round_3.go index 05cc9588..38ae9b00 100644 --- a/ecdsa/signing/round_3.go +++ b/ecdsa/signing/round_3.go @@ -13,9 +13,9 @@ import ( errorspkg "github.com/pkg/errors" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto/mta" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto/mta" + "github.com/bnb-chain/tss-lib/v2/tss" ) func (round *round3) Start() *tss.Error { diff --git a/ecdsa/signing/round_4.go b/ecdsa/signing/round_4.go index afc4b59e..e7183690 100644 --- a/ecdsa/signing/round_4.go +++ b/ecdsa/signing/round_4.go @@ -12,9 +12,9 @@ import ( errors2 "github.com/pkg/errors" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto/schnorr" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto/schnorr" + "github.com/bnb-chain/tss-lib/v2/tss" ) func (round *round4) Start() *tss.Error { diff --git a/ecdsa/signing/round_5.go b/ecdsa/signing/round_5.go index 0162a778..3cbe19c5 100644 --- a/ecdsa/signing/round_5.go +++ b/ecdsa/signing/round_5.go @@ -12,10 +12,10 @@ import ( errors2 "github.com/pkg/errors" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - "github.com/bnb-chain/tss-lib/crypto/commitments" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" + "github.com/bnb-chain/tss-lib/v2/crypto/commitments" + "github.com/bnb-chain/tss-lib/v2/tss" ) func (round *round5) Start() *tss.Error { diff --git a/ecdsa/signing/round_6.go b/ecdsa/signing/round_6.go index b104fdd5..278d19be 100644 --- a/ecdsa/signing/round_6.go +++ b/ecdsa/signing/round_6.go @@ -12,8 +12,8 @@ import ( errors2 "github.com/pkg/errors" - "github.com/bnb-chain/tss-lib/crypto/schnorr" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/crypto/schnorr" + "github.com/bnb-chain/tss-lib/v2/tss" ) func (round *round6) Start() *tss.Error { diff --git a/ecdsa/signing/round_7.go b/ecdsa/signing/round_7.go index d2314ca1..a50be65d 100644 --- a/ecdsa/signing/round_7.go +++ b/ecdsa/signing/round_7.go @@ -12,10 +12,10 @@ import ( errors2 "github.com/pkg/errors" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - "github.com/bnb-chain/tss-lib/crypto/commitments" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" + "github.com/bnb-chain/tss-lib/v2/crypto/commitments" + "github.com/bnb-chain/tss-lib/v2/tss" ) func (round *round7) Start() *tss.Error { diff --git a/ecdsa/signing/round_8.go b/ecdsa/signing/round_8.go index 361a490b..f8b8e294 100644 --- a/ecdsa/signing/round_8.go +++ b/ecdsa/signing/round_8.go @@ -9,7 +9,7 @@ package signing import ( "errors" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/tss" ) func (round *round8) Start() *tss.Error { diff --git a/ecdsa/signing/round_9.go b/ecdsa/signing/round_9.go index dcc7c083..3f74c21b 100644 --- a/ecdsa/signing/round_9.go +++ b/ecdsa/signing/round_9.go @@ -9,8 +9,8 @@ package signing import ( "errors" - "github.com/bnb-chain/tss-lib/crypto/commitments" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/crypto/commitments" + "github.com/bnb-chain/tss-lib/v2/tss" ) func (round *round9) Start() *tss.Error { diff --git a/ecdsa/signing/rounds.go b/ecdsa/signing/rounds.go index 5a281b04..10d3eeb9 100644 --- a/ecdsa/signing/rounds.go +++ b/ecdsa/signing/rounds.go @@ -10,10 +10,10 @@ import ( "errors" "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - "github.com/bnb-chain/tss-lib/ecdsa/keygen" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" + "github.com/bnb-chain/tss-lib/v2/ecdsa/keygen" + "github.com/bnb-chain/tss-lib/v2/tss" ) const ( diff --git a/eddsa/keygen/local_party.go b/eddsa/keygen/local_party.go index 39900f2e..ebff0292 100644 --- a/eddsa/keygen/local_party.go +++ b/eddsa/keygen/local_party.go @@ -11,10 +11,10 @@ import ( "fmt" "math/big" - "github.com/bnb-chain/tss-lib/common" - cmt "github.com/bnb-chain/tss-lib/crypto/commitments" - "github.com/bnb-chain/tss-lib/crypto/vss" - "github.com/bnb-chain/tss-lib/tss" + "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" ) // Implements Party diff --git a/eddsa/keygen/local_party_test.go b/eddsa/keygen/local_party_test.go index fcfae33e..cad65cb3 100644 --- a/eddsa/keygen/local_party_test.go +++ b/eddsa/keygen/local_party_test.go @@ -19,11 +19,11 @@ import ( "github.com/ipfs/go-log" "github.com/stretchr/testify/assert" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - "github.com/bnb-chain/tss-lib/crypto/vss" - "github.com/bnb-chain/tss-lib/test" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" + "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" ) const ( diff --git a/eddsa/keygen/messages.go b/eddsa/keygen/messages.go index 50b8ac54..d6667073 100644 --- a/eddsa/keygen/messages.go +++ b/eddsa/keygen/messages.go @@ -10,12 +10,12 @@ import ( "crypto/elliptic" "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - cmt "github.com/bnb-chain/tss-lib/crypto/commitments" - "github.com/bnb-chain/tss-lib/crypto/schnorr" - "github.com/bnb-chain/tss-lib/crypto/vss" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" + cmt "github.com/bnb-chain/tss-lib/v2/crypto/commitments" + "github.com/bnb-chain/tss-lib/v2/crypto/schnorr" + "github.com/bnb-chain/tss-lib/v2/crypto/vss" + "github.com/bnb-chain/tss-lib/v2/tss" ) // These messages were generated from Protocol Buffers definitions into eddsa-keygen.pb.go diff --git a/eddsa/keygen/round_1.go b/eddsa/keygen/round_1.go index 4608de03..90485ee6 100644 --- a/eddsa/keygen/round_1.go +++ b/eddsa/keygen/round_1.go @@ -10,11 +10,11 @@ import ( "errors" "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - cmts "github.com/bnb-chain/tss-lib/crypto/commitments" - "github.com/bnb-chain/tss-lib/crypto/vss" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" + cmts "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" ) var ( diff --git a/eddsa/keygen/round_2.go b/eddsa/keygen/round_2.go index 0148bcf6..d1a603b4 100644 --- a/eddsa/keygen/round_2.go +++ b/eddsa/keygen/round_2.go @@ -12,8 +12,8 @@ import ( errors2 "github.com/pkg/errors" - "github.com/bnb-chain/tss-lib/crypto/schnorr" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/crypto/schnorr" + "github.com/bnb-chain/tss-lib/v2/tss" ) func (round *round2) Start() *tss.Error { diff --git a/eddsa/keygen/round_3.go b/eddsa/keygen/round_3.go index 393af636..2ffa27b3 100644 --- a/eddsa/keygen/round_3.go +++ b/eddsa/keygen/round_3.go @@ -13,11 +13,11 @@ import ( "github.com/hashicorp/go-multierror" errors2 "github.com/pkg/errors" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - "github.com/bnb-chain/tss-lib/crypto/commitments" - "github.com/bnb-chain/tss-lib/crypto/vss" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" + "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" ) func (round *round3) Start() *tss.Error { diff --git a/eddsa/keygen/rounds.go b/eddsa/keygen/rounds.go index 153a3b28..d361e5c3 100644 --- a/eddsa/keygen/rounds.go +++ b/eddsa/keygen/rounds.go @@ -9,8 +9,8 @@ package keygen import ( "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/tss" ) const ( diff --git a/eddsa/keygen/save_data.go b/eddsa/keygen/save_data.go index ae40c3d2..a7be639f 100644 --- a/eddsa/keygen/save_data.go +++ b/eddsa/keygen/save_data.go @@ -10,8 +10,8 @@ import ( "encoding/hex" "math/big" - "github.com/bnb-chain/tss-lib/crypto" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/crypto" + "github.com/bnb-chain/tss-lib/v2/tss" ) type ( diff --git a/eddsa/keygen/test_utils.go b/eddsa/keygen/test_utils.go index ba8eac13..c6d8e985 100644 --- a/eddsa/keygen/test_utils.go +++ b/eddsa/keygen/test_utils.go @@ -17,8 +17,8 @@ import ( "github.com/pkg/errors" - "github.com/bnb-chain/tss-lib/test" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/test" + "github.com/bnb-chain/tss-lib/v2/tss" ) const ( diff --git a/eddsa/resharing/local_party.go b/eddsa/resharing/local_party.go index eba35640..45e74a8b 100644 --- a/eddsa/resharing/local_party.go +++ b/eddsa/resharing/local_party.go @@ -10,12 +10,12 @@ import ( "fmt" "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - cmt "github.com/bnb-chain/tss-lib/crypto/commitments" - "github.com/bnb-chain/tss-lib/crypto/vss" - "github.com/bnb-chain/tss-lib/eddsa/keygen" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" + 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/eddsa/keygen" + "github.com/bnb-chain/tss-lib/v2/tss" ) // Implements Party diff --git a/eddsa/resharing/local_party_test.go b/eddsa/resharing/local_party_test.go index 0ef6ea73..1499c5a3 100644 --- a/eddsa/resharing/local_party_test.go +++ b/eddsa/resharing/local_party_test.go @@ -15,13 +15,13 @@ import ( "github.com/ipfs/go-log" "github.com/stretchr/testify/assert" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - "github.com/bnb-chain/tss-lib/eddsa/keygen" - . "github.com/bnb-chain/tss-lib/eddsa/resharing" - "github.com/bnb-chain/tss-lib/eddsa/signing" - "github.com/bnb-chain/tss-lib/test" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" + "github.com/bnb-chain/tss-lib/v2/eddsa/keygen" + . "github.com/bnb-chain/tss-lib/v2/eddsa/resharing" + "github.com/bnb-chain/tss-lib/v2/eddsa/signing" + "github.com/bnb-chain/tss-lib/v2/test" + "github.com/bnb-chain/tss-lib/v2/tss" ) const ( diff --git a/eddsa/resharing/messages.go b/eddsa/resharing/messages.go index 23003bb2..abf45bb4 100644 --- a/eddsa/resharing/messages.go +++ b/eddsa/resharing/messages.go @@ -10,11 +10,11 @@ import ( "crypto/elliptic" "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - cmt "github.com/bnb-chain/tss-lib/crypto/commitments" - "github.com/bnb-chain/tss-lib/crypto/vss" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" + 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" ) // These messages were generated from Protocol Buffers definitions into eddsa-resharing.pb.go diff --git a/eddsa/resharing/round_1_old_step_1.go b/eddsa/resharing/round_1_old_step_1.go index 5b5588cb..bdb7eb72 100644 --- a/eddsa/resharing/round_1_old_step_1.go +++ b/eddsa/resharing/round_1_old_step_1.go @@ -10,12 +10,12 @@ import ( "errors" "fmt" - "github.com/bnb-chain/tss-lib/crypto" - "github.com/bnb-chain/tss-lib/crypto/commitments" - "github.com/bnb-chain/tss-lib/crypto/vss" - "github.com/bnb-chain/tss-lib/eddsa/keygen" - "github.com/bnb-chain/tss-lib/eddsa/signing" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/crypto" + "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/eddsa/keygen" + "github.com/bnb-chain/tss-lib/v2/eddsa/signing" + "github.com/bnb-chain/tss-lib/v2/tss" ) // round 1 represents round 1 of the keygen part of the EDDSA TSS spec diff --git a/eddsa/resharing/round_2_new_step_1.go b/eddsa/resharing/round_2_new_step_1.go index 2a61d7f4..38270879 100644 --- a/eddsa/resharing/round_2_new_step_1.go +++ b/eddsa/resharing/round_2_new_step_1.go @@ -9,7 +9,7 @@ package resharing import ( "errors" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/tss" ) func (round *round2) Start() *tss.Error { diff --git a/eddsa/resharing/round_3_old_step_2.go b/eddsa/resharing/round_3_old_step_2.go index 21e44106..db2e1112 100644 --- a/eddsa/resharing/round_3_old_step_2.go +++ b/eddsa/resharing/round_3_old_step_2.go @@ -9,7 +9,7 @@ package resharing import ( "errors" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/tss" ) func (round *round3) Start() *tss.Error { diff --git a/eddsa/resharing/round_4_new_step_2.go b/eddsa/resharing/round_4_new_step_2.go index 18acfe4d..ab045e41 100644 --- a/eddsa/resharing/round_4_new_step_2.go +++ b/eddsa/resharing/round_4_new_step_2.go @@ -11,11 +11,11 @@ import ( "github.com/pkg/errors" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - "github.com/bnb-chain/tss-lib/crypto/commitments" - "github.com/bnb-chain/tss-lib/crypto/vss" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" + "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" ) func (round *round4) Start() *tss.Error { diff --git a/eddsa/resharing/round_5_new_step_3.go b/eddsa/resharing/round_5_new_step_3.go index 69da2c14..6a4d5e75 100644 --- a/eddsa/resharing/round_5_new_step_3.go +++ b/eddsa/resharing/round_5_new_step_3.go @@ -9,7 +9,7 @@ package resharing import ( "errors" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/tss" ) func (round *round5) Start() *tss.Error { diff --git a/eddsa/resharing/rounds.go b/eddsa/resharing/rounds.go index b3376692..e9c79034 100644 --- a/eddsa/resharing/rounds.go +++ b/eddsa/resharing/rounds.go @@ -7,8 +7,8 @@ package resharing import ( - "github.com/bnb-chain/tss-lib/eddsa/keygen" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/eddsa/keygen" + "github.com/bnb-chain/tss-lib/v2/tss" ) const ( diff --git a/eddsa/signing/finalize.go b/eddsa/signing/finalize.go index 25c28b4c..6044abb9 100644 --- a/eddsa/signing/finalize.go +++ b/eddsa/signing/finalize.go @@ -14,7 +14,7 @@ import ( "github.com/agl/ed25519/edwards25519" "github.com/decred/dcrd/dcrec/edwards/v2" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/tss" ) func (round *finalization) Start() *tss.Error { diff --git a/eddsa/signing/local_party.go b/eddsa/signing/local_party.go index 115988a5..814f6fc6 100644 --- a/eddsa/signing/local_party.go +++ b/eddsa/signing/local_party.go @@ -11,11 +11,11 @@ import ( "fmt" "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - cmt "github.com/bnb-chain/tss-lib/crypto/commitments" - "github.com/bnb-chain/tss-lib/eddsa/keygen" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" + cmt "github.com/bnb-chain/tss-lib/v2/crypto/commitments" + "github.com/bnb-chain/tss-lib/v2/eddsa/keygen" + "github.com/bnb-chain/tss-lib/v2/tss" ) // Implements Party diff --git a/eddsa/signing/local_party_test.go b/eddsa/signing/local_party_test.go index 35a18eee..53e57e39 100644 --- a/eddsa/signing/local_party_test.go +++ b/eddsa/signing/local_party_test.go @@ -17,10 +17,10 @@ import ( "github.com/ipfs/go-log" "github.com/stretchr/testify/assert" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/eddsa/keygen" - "github.com/bnb-chain/tss-lib/test" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/eddsa/keygen" + "github.com/bnb-chain/tss-lib/v2/test" + "github.com/bnb-chain/tss-lib/v2/tss" ) const ( diff --git a/eddsa/signing/messages.go b/eddsa/signing/messages.go index dcfbf734..c60e1880 100644 --- a/eddsa/signing/messages.go +++ b/eddsa/signing/messages.go @@ -10,11 +10,11 @@ import ( "crypto/elliptic" "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - cmt "github.com/bnb-chain/tss-lib/crypto/commitments" - "github.com/bnb-chain/tss-lib/crypto/schnorr" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" + cmt "github.com/bnb-chain/tss-lib/v2/crypto/commitments" + "github.com/bnb-chain/tss-lib/v2/crypto/schnorr" + "github.com/bnb-chain/tss-lib/v2/tss" ) // These messages were generated from Protocol Buffers definitions into eddsa-signing.pb.go diff --git a/eddsa/signing/prepare.go b/eddsa/signing/prepare.go index 1838b925..1e86b437 100644 --- a/eddsa/signing/prepare.go +++ b/eddsa/signing/prepare.go @@ -11,7 +11,7 @@ import ( "fmt" "math/big" - "github.com/bnb-chain/tss-lib/common" + "github.com/bnb-chain/tss-lib/v2/common" ) // PrepareForSigning(), Fig. 7 diff --git a/eddsa/signing/round_1.go b/eddsa/signing/round_1.go index 0ece1fcb..96e752f0 100644 --- a/eddsa/signing/round_1.go +++ b/eddsa/signing/round_1.go @@ -11,11 +11,11 @@ import ( "fmt" "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - "github.com/bnb-chain/tss-lib/crypto/commitments" - "github.com/bnb-chain/tss-lib/eddsa/keygen" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" + "github.com/bnb-chain/tss-lib/v2/crypto/commitments" + "github.com/bnb-chain/tss-lib/v2/eddsa/keygen" + "github.com/bnb-chain/tss-lib/v2/tss" ) // round 1 represents round 1 of the signing part of the EDDSA TSS spec diff --git a/eddsa/signing/round_2.go b/eddsa/signing/round_2.go index 027eb519..82f6c12a 100644 --- a/eddsa/signing/round_2.go +++ b/eddsa/signing/round_2.go @@ -12,8 +12,8 @@ import ( errors2 "github.com/pkg/errors" - "github.com/bnb-chain/tss-lib/crypto/schnorr" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/crypto/schnorr" + "github.com/bnb-chain/tss-lib/v2/tss" ) func (round *round2) Start() *tss.Error { diff --git a/eddsa/signing/round_3.go b/eddsa/signing/round_3.go index 3f636f2c..715c3a73 100644 --- a/eddsa/signing/round_3.go +++ b/eddsa/signing/round_3.go @@ -11,12 +11,12 @@ import ( "math/big" "github.com/agl/ed25519/edwards25519" - "github.com/bnb-chain/tss-lib/common" + "github.com/bnb-chain/tss-lib/v2/common" "github.com/pkg/errors" - "github.com/bnb-chain/tss-lib/crypto" - "github.com/bnb-chain/tss-lib/crypto/commitments" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/crypto" + "github.com/bnb-chain/tss-lib/v2/crypto/commitments" + "github.com/bnb-chain/tss-lib/v2/tss" ) func (round *round3) Start() *tss.Error { diff --git a/eddsa/signing/rounds.go b/eddsa/signing/rounds.go index 841ed087..7a8a8a62 100644 --- a/eddsa/signing/rounds.go +++ b/eddsa/signing/rounds.go @@ -10,10 +10,10 @@ import ( "errors" "math/big" - "github.com/bnb-chain/tss-lib/common" - "github.com/bnb-chain/tss-lib/crypto" - "github.com/bnb-chain/tss-lib/eddsa/keygen" - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/common" + "github.com/bnb-chain/tss-lib/v2/crypto" + "github.com/bnb-chain/tss-lib/v2/eddsa/keygen" + "github.com/bnb-chain/tss-lib/v2/tss" ) const ( diff --git a/eddsa/signing/utils.go b/eddsa/signing/utils.go index ebd77569..d3b41f8f 100644 --- a/eddsa/signing/utils.go +++ b/eddsa/signing/utils.go @@ -12,7 +12,7 @@ import ( "github.com/agl/ed25519/edwards25519" - "github.com/bnb-chain/tss-lib/common" + "github.com/bnb-chain/tss-lib/v2/common" ) func encodedBytesToBigInt(s *[32]byte) *big.Int { diff --git a/go.mod b/go.mod index c5d5426f..05953027 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/bnb-chain/tss-lib +module github.com/bnb-chain/tss-lib/v2 go 1.16 diff --git a/test/utils.go b/test/utils.go index 104e4d4b..633d34ec 100644 --- a/test/utils.go +++ b/test/utils.go @@ -7,7 +7,7 @@ package test import ( - "github.com/bnb-chain/tss-lib/tss" + "github.com/bnb-chain/tss-lib/v2/tss" ) func SharedPartyUpdater(party tss.Party, msg tss.Message, errCh chan<- *tss.Error) { diff --git a/tss/party.go b/tss/party.go index 583a59b3..fd06fed3 100644 --- a/tss/party.go +++ b/tss/party.go @@ -11,7 +11,7 @@ import ( "fmt" "sync" - "github.com/bnb-chain/tss-lib/common" + "github.com/bnb-chain/tss-lib/v2/common" ) type Party interface { diff --git a/tss/party_id.go b/tss/party_id.go index 58506641..e21c9310 100644 --- a/tss/party_id.go +++ b/tss/party_id.go @@ -11,7 +11,7 @@ import ( "math/big" "sort" - "github.com/bnb-chain/tss-lib/common" + "github.com/bnb-chain/tss-lib/v2/common" ) type (