From 7fe8641ca3030e25503e4dffc9f9a19717c52f14 Mon Sep 17 00:00:00 2001 From: nikkolasg Date: Sat, 28 Dec 2019 17:41:00 +0000 Subject: [PATCH] full replacement as per indication https://github.com/golang/go/issues/30354#issuecomment-466479708 --- encrypt/ecies/ecies.go | 4 ++-- encrypt/ecies/ecies_test.go | 4 ++-- examples/dh_test.go | 4 ++-- examples/enc_test.go | 6 +++--- examples/sig_test.go | 4 ++-- go.mod | 4 +--- group/curve25519/basic.go | 6 +++--- group/curve25519/basic_test.go | 2 +- group/curve25519/curve.go | 6 +++--- group/curve25519/curve_test.go | 4 ++-- group/curve25519/ext.go | 6 +++--- group/curve25519/param.go | 2 +- group/curve25519/proj.go | 6 +++--- group/curve25519/suite.go | 10 +++++----- group/edwards25519/allowvt_test.go | 2 +- group/edwards25519/curve.go | 4 ++-- group/edwards25519/curve_test.go | 2 +- group/edwards25519/point.go | 4 ++-- group/edwards25519/scalar.go | 8 ++++---- group/edwards25519/scalar_test.go | 4 ++-- group/edwards25519/suite.go | 12 ++++++------ group/internal/marshalling/marshal.go | 2 +- group/mod/int.go | 6 +++--- group/nist/curve.go | 8 ++++---- group/nist/group_test.go | 2 +- group/nist/qrsuite.go | 10 +++++----- group/nist/residue.go | 8 ++++---- group/nist/suite.go | 10 +++++----- pairing/adapter.go | 4 ++-- pairing/adapter_test.go | 2 +- pairing/bn256/group.go | 4 ++-- pairing/bn256/point.go | 4 ++-- pairing/bn256/suite.go | 6 +++--- pairing/bn256/suite_test.go | 6 +++--- pairing/pairing.go | 2 +- proof/clique.go | 2 +- proof/deniable.go | 2 +- proof/deniable_test.go | 6 +++--- proof/dleq/dleq.go | 2 +- proof/dleq/dleq_test.go | 6 +++--- proof/hash.go | 2 +- proof/hash_test.go | 6 +++--- proof/proof.go | 2 +- proof/proof_test.go | 6 +++--- share/dkg/pedersen/dkg.go | 10 +++++----- share/dkg/pedersen/dkg_test.go | 8 ++++---- share/dkg/pedersen/structs.go | 6 +++--- share/dkg/rabin/dkg.go | 8 ++++---- share/dkg/rabin/dkg_test.go | 10 +++++----- share/poly.go | 2 +- share/poly_test.go | 4 ++-- share/pvss/pvss.go | 6 +++--- share/pvss/pvss_test.go | 4 ++-- share/vss/pedersen/dh.go | 2 +- share/vss/pedersen/vss.go | 6 +++--- share/vss/pedersen/vss_test.go | 8 ++++---- share/vss/rabin/dh.go | 2 +- share/vss/rabin/vss.go | 6 +++--- share/vss/rabin/vss_test.go | 6 +++--- shuffle/biffle.go | 6 +++--- shuffle/biffle_test.go | 8 ++++---- shuffle/pair.go | 6 +++--- shuffle/shuffle_test.go | 8 ++++---- shuffle/simple.go | 4 ++-- shuffle/vartime_test.go | 2 +- sign/anon/anon.go | 2 +- sign/anon/enc.go | 4 ++-- sign/anon/enc_test.go | 6 +++--- sign/anon/sig.go | 2 +- sign/anon/sig_test.go | 8 ++++---- sign/anon/suite.go | 2 +- sign/bdn/bdn.go | 10 +++++----- sign/bdn/bdn_test.go | 12 ++++++------ sign/bls/bls.go | 6 +++--- sign/bls/bls_test.go | 6 +++--- sign/cosi/cosi.go | 2 +- sign/cosi/cosi_test.go | 10 +++++----- sign/cosi/suite.go | 2 +- sign/dss/dss.go | 8 ++++---- sign/dss/dss_test.go | 10 +++++----- sign/eddsa/eddsa.go | 4 ++-- sign/eddsa/eddsa_test.go | 2 +- sign/mask.go | 4 ++-- sign/mask_test.go | 6 +++--- sign/schnorr/schnorr.go | 2 +- sign/schnorr/schnorr_test.go | 6 +++--- sign/sign.go | 2 +- sign/tbls/tbls.go | 6 +++--- sign/tbls/tbls_test.go | 6 +++--- suites/all.go | 8 ++++---- suites/suites.go | 2 +- util/encoding/encoding.go | 2 +- util/encoding/encoding_test.go | 2 +- util/key/key.go | 2 +- util/key/key_test.go | 4 ++-- util/random/rand.go | 2 +- util/test/group.go | 4 ++-- util/test/test.go | 6 +++--- xof/blake2xb/blake.go | 2 +- xof/blake2xs/blake.go | 2 +- xof/keccak/keccak.go | 2 +- xof/xof_test.go | 6 +++--- 102 files changed, 252 insertions(+), 254 deletions(-) diff --git a/encrypt/ecies/ecies.go b/encrypt/ecies/ecies.go index eabc28f7a..b6df41647 100644 --- a/encrypt/ecies/ecies.go +++ b/encrypt/ecies/ecies.go @@ -9,8 +9,8 @@ import ( "errors" "hash" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/util/random" + "github.com/drand/kyber" + "github.com/drand/kyber/util/random" "golang.org/x/crypto/hkdf" ) diff --git a/encrypt/ecies/ecies_test.go b/encrypt/ecies/ecies_test.go index 9668a6e34..38a82ccd9 100644 --- a/encrypt/ecies/ecies_test.go +++ b/encrypt/ecies/ecies_test.go @@ -4,8 +4,8 @@ import ( "testing" "github.com/stretchr/testify/require" - "go.dedis.ch/kyber/v3/group/edwards25519" - "go.dedis.ch/kyber/v3/util/random" + "github.com/drand/kyber/group/edwards25519" + "github.com/drand/kyber/util/random" ) func TestECIES(t *testing.T) { diff --git a/examples/dh_test.go b/examples/dh_test.go index 7e47b53cd..f4408b246 100644 --- a/examples/dh_test.go +++ b/examples/dh_test.go @@ -3,8 +3,8 @@ package examples import ( "fmt" - "go.dedis.ch/kyber/v3/group/edwards25519" - "go.dedis.ch/kyber/v3/xof/blake2xb" + "github.com/drand/kyber/group/edwards25519" + "github.com/drand/kyber/xof/blake2xb" ) /* diff --git a/examples/enc_test.go b/examples/enc_test.go index 701820a1a..7f4d6b852 100644 --- a/examples/enc_test.go +++ b/examples/enc_test.go @@ -3,9 +3,9 @@ package examples import ( "fmt" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/edwards25519" - "go.dedis.ch/kyber/v3/util/random" + "github.com/drand/kyber" + "github.com/drand/kyber/group/edwards25519" + "github.com/drand/kyber/util/random" ) func ElGamalEncrypt(group kyber.Group, pubkey kyber.Point, message []byte) ( diff --git a/examples/sig_test.go b/examples/sig_test.go index 34878c962..afffac76b 100644 --- a/examples/sig_test.go +++ b/examples/sig_test.go @@ -7,8 +7,8 @@ import ( "errors" "fmt" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/edwards25519" + "github.com/drand/kyber" + "github.com/drand/kyber/group/edwards25519" ) type Suite interface { diff --git a/go.mod b/go.mod index fabbb5bc2..def973633 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module go.dedis.ch/kyber/v3 +module github.com/drand/kyber require ( github.com/stretchr/testify v1.3.0 @@ -8,6 +8,4 @@ require ( golang.org/x/sys v0.0.0-20190124100055-b90733256f2e ) -replace go.dedis.ch/kyber/v3 => github.com/drand/kyber v3.0.11 - go 1.13 diff --git a/group/curve25519/basic.go b/group/curve25519/basic.go index 9eefb431e..8fa68ce48 100644 --- a/group/curve25519/basic.go +++ b/group/curve25519/basic.go @@ -7,9 +7,9 @@ import ( "io" "math/big" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/internal/marshalling" - "go.dedis.ch/kyber/v3/group/mod" + "github.com/drand/kyber" + "github.com/drand/kyber/group/internal/marshalling" + "github.com/drand/kyber/group/mod" ) type basicPoint struct { diff --git a/group/curve25519/basic_test.go b/group/curve25519/basic_test.go index 7667de15a..0e3d36f39 100644 --- a/group/curve25519/basic_test.go +++ b/group/curve25519/basic_test.go @@ -5,7 +5,7 @@ package curve25519 import ( "testing" - "go.dedis.ch/kyber/v3/util/test" + "github.com/drand/kyber/util/test" ) // Test the basic implementation of the Ed25519 curve. diff --git a/group/curve25519/curve.go b/group/curve25519/curve.go index 4333cf92d..b7c4a2a63 100644 --- a/group/curve25519/curve.go +++ b/group/curve25519/curve.go @@ -7,9 +7,9 @@ import ( "fmt" "math/big" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/mod" - "go.dedis.ch/kyber/v3/util/random" + "github.com/drand/kyber" + "github.com/drand/kyber/group/mod" + "github.com/drand/kyber/util/random" ) var zero = big.NewInt(0) diff --git a/group/curve25519/curve_test.go b/group/curve25519/curve_test.go index 033274823..f9fa1a701 100644 --- a/group/curve25519/curve_test.go +++ b/group/curve25519/curve_test.go @@ -3,8 +3,8 @@ package curve25519 import ( "testing" - "go.dedis.ch/kyber/v3/group/edwards25519" - "go.dedis.ch/kyber/v3/util/test" + "github.com/drand/kyber/group/edwards25519" + "github.com/drand/kyber/util/test" ) var testSuite = NewBlakeSHA256Curve25519(false) diff --git a/group/curve25519/ext.go b/group/curve25519/ext.go index c3bd0d17a..e9f25603b 100644 --- a/group/curve25519/ext.go +++ b/group/curve25519/ext.go @@ -6,9 +6,9 @@ import ( "io" "math/big" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/internal/marshalling" - "go.dedis.ch/kyber/v3/group/mod" + "github.com/drand/kyber" + "github.com/drand/kyber/group/internal/marshalling" + "github.com/drand/kyber/group/mod" ) type extPoint struct { diff --git a/group/curve25519/param.go b/group/curve25519/param.go index f59624e29..89dc8d373 100644 --- a/group/curve25519/param.go +++ b/group/curve25519/param.go @@ -15,7 +15,7 @@ package curve25519 import ( "math/big" - "go.dedis.ch/kyber/v3/group/mod" + "github.com/drand/kyber/group/mod" ) // Param defines a Twisted Edwards curve (TEC). diff --git a/group/curve25519/proj.go b/group/curve25519/proj.go index 4efee7f6c..6e51312fd 100644 --- a/group/curve25519/proj.go +++ b/group/curve25519/proj.go @@ -5,9 +5,9 @@ import ( "io" "math/big" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/internal/marshalling" - "go.dedis.ch/kyber/v3/group/mod" + "github.com/drand/kyber" + "github.com/drand/kyber/group/internal/marshalling" + "github.com/drand/kyber/group/mod" ) type projPoint struct { diff --git a/group/curve25519/suite.go b/group/curve25519/suite.go index 4b0249e1d..307890465 100644 --- a/group/curve25519/suite.go +++ b/group/curve25519/suite.go @@ -8,10 +8,10 @@ import ( "reflect" "go.dedis.ch/fixbuf" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/internal/marshalling" - "go.dedis.ch/kyber/v3/util/random" - "go.dedis.ch/kyber/v3/xof/blake2xb" + "github.com/drand/kyber" + "github.com/drand/kyber/group/internal/marshalling" + "github.com/drand/kyber/util/random" + "github.com/drand/kyber/xof/blake2xb" ) // SuiteCurve25519 is the suite for the 25519 curve @@ -49,7 +49,7 @@ func (s *SuiteCurve25519) RandomStream() cipher.Stream { } // NewBlakeSHA256Curve25519 returns a cipher suite based on package -// go.dedis.ch/kyber/v3/xof/blake2xb, SHA-256, and Curve25519. +// github.com/drand/kyber/xof/blake2xb, SHA-256, and Curve25519. // // If fullGroup is false, then the group is the prime-order subgroup. // diff --git a/group/edwards25519/allowvt_test.go b/group/edwards25519/allowvt_test.go index 54955b76d..64a58c83e 100644 --- a/group/edwards25519/allowvt_test.go +++ b/group/edwards25519/allowvt_test.go @@ -3,7 +3,7 @@ package edwards25519 import ( "testing" - "go.dedis.ch/kyber/v3" + "github.com/drand/kyber" ) func TestVartime(t *testing.T) { diff --git a/group/edwards25519/curve.go b/group/edwards25519/curve.go index 379801ab3..5aaf08b8a 100644 --- a/group/edwards25519/curve.go +++ b/group/edwards25519/curve.go @@ -4,8 +4,8 @@ import ( "crypto/cipher" "crypto/sha512" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/util/random" + "github.com/drand/kyber" + "github.com/drand/kyber/util/random" ) // Curve represents the Ed25519 group. diff --git a/group/edwards25519/curve_test.go b/group/edwards25519/curve_test.go index 853e46e85..5be390da9 100644 --- a/group/edwards25519/curve_test.go +++ b/group/edwards25519/curve_test.go @@ -5,7 +5,7 @@ import ( "testing" "github.com/stretchr/testify/assert" - "go.dedis.ch/kyber/v3/util/test" + "github.com/drand/kyber/util/test" ) var tSuite = NewBlakeSHA256Ed25519() diff --git a/group/edwards25519/point.go b/group/edwards25519/point.go index 0ed839dd0..afb2102d2 100644 --- a/group/edwards25519/point.go +++ b/group/edwards25519/point.go @@ -20,8 +20,8 @@ import ( "errors" "io" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/internal/marshalling" + "github.com/drand/kyber" + "github.com/drand/kyber/group/internal/marshalling" ) var marshalPointID = [8]byte{'e', 'd', '.', 'p', 'o', 'i', 'n', 't'} diff --git a/group/edwards25519/scalar.go b/group/edwards25519/scalar.go index 30caa0253..12f729625 100644 --- a/group/edwards25519/scalar.go +++ b/group/edwards25519/scalar.go @@ -12,10 +12,10 @@ import ( "io" "math/big" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/internal/marshalling" - "go.dedis.ch/kyber/v3/group/mod" - "go.dedis.ch/kyber/v3/util/random" + "github.com/drand/kyber" + "github.com/drand/kyber/group/internal/marshalling" + "github.com/drand/kyber/group/mod" + "github.com/drand/kyber/util/random" ) // This code is a port of the public domain, "ref10" implementation of ed25519 diff --git a/group/edwards25519/scalar_test.go b/group/edwards25519/scalar_test.go index 0e8459c9a..056ae29ee 100644 --- a/group/edwards25519/scalar_test.go +++ b/group/edwards25519/scalar_test.go @@ -5,8 +5,8 @@ import ( "testing" "github.com/stretchr/testify/require" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/util/random" + "github.com/drand/kyber" + "github.com/drand/kyber/util/random" ) // SimpleCTScalar implements the scalar operations only using `ScMulAdd` by diff --git a/group/edwards25519/suite.go b/group/edwards25519/suite.go index aadf8ffdd..662f4d2a9 100644 --- a/group/edwards25519/suite.go +++ b/group/edwards25519/suite.go @@ -8,10 +8,10 @@ import ( "reflect" "go.dedis.ch/fixbuf" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/internal/marshalling" - "go.dedis.ch/kyber/v3/util/random" - "go.dedis.ch/kyber/v3/xof/blake2xb" + "github.com/drand/kyber" + "github.com/drand/kyber/group/internal/marshalling" + "github.com/drand/kyber/util/random" + "github.com/drand/kyber/xof/blake2xb" ) // SuiteEd25519 implements some basic functionalities such as Group, HashFactory, @@ -54,7 +54,7 @@ func (s *SuiteEd25519) RandomStream() cipher.Stream { } // NewBlakeSHA256Ed25519 returns a cipher suite based on package -// go.dedis.ch/kyber/v3/xof/blake2xb, SHA-256, and the Ed25519 curve. +// github.com/drand/kyber/xof/blake2xb, SHA-256, and the Ed25519 curve. // It produces cryptographically random numbers via package crypto/rand. func NewBlakeSHA256Ed25519() *SuiteEd25519 { suite := new(SuiteEd25519) @@ -62,7 +62,7 @@ func NewBlakeSHA256Ed25519() *SuiteEd25519 { } // NewBlakeSHA256Ed25519WithRand returns a cipher suite based on package -// go.dedis.ch/kyber/v3/xof/blake2xb, SHA-256, and the Ed25519 curve. +// github.com/drand/kyber/xof/blake2xb, SHA-256, and the Ed25519 curve. // It produces cryptographically random numbers via the provided stream r. func NewBlakeSHA256Ed25519WithRand(r cipher.Stream) *SuiteEd25519 { suite := new(SuiteEd25519) diff --git a/group/internal/marshalling/marshal.go b/group/internal/marshalling/marshal.go index 457b328db..40d50320f 100644 --- a/group/internal/marshalling/marshal.go +++ b/group/internal/marshalling/marshal.go @@ -7,7 +7,7 @@ import ( "io" "reflect" - "go.dedis.ch/kyber/v3" + "github.com/drand/kyber" ) // PointMarshalTo provides a generic implementation of Point.EncodeTo diff --git a/group/mod/int.go b/group/mod/int.go index ba898f2fd..598fe51b7 100644 --- a/group/mod/int.go +++ b/group/mod/int.go @@ -9,9 +9,9 @@ import ( "io" "math/big" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/internal/marshalling" - "go.dedis.ch/kyber/v3/util/random" + "github.com/drand/kyber" + "github.com/drand/kyber/group/internal/marshalling" + "github.com/drand/kyber/util/random" ) var one = big.NewInt(1) diff --git a/group/nist/curve.go b/group/nist/curve.go index 6888d9fc0..062337bb5 100644 --- a/group/nist/curve.go +++ b/group/nist/curve.go @@ -7,10 +7,10 @@ import ( "io" "math/big" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/internal/marshalling" - "go.dedis.ch/kyber/v3/group/mod" - "go.dedis.ch/kyber/v3/util/random" + "github.com/drand/kyber" + "github.com/drand/kyber/group/internal/marshalling" + "github.com/drand/kyber/group/mod" + "github.com/drand/kyber/util/random" ) type curvePoint struct { diff --git a/group/nist/group_test.go b/group/nist/group_test.go index e60de4198..1c7db92e5 100644 --- a/group/nist/group_test.go +++ b/group/nist/group_test.go @@ -3,7 +3,7 @@ package nist import ( "testing" - "go.dedis.ch/kyber/v3/util/test" + "github.com/drand/kyber/util/test" ) var testQR512 = NewBlakeSHA256QR512() diff --git a/group/nist/qrsuite.go b/group/nist/qrsuite.go index 2b1fc9107..abb32711b 100644 --- a/group/nist/qrsuite.go +++ b/group/nist/qrsuite.go @@ -9,10 +9,10 @@ import ( "reflect" "go.dedis.ch/fixbuf" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/internal/marshalling" - "go.dedis.ch/kyber/v3/util/random" - "go.dedis.ch/kyber/v3/xof/blake2xb" + "github.com/drand/kyber" + "github.com/drand/kyber/group/internal/marshalling" + "github.com/drand/kyber/util/random" + "github.com/drand/kyber/xof/blake2xb" ) // QrSuite is a quadratic residue suite @@ -50,7 +50,7 @@ func (s *QrSuite) New(t reflect.Type) interface{} { } // NewBlakeSHA256QR512 returns a cipher suite based on package -// go.dedis.ch/kyber/v3/xof/blake2xb, SHA-256, and a residue group of +// github.com/drand/kyber/xof/blake2xb, SHA-256, and a residue group of // quadratic residues modulo a 512-bit prime. // // This group size should be used only for testing and experimentation. diff --git a/group/nist/residue.go b/group/nist/residue.go index 27b845b07..04a8db882 100644 --- a/group/nist/residue.go +++ b/group/nist/residue.go @@ -8,10 +8,10 @@ import ( "io" "math/big" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/internal/marshalling" - "go.dedis.ch/kyber/v3/group/mod" - "go.dedis.ch/kyber/v3/util/random" + "github.com/drand/kyber" + "github.com/drand/kyber/group/internal/marshalling" + "github.com/drand/kyber/group/mod" + "github.com/drand/kyber/util/random" ) var one = big.NewInt(1) diff --git a/group/nist/suite.go b/group/nist/suite.go index 04f6bdd83..de872a621 100644 --- a/group/nist/suite.go +++ b/group/nist/suite.go @@ -8,10 +8,10 @@ import ( "reflect" "go.dedis.ch/fixbuf" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/internal/marshalling" - "go.dedis.ch/kyber/v3/util/random" - "go.dedis.ch/kyber/v3/xof/blake2xb" + "github.com/drand/kyber" + "github.com/drand/kyber/group/internal/marshalling" + "github.com/drand/kyber/util/random" + "github.com/drand/kyber/xof/blake2xb" ) // Suite128 is the suite for P256 curve @@ -49,7 +49,7 @@ func (s *Suite128) New(t reflect.Type) interface{} { } // NewBlakeSHA256P256 returns a cipher suite based on package -// go.dedis.ch/kyber/v3/xof/blake2xb, SHA-256, and the NIST P-256 +// github.com/drand/kyber/xof/blake2xb, SHA-256, and the NIST P-256 // elliptic curve. It returns random streams from Go's crypto/rand. // // The scalars created by this group implement kyber.Scalar's SetBytes diff --git a/pairing/adapter.go b/pairing/adapter.go index ade840742..8f54963b2 100644 --- a/pairing/adapter.go +++ b/pairing/adapter.go @@ -1,8 +1,8 @@ package pairing import ( - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/pairing/bn256" + "github.com/drand/kyber" + "github.com/drand/kyber/pairing/bn256" ) // SuiteBn256 is an adapter that implements the suites.Suite interface so that diff --git a/pairing/adapter_test.go b/pairing/adapter_test.go index 97bbbb728..253a7b810 100644 --- a/pairing/adapter_test.go +++ b/pairing/adapter_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/stretchr/testify/require" - "go.dedis.ch/kyber/v3/util/key" + "github.com/drand/kyber/util/key" ) func TestAdapter_SuiteBn256(t *testing.T) { diff --git a/pairing/bn256/group.go b/pairing/bn256/group.go index 9ed3039cd..be172ee32 100644 --- a/pairing/bn256/group.go +++ b/pairing/bn256/group.go @@ -3,8 +3,8 @@ package bn256 import ( "crypto/cipher" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/mod" + "github.com/drand/kyber" + "github.com/drand/kyber/group/mod" ) type groupG1 struct { diff --git a/pairing/bn256/point.go b/pairing/bn256/point.go index 28316b6a2..43a6524db 100644 --- a/pairing/bn256/point.go +++ b/pairing/bn256/point.go @@ -8,8 +8,8 @@ import ( "io" "math/big" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/mod" + "github.com/drand/kyber" + "github.com/drand/kyber/group/mod" ) var marshalPointID1 = [8]byte{'b', 'n', '2', '5', '6', '.', 'g', '1'} diff --git a/pairing/bn256/suite.go b/pairing/bn256/suite.go index 8f46bf721..8a33afa39 100644 --- a/pairing/bn256/suite.go +++ b/pairing/bn256/suite.go @@ -24,9 +24,9 @@ import ( "reflect" "go.dedis.ch/fixbuf" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/util/random" - "go.dedis.ch/kyber/v3/xof/blake2xb" + "github.com/drand/kyber" + "github.com/drand/kyber/util/random" + "github.com/drand/kyber/xof/blake2xb" ) // Suite implements the pairing.Suite interface for the BN256 bilinear pairing. diff --git a/pairing/bn256/suite_test.go b/pairing/bn256/suite_test.go index 66fa5bb60..032a9dd7a 100644 --- a/pairing/bn256/suite_test.go +++ b/pairing/bn256/suite_test.go @@ -6,9 +6,9 @@ import ( "testing" "github.com/stretchr/testify/require" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/mod" - "go.dedis.ch/kyber/v3/util/random" + "github.com/drand/kyber" + "github.com/drand/kyber/group/mod" + "github.com/drand/kyber/util/random" "go.dedis.ch/protobuf" "golang.org/x/crypto/bn256" ) diff --git a/pairing/pairing.go b/pairing/pairing.go index d0e70707b..00551c526 100644 --- a/pairing/pairing.go +++ b/pairing/pairing.go @@ -1,6 +1,6 @@ package pairing -import "go.dedis.ch/kyber/v3" +import "github.com/drand/kyber" // Suite interface represents a triplet of elliptic curve groups (G₁, G₂ // and GT) such that there exists a function e(g₁ˣ,g₂ʸ)=gTˣʸ (where gₓ is a diff --git a/proof/clique.go b/proof/clique.go index 0fbf1c061..bfe9bc3d4 100644 --- a/proof/clique.go +++ b/proof/clique.go @@ -10,7 +10,7 @@ package proof // assumes that nodes are always "live" and never go offline, // but we can achieve availability via threshold kyber. -import "go.dedis.ch/kyber/v3" +import "github.com/drand/kyber" // Protocol represents the role of a participant in a clique protocol. // A participant is represented as a higher-order function taking a StarContext, diff --git a/proof/deniable.go b/proof/deniable.go index 0208a393d..7e8412e81 100644 --- a/proof/deniable.go +++ b/proof/deniable.go @@ -5,7 +5,7 @@ import ( "errors" "fmt" - "go.dedis.ch/kyber/v3" + "github.com/drand/kyber" ) // DeniableProver is a Protocol implementing an interactive Sigma-protocol diff --git a/proof/deniable_test.go b/proof/deniable_test.go index d654baef9..092eb7073 100644 --- a/proof/deniable_test.go +++ b/proof/deniable_test.go @@ -5,9 +5,9 @@ import ( "fmt" "testing" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/edwards25519" - "go.dedis.ch/kyber/v3/util/random" + "github.com/drand/kyber" + "github.com/drand/kyber/group/edwards25519" + "github.com/drand/kyber/util/random" ) var testSuite = edwards25519.NewBlakeSHA256Ed25519() diff --git a/proof/dleq/dleq.go b/proof/dleq/dleq.go index e610ccc87..ab21c41d3 100644 --- a/proof/dleq/dleq.go +++ b/proof/dleq/dleq.go @@ -8,7 +8,7 @@ package dleq import ( "errors" - "go.dedis.ch/kyber/v3" + "github.com/drand/kyber" ) // Suite wraps the functionalities needed by the dleq package. diff --git a/proof/dleq/dleq_test.go b/proof/dleq/dleq_test.go index e6683aa37..ace409092 100644 --- a/proof/dleq/dleq_test.go +++ b/proof/dleq/dleq_test.go @@ -4,9 +4,9 @@ import ( "testing" "github.com/stretchr/testify/require" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/edwards25519" - "go.dedis.ch/kyber/v3/util/random" + "github.com/drand/kyber" + "github.com/drand/kyber/group/edwards25519" + "github.com/drand/kyber/util/random" ) var rng = random.New() diff --git a/proof/hash.go b/proof/hash.go index 8f1aa508e..7158624da 100644 --- a/proof/hash.go +++ b/proof/hash.go @@ -6,7 +6,7 @@ import ( "fmt" "io" - "go.dedis.ch/kyber/v3" + "github.com/drand/kyber" ) // Hash-based noninteractive Sigma-protocol prover context diff --git a/proof/hash_test.go b/proof/hash_test.go index 4fb355ffb..b7728bca9 100644 --- a/proof/hash_test.go +++ b/proof/hash_test.go @@ -4,9 +4,9 @@ import ( "encoding/hex" "fmt" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/edwards25519" - "go.dedis.ch/kyber/v3/xof/blake2xb" + "github.com/drand/kyber" + "github.com/drand/kyber/group/edwards25519" + "github.com/drand/kyber/xof/blake2xb" ) // This example shows how to build classic ElGamal-style digital signatures diff --git a/proof/proof.go b/proof/proof.go index ec343f45b..02505bf59 100644 --- a/proof/proof.go +++ b/proof/proof.go @@ -8,7 +8,7 @@ package proof import ( "errors" - "go.dedis.ch/kyber/v3" + "github.com/drand/kyber" ) // Suite defines the functionalities needed for this package to operate diff --git a/proof/proof_test.go b/proof/proof_test.go index 6ca8d1797..39bae3a8a 100644 --- a/proof/proof_test.go +++ b/proof/proof_test.go @@ -5,9 +5,9 @@ import ( "fmt" "testing" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/edwards25519" - "go.dedis.ch/kyber/v3/xof/blake2xb" + "github.com/drand/kyber" + "github.com/drand/kyber/group/edwards25519" + "github.com/drand/kyber/xof/blake2xb" ) func TestRep(t *testing.T) { diff --git a/share/dkg/pedersen/dkg.go b/share/dkg/pedersen/dkg.go index 76a88cced..cf9b7db10 100644 --- a/share/dkg/pedersen/dkg.go +++ b/share/dkg/pedersen/dkg.go @@ -15,12 +15,12 @@ import ( "fmt" "io" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/util/random" + "github.com/drand/kyber" + "github.com/drand/kyber/util/random" - "go.dedis.ch/kyber/v3/share" - vss "go.dedis.ch/kyber/v3/share/vss/pedersen" - "go.dedis.ch/kyber/v3/sign/schnorr" + "github.com/drand/kyber/share" + vss "github.com/drand/kyber/share/vss/pedersen" + "github.com/drand/kyber/sign/schnorr" ) // Suite wraps the functionalities needed by the dkg package diff --git a/share/dkg/pedersen/dkg_test.go b/share/dkg/pedersen/dkg_test.go index ac42610a7..001b43770 100644 --- a/share/dkg/pedersen/dkg_test.go +++ b/share/dkg/pedersen/dkg_test.go @@ -8,10 +8,10 @@ import ( "testing" "github.com/stretchr/testify/require" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/edwards25519" - "go.dedis.ch/kyber/v3/share" - vss "go.dedis.ch/kyber/v3/share/vss/pedersen" + "github.com/drand/kyber" + "github.com/drand/kyber/group/edwards25519" + "github.com/drand/kyber/share" + vss "github.com/drand/kyber/share/vss/pedersen" ) var suite = edwards25519.NewBlakeSHA256Ed25519() diff --git a/share/dkg/pedersen/structs.go b/share/dkg/pedersen/structs.go index 6ffab89af..537b88adf 100644 --- a/share/dkg/pedersen/structs.go +++ b/share/dkg/pedersen/structs.go @@ -4,9 +4,9 @@ import ( "bytes" "encoding/binary" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/share" - vss "go.dedis.ch/kyber/v3/share/vss/pedersen" + "github.com/drand/kyber" + "github.com/drand/kyber/share" + vss "github.com/drand/kyber/share/vss/pedersen" ) // DistKeyShare holds the share of a distributed key for a participant. diff --git a/share/dkg/rabin/dkg.go b/share/dkg/rabin/dkg.go index 376d1e1a4..c900d03d0 100644 --- a/share/dkg/rabin/dkg.go +++ b/share/dkg/rabin/dkg.go @@ -41,12 +41,12 @@ import ( "errors" "fmt" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/sign/schnorr" + "github.com/drand/kyber" + "github.com/drand/kyber/sign/schnorr" "go.dedis.ch/protobuf" - "go.dedis.ch/kyber/v3/share" - vss "go.dedis.ch/kyber/v3/share/vss/rabin" + "github.com/drand/kyber/share" + vss "github.com/drand/kyber/share/vss/rabin" ) // Suite wraps the functionalities needed by the dkg package diff --git a/share/dkg/rabin/dkg_test.go b/share/dkg/rabin/dkg_test.go index a90e0a03a..71ffb4d29 100644 --- a/share/dkg/rabin/dkg_test.go +++ b/share/dkg/rabin/dkg_test.go @@ -6,11 +6,11 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/edwards25519" - "go.dedis.ch/kyber/v3/share" - vss "go.dedis.ch/kyber/v3/share/vss/rabin" - "go.dedis.ch/kyber/v3/sign/schnorr" + "github.com/drand/kyber" + "github.com/drand/kyber/group/edwards25519" + "github.com/drand/kyber/share" + vss "github.com/drand/kyber/share/vss/rabin" + "github.com/drand/kyber/sign/schnorr" ) var suite = edwards25519.NewBlakeSHA256Ed25519() diff --git a/share/poly.go b/share/poly.go index 5a0b01bfd..461ef5aba 100644 --- a/share/poly.go +++ b/share/poly.go @@ -18,7 +18,7 @@ import ( "sort" "strings" - "go.dedis.ch/kyber/v3" + "github.com/drand/kyber" ) // Some error definitions diff --git a/share/poly_test.go b/share/poly_test.go index ed1a439ea..a33837882 100644 --- a/share/poly_test.go +++ b/share/poly_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/edwards25519" + "github.com/drand/kyber" + "github.com/drand/kyber/group/edwards25519" ) func TestSecretRecovery(test *testing.T) { diff --git a/share/pvss/pvss.go b/share/pvss/pvss.go index 8c8fc8cfe..3dfe14279 100644 --- a/share/pvss/pvss.go +++ b/share/pvss/pvss.go @@ -15,9 +15,9 @@ package pvss import ( "errors" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/proof/dleq" - "go.dedis.ch/kyber/v3/share" + "github.com/drand/kyber" + "github.com/drand/kyber/proof/dleq" + "github.com/drand/kyber/share" ) // Suite describes the functionalities needed by this package in order to diff --git a/share/pvss/pvss_test.go b/share/pvss/pvss_test.go index e9dfe32b5..663be0f98 100644 --- a/share/pvss/pvss_test.go +++ b/share/pvss/pvss_test.go @@ -4,8 +4,8 @@ import ( "testing" "github.com/stretchr/testify/require" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/edwards25519" + "github.com/drand/kyber" + "github.com/drand/kyber/group/edwards25519" ) func TestPVSS(test *testing.T) { diff --git a/share/vss/pedersen/dh.go b/share/vss/pedersen/dh.go index c4e34ddce..398f00ca3 100644 --- a/share/vss/pedersen/dh.go +++ b/share/vss/pedersen/dh.go @@ -5,7 +5,7 @@ import ( "crypto/cipher" "hash" - "go.dedis.ch/kyber/v3" + "github.com/drand/kyber" "golang.org/x/crypto/hkdf" ) diff --git a/share/vss/pedersen/vss.go b/share/vss/pedersen/vss.go index 91c9ec637..b441d84aa 100644 --- a/share/vss/pedersen/vss.go +++ b/share/vss/pedersen/vss.go @@ -12,9 +12,9 @@ import ( "fmt" "reflect" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/share" - "go.dedis.ch/kyber/v3/sign/schnorr" + "github.com/drand/kyber" + "github.com/drand/kyber/share" + "github.com/drand/kyber/sign/schnorr" "go.dedis.ch/protobuf" ) diff --git a/share/vss/pedersen/vss_test.go b/share/vss/pedersen/vss_test.go index e97efdd51..c1c3afa4f 100644 --- a/share/vss/pedersen/vss_test.go +++ b/share/vss/pedersen/vss_test.go @@ -6,10 +6,10 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/edwards25519" - "go.dedis.ch/kyber/v3/sign/schnorr" - "go.dedis.ch/kyber/v3/xof/blake2xb" + "github.com/drand/kyber" + "github.com/drand/kyber/group/edwards25519" + "github.com/drand/kyber/sign/schnorr" + "github.com/drand/kyber/xof/blake2xb" "go.dedis.ch/protobuf" ) diff --git a/share/vss/rabin/dh.go b/share/vss/rabin/dh.go index 345c397d1..3f0cbb8ab 100644 --- a/share/vss/rabin/dh.go +++ b/share/vss/rabin/dh.go @@ -5,7 +5,7 @@ import ( "crypto/cipher" "hash" - "go.dedis.ch/kyber/v3" + "github.com/drand/kyber" "golang.org/x/crypto/hkdf" ) diff --git a/share/vss/rabin/vss.go b/share/vss/rabin/vss.go index d9e8f06e9..3cdec86a6 100644 --- a/share/vss/rabin/vss.go +++ b/share/vss/rabin/vss.go @@ -36,9 +36,9 @@ import ( "fmt" "reflect" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/share" - "go.dedis.ch/kyber/v3/sign/schnorr" + "github.com/drand/kyber" + "github.com/drand/kyber/share" + "github.com/drand/kyber/sign/schnorr" "go.dedis.ch/protobuf" ) diff --git a/share/vss/rabin/vss_test.go b/share/vss/rabin/vss_test.go index 87c4c5fc3..074e010c8 100644 --- a/share/vss/rabin/vss_test.go +++ b/share/vss/rabin/vss_test.go @@ -6,9 +6,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/edwards25519" - "go.dedis.ch/kyber/v3/sign/schnorr" + "github.com/drand/kyber" + "github.com/drand/kyber/group/edwards25519" + "github.com/drand/kyber/sign/schnorr" "go.dedis.ch/protobuf" ) diff --git a/shuffle/biffle.go b/shuffle/biffle.go index af0ec72d3..2060a8a00 100644 --- a/shuffle/biffle.go +++ b/shuffle/biffle.go @@ -3,9 +3,9 @@ package shuffle import ( "crypto/cipher" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/proof" - "go.dedis.ch/kyber/v3/util/random" + "github.com/drand/kyber" + "github.com/drand/kyber/proof" + "github.com/drand/kyber/util/random" ) func bifflePred() proof.Predicate { diff --git a/shuffle/biffle_test.go b/shuffle/biffle_test.go index 2b73cde33..bcc1fd270 100644 --- a/shuffle/biffle_test.go +++ b/shuffle/biffle_test.go @@ -3,10 +3,10 @@ package shuffle import ( "testing" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/edwards25519" - "go.dedis.ch/kyber/v3/proof" - "go.dedis.ch/kyber/v3/xof/blake2xb" + "github.com/drand/kyber" + "github.com/drand/kyber/group/edwards25519" + "github.com/drand/kyber/proof" + "github.com/drand/kyber/xof/blake2xb" ) func TestBiffle(t *testing.T) { diff --git a/shuffle/pair.go b/shuffle/pair.go index 9be69550f..8422d9699 100644 --- a/shuffle/pair.go +++ b/shuffle/pair.go @@ -24,9 +24,9 @@ import ( "encoding/binary" "errors" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/proof" - "go.dedis.ch/kyber/v3/util/random" + "github.com/drand/kyber" + "github.com/drand/kyber/proof" + "github.com/drand/kyber/util/random" ) // Suite wraps the functionalities needed by the shuffle/ package. These are the diff --git a/shuffle/shuffle_test.go b/shuffle/shuffle_test.go index c46fb1323..ef392aa81 100644 --- a/shuffle/shuffle_test.go +++ b/shuffle/shuffle_test.go @@ -3,10 +3,10 @@ package shuffle import ( "testing" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/edwards25519" - "go.dedis.ch/kyber/v3/proof" - "go.dedis.ch/kyber/v3/xof/blake2xb" + "github.com/drand/kyber" + "github.com/drand/kyber/group/edwards25519" + "github.com/drand/kyber/proof" + "github.com/drand/kyber/xof/blake2xb" ) var k = 5 diff --git a/shuffle/simple.go b/shuffle/simple.go index 7f7149815..f07b5ca24 100644 --- a/shuffle/simple.go +++ b/shuffle/simple.go @@ -4,8 +4,8 @@ import ( "crypto/cipher" "errors" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/proof" + "github.com/drand/kyber" + "github.com/drand/kyber/proof" ) // XX the Zs in front of some field names are a kludge to make them diff --git a/shuffle/vartime_test.go b/shuffle/vartime_test.go index f996a7fd1..31145da42 100644 --- a/shuffle/vartime_test.go +++ b/shuffle/vartime_test.go @@ -3,7 +3,7 @@ package shuffle import ( "testing" - "go.dedis.ch/kyber/v3/group/nist" + "github.com/drand/kyber/group/nist" ) func BenchmarkBiffleP256(b *testing.B) { diff --git a/sign/anon/anon.go b/sign/anon/anon.go index a22168b68..b52d342ba 100644 --- a/sign/anon/anon.go +++ b/sign/anon/anon.go @@ -2,7 +2,7 @@ package anon import ( - "go.dedis.ch/kyber/v3" + "github.com/drand/kyber" ) // Set represents an explicit anonymity set diff --git a/sign/anon/enc.go b/sign/anon/enc.go index dc1d4f674..49ea97a1f 100644 --- a/sign/anon/enc.go +++ b/sign/anon/enc.go @@ -4,8 +4,8 @@ import ( "crypto/subtle" "errors" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/util/key" + "github.com/drand/kyber" + "github.com/drand/kyber/util/key" ) func header(suite Suite, X kyber.Point, x kyber.Scalar, diff --git a/sign/anon/enc_test.go b/sign/anon/enc_test.go index 7c3fbe4fa..1165b929e 100644 --- a/sign/anon/enc_test.go +++ b/sign/anon/enc_test.go @@ -5,9 +5,9 @@ import ( "encoding/hex" "fmt" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/edwards25519" - "go.dedis.ch/kyber/v3/xof/blake2xb" + "github.com/drand/kyber" + "github.com/drand/kyber/group/edwards25519" + "github.com/drand/kyber/xof/blake2xb" ) func ExampleEncrypt_one() { diff --git a/sign/anon/sig.go b/sign/anon/sig.go index cd0a2e594..5f78f15f5 100644 --- a/sign/anon/sig.go +++ b/sign/anon/sig.go @@ -4,7 +4,7 @@ import ( "bytes" "errors" - "go.dedis.ch/kyber/v3" + "github.com/drand/kyber" ) // unlinkable ring signature diff --git a/sign/anon/sig_test.go b/sign/anon/sig_test.go index 7b0ffce31..ecfb992c7 100644 --- a/sign/anon/sig_test.go +++ b/sign/anon/sig_test.go @@ -6,10 +6,10 @@ import ( "fmt" "testing" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/edwards25519" - "go.dedis.ch/kyber/v3/util/random" - "go.dedis.ch/kyber/v3/xof/blake2xb" + "github.com/drand/kyber" + "github.com/drand/kyber/group/edwards25519" + "github.com/drand/kyber/util/random" + "github.com/drand/kyber/xof/blake2xb" ) // This example demonstrates signing and signature verification diff --git a/sign/anon/suite.go b/sign/anon/suite.go index b84013941..b3dc8361d 100644 --- a/sign/anon/suite.go +++ b/sign/anon/suite.go @@ -1,7 +1,7 @@ package anon import ( - "go.dedis.ch/kyber/v3" + "github.com/drand/kyber" ) // Suite represents the set of functionalities needed by the package anon. diff --git a/sign/bdn/bdn.go b/sign/bdn/bdn.go index 7f8aa78f9..8061258b0 100644 --- a/sign/bdn/bdn.go +++ b/sign/bdn/bdn.go @@ -14,11 +14,11 @@ import ( "errors" "math/big" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/mod" - "go.dedis.ch/kyber/v3/pairing" - "go.dedis.ch/kyber/v3/sign" - "go.dedis.ch/kyber/v3/sign/bls" + "github.com/drand/kyber" + "github.com/drand/kyber/group/mod" + "github.com/drand/kyber/pairing" + "github.com/drand/kyber/sign" + "github.com/drand/kyber/sign/bls" "golang.org/x/crypto/blake2s" ) diff --git a/sign/bdn/bdn_test.go b/sign/bdn/bdn_test.go index d2542b458..4ef9a210d 100644 --- a/sign/bdn/bdn_test.go +++ b/sign/bdn/bdn_test.go @@ -5,12 +5,12 @@ import ( "testing" "github.com/stretchr/testify/require" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/pairing" - "go.dedis.ch/kyber/v3/pairing/bn256" - "go.dedis.ch/kyber/v3/sign" - "go.dedis.ch/kyber/v3/sign/bls" - "go.dedis.ch/kyber/v3/util/random" + "github.com/drand/kyber" + "github.com/drand/kyber/pairing" + "github.com/drand/kyber/pairing/bn256" + "github.com/drand/kyber/sign" + "github.com/drand/kyber/sign/bls" + "github.com/drand/kyber/util/random" ) var suite = pairing.NewSuiteBn256() diff --git a/sign/bls/bls.go b/sign/bls/bls.go index 452f1f70e..d2f53ea20 100644 --- a/sign/bls/bls.go +++ b/sign/bls/bls.go @@ -17,9 +17,9 @@ import ( "errors" "fmt" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/pairing" - "go.dedis.ch/kyber/v3/sign" + "github.com/drand/kyber" + "github.com/drand/kyber/pairing" + "github.com/drand/kyber/sign" ) type hashablePoint interface { diff --git a/sign/bls/bls_test.go b/sign/bls/bls_test.go index 0f7f3cfa9..88f97bdf6 100644 --- a/sign/bls/bls_test.go +++ b/sign/bls/bls_test.go @@ -5,9 +5,9 @@ import ( "testing" "github.com/stretchr/testify/require" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/pairing/bn256" - "go.dedis.ch/kyber/v3/util/random" + "github.com/drand/kyber" + "github.com/drand/kyber/pairing/bn256" + "github.com/drand/kyber/util/random" ) func TestBLS(t *testing.T) { diff --git a/sign/cosi/cosi.go b/sign/cosi/cosi.go index 6aa340608..b63196041 100644 --- a/sign/cosi/cosi.go +++ b/sign/cosi/cosi.go @@ -43,7 +43,7 @@ import ( "errors" "fmt" - "go.dedis.ch/kyber/v3" + "github.com/drand/kyber" ) // Commit returns a random scalar v, generated from the given suite, diff --git a/sign/cosi/cosi_test.go b/sign/cosi/cosi_test.go index 437e11e98..349f192e0 100644 --- a/sign/cosi/cosi_test.go +++ b/sign/cosi/cosi_test.go @@ -7,11 +7,11 @@ import ( "hash" "testing" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/edwards25519" - "go.dedis.ch/kyber/v3/sign/eddsa" - "go.dedis.ch/kyber/v3/util/key" - "go.dedis.ch/kyber/v3/xof/blake2xb" + "github.com/drand/kyber" + "github.com/drand/kyber/group/edwards25519" + "github.com/drand/kyber/sign/eddsa" + "github.com/drand/kyber/util/key" + "github.com/drand/kyber/xof/blake2xb" ) // Specify cipher suite using AES-128, SHA512, and the Edwards25519 curve. diff --git a/sign/cosi/suite.go b/sign/cosi/suite.go index 91529379b..da9cc2632 100644 --- a/sign/cosi/suite.go +++ b/sign/cosi/suite.go @@ -1,6 +1,6 @@ package cosi -import "go.dedis.ch/kyber/v3" +import "github.com/drand/kyber" // Suite specifies the cryptographic building blocks required for the cosi package. type Suite interface { diff --git a/sign/dss/dss.go b/sign/dss/dss.go index 4a899d5b7..ec1d3f4a0 100644 --- a/sign/dss/dss.go +++ b/sign/dss/dss.go @@ -19,10 +19,10 @@ import ( "crypto/sha512" "errors" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/share" - "go.dedis.ch/kyber/v3/sign/eddsa" - "go.dedis.ch/kyber/v3/sign/schnorr" + "github.com/drand/kyber" + "github.com/drand/kyber/share" + "github.com/drand/kyber/sign/eddsa" + "github.com/drand/kyber/sign/schnorr" ) // Suite represents the functionalities needed by the dss package diff --git a/sign/dss/dss_test.go b/sign/dss/dss_test.go index 4dc891a13..fb5808225 100644 --- a/sign/dss/dss_test.go +++ b/sign/dss/dss_test.go @@ -6,11 +6,11 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/edwards25519" - dkg "go.dedis.ch/kyber/v3/share/dkg/rabin" - "go.dedis.ch/kyber/v3/sign/eddsa" - "go.dedis.ch/kyber/v3/sign/schnorr" + "github.com/drand/kyber" + "github.com/drand/kyber/group/edwards25519" + dkg "github.com/drand/kyber/share/dkg/rabin" + "github.com/drand/kyber/sign/eddsa" + "github.com/drand/kyber/sign/schnorr" ) var suite = edwards25519.NewBlakeSHA256Ed25519() diff --git a/sign/eddsa/eddsa.go b/sign/eddsa/eddsa.go index 00cc0141e..89d46cbbc 100644 --- a/sign/eddsa/eddsa.go +++ b/sign/eddsa/eddsa.go @@ -8,8 +8,8 @@ import ( "errors" "fmt" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/edwards25519" + "github.com/drand/kyber" + "github.com/drand/kyber/group/edwards25519" ) var group = new(edwards25519.Curve) diff --git a/sign/eddsa/eddsa_test.go b/sign/eddsa/eddsa_test.go index 07b0d61d5..cb332cf18 100644 --- a/sign/eddsa/eddsa_test.go +++ b/sign/eddsa/eddsa_test.go @@ -11,7 +11,7 @@ import ( "strings" "testing" - "go.dedis.ch/kyber/v3/group/edwards25519" + "github.com/drand/kyber/group/edwards25519" "github.com/stretchr/testify/assert" ) diff --git a/sign/mask.go b/sign/mask.go index 3ae255f57..98e96f0f6 100644 --- a/sign/mask.go +++ b/sign/mask.go @@ -5,8 +5,8 @@ import ( "errors" "fmt" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/pairing" + "github.com/drand/kyber" + "github.com/drand/kyber/pairing" ) // Mask is a bitmask of the participation to a collective signature. diff --git a/sign/mask_test.go b/sign/mask_test.go index 5308f31db..b99a3055a 100644 --- a/sign/mask_test.go +++ b/sign/mask_test.go @@ -5,9 +5,9 @@ import ( "testing" "github.com/stretchr/testify/require" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/pairing" - "go.dedis.ch/kyber/v3/util/key" + "github.com/drand/kyber" + "github.com/drand/kyber/pairing" + "github.com/drand/kyber/util/key" ) const n = 17 diff --git a/sign/schnorr/schnorr.go b/sign/schnorr/schnorr.go index def76095b..9ca3e8373 100644 --- a/sign/schnorr/schnorr.go +++ b/sign/schnorr/schnorr.go @@ -17,7 +17,7 @@ import ( "errors" "fmt" - "go.dedis.ch/kyber/v3" + "github.com/drand/kyber" ) // Suite represents the set of functionalities needed by the package schnorr. diff --git a/sign/schnorr/schnorr_test.go b/sign/schnorr/schnorr_test.go index 43d9855ba..76a172ccf 100644 --- a/sign/schnorr/schnorr_test.go +++ b/sign/schnorr/schnorr_test.go @@ -7,9 +7,9 @@ import ( "testing/quick" "github.com/stretchr/testify/assert" - "go.dedis.ch/kyber/v3/group/edwards25519" - "go.dedis.ch/kyber/v3/sign/eddsa" - "go.dedis.ch/kyber/v3/util/key" + "github.com/drand/kyber/group/edwards25519" + "github.com/drand/kyber/sign/eddsa" + "github.com/drand/kyber/util/key" ) func TestSchnorrSignature(t *testing.T) { diff --git a/sign/sign.go b/sign/sign.go index d2a4e606d..e3c52c3e4 100644 --- a/sign/sign.go +++ b/sign/sign.go @@ -3,7 +3,7 @@ package sign import ( "crypto/cipher" - "go.dedis.ch/kyber/v3" + "github.com/drand/kyber" ) // Scheme is the minimal interface for a signature scheme. diff --git a/sign/tbls/tbls.go b/sign/tbls/tbls.go index 8d12511e3..1a17f5f92 100644 --- a/sign/tbls/tbls.go +++ b/sign/tbls/tbls.go @@ -14,9 +14,9 @@ import ( "bytes" "encoding/binary" - "go.dedis.ch/kyber/v3/pairing" - "go.dedis.ch/kyber/v3/share" - "go.dedis.ch/kyber/v3/sign/bls" + "github.com/drand/kyber/pairing" + "github.com/drand/kyber/share" + "github.com/drand/kyber/sign/bls" ) // SigShare encodes a threshold BLS signature share Si = i || v where the 2-byte diff --git a/sign/tbls/tbls_test.go b/sign/tbls/tbls_test.go index 5254bb7f6..51acf5df1 100644 --- a/sign/tbls/tbls_test.go +++ b/sign/tbls/tbls_test.go @@ -4,9 +4,9 @@ import ( "testing" "github.com/stretchr/testify/require" - "go.dedis.ch/kyber/v3/pairing/bn256" - "go.dedis.ch/kyber/v3/share" - "go.dedis.ch/kyber/v3/sign/bls" + "github.com/drand/kyber/pairing/bn256" + "github.com/drand/kyber/share" + "github.com/drand/kyber/sign/bls" ) func TestTBLS(test *testing.T) { diff --git a/suites/all.go b/suites/all.go index 616235d3e..3a25eadff 100644 --- a/suites/all.go +++ b/suites/all.go @@ -1,10 +1,10 @@ package suites import ( - "go.dedis.ch/kyber/v3/group/edwards25519" - "go.dedis.ch/kyber/v3/group/nist" - "go.dedis.ch/kyber/v3/pairing" - "go.dedis.ch/kyber/v3/pairing/bn256" + "github.com/drand/kyber/group/edwards25519" + "github.com/drand/kyber/group/nist" + "github.com/drand/kyber/pairing" + "github.com/drand/kyber/pairing/bn256" ) func init() { diff --git a/suites/suites.go b/suites/suites.go index ab95395c4..403933710 100644 --- a/suites/suites.go +++ b/suites/suites.go @@ -8,7 +8,7 @@ import ( "errors" "strings" - "go.dedis.ch/kyber/v3" + "github.com/drand/kyber" ) // Suite is the sum of all suites mix-ins in Kyber. diff --git a/util/encoding/encoding.go b/util/encoding/encoding.go index f1f86b6d1..737aada9b 100644 --- a/util/encoding/encoding.go +++ b/util/encoding/encoding.go @@ -8,7 +8,7 @@ import ( "io" "strings" - "go.dedis.ch/kyber/v3" + "github.com/drand/kyber" ) // ReadHexPoint reads a point from r in hex representation. diff --git a/util/encoding/encoding_test.go b/util/encoding/encoding_test.go index f1a0cccdc..a8567c984 100644 --- a/util/encoding/encoding_test.go +++ b/util/encoding/encoding_test.go @@ -5,7 +5,7 @@ import ( "testing" "github.com/stretchr/testify/require" - "go.dedis.ch/kyber/v3/group/edwards25519" + "github.com/drand/kyber/group/edwards25519" ) var s = edwards25519.NewBlakeSHA256Ed25519() diff --git a/util/key/key.go b/util/key/key.go index f77c2d20e..e29227759 100644 --- a/util/key/key.go +++ b/util/key/key.go @@ -4,7 +4,7 @@ package key import ( "crypto/cipher" - "go.dedis.ch/kyber/v3" + "github.com/drand/kyber" ) // Generator is a type that needs to implement a special case in order diff --git a/util/key/key_test.go b/util/key/key_test.go index 406032d7b..a6875f6df 100644 --- a/util/key/key_test.go +++ b/util/key/key_test.go @@ -4,8 +4,8 @@ import ( "crypto/cipher" "testing" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/group/edwards25519" + "github.com/drand/kyber" + "github.com/drand/kyber/group/edwards25519" ) func TestNewKeyPair(t *testing.T) { diff --git a/util/random/rand.go b/util/random/rand.go index b7e9a7e7c..04e0e7ec6 100644 --- a/util/random/rand.go +++ b/util/random/rand.go @@ -10,7 +10,7 @@ import ( "io" "math/big" - "go.dedis.ch/kyber/v3/xof/blake2xb" + "github.com/drand/kyber/xof/blake2xb" ) // Bits chooses a uniform random BigInt with a given maximum BitLen. diff --git a/util/test/group.go b/util/test/group.go index 1aa4cf6ba..d25106e59 100644 --- a/util/test/group.go +++ b/util/test/group.go @@ -1,8 +1,8 @@ package test import ( - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/util/random" + "github.com/drand/kyber" + "github.com/drand/kyber/util/random" ) // GroupBench is a generic benchmark suite for kyber.groups. diff --git a/util/test/test.go b/util/test/test.go index f63a436c4..cf4811603 100644 --- a/util/test/test.go +++ b/util/test/test.go @@ -5,9 +5,9 @@ import ( "crypto/cipher" "testing" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/util/key" - "go.dedis.ch/kyber/v3/util/random" + "github.com/drand/kyber" + "github.com/drand/kyber/util/key" + "github.com/drand/kyber/util/random" ) // Suite represents the functionalities that this package can test diff --git a/xof/blake2xb/blake.go b/xof/blake2xb/blake.go index 9fdfeb049..9d42191b9 100644 --- a/xof/blake2xb/blake.go +++ b/xof/blake2xb/blake.go @@ -3,7 +3,7 @@ package blake2xb import ( - "go.dedis.ch/kyber/v3" + "github.com/drand/kyber" "golang.org/x/crypto/blake2b" ) diff --git a/xof/blake2xs/blake.go b/xof/blake2xs/blake.go index 8a91862d3..bd3b872ad 100644 --- a/xof/blake2xs/blake.go +++ b/xof/blake2xs/blake.go @@ -3,7 +3,7 @@ package blake2xs import ( - "go.dedis.ch/kyber/v3" + "github.com/drand/kyber" "golang.org/x/crypto/blake2s" ) diff --git a/xof/keccak/keccak.go b/xof/keccak/keccak.go index d29e48c02..cd5a570e3 100644 --- a/xof/keccak/keccak.go +++ b/xof/keccak/keccak.go @@ -3,7 +3,7 @@ package keccak import ( - "go.dedis.ch/kyber/v3" + "github.com/drand/kyber" "golang.org/x/crypto/sha3" ) diff --git a/xof/xof_test.go b/xof/xof_test.go index e1e844ee1..b73d73a3f 100644 --- a/xof/xof_test.go +++ b/xof/xof_test.go @@ -6,9 +6,9 @@ import ( "testing" "github.com/stretchr/testify/require" - "go.dedis.ch/kyber/v3" - "go.dedis.ch/kyber/v3/xof/blake2xb" - "go.dedis.ch/kyber/v3/xof/keccak" + "github.com/drand/kyber" + "github.com/drand/kyber/xof/blake2xb" + "github.com/drand/kyber/xof/keccak" ) type blakeF struct{}