From 74c928684e581182f6c9a1eb5aba2c0d08bfcc3f Mon Sep 17 00:00:00 2001 From: Jean Date: Tue, 10 Dec 2024 14:12:25 +0100 Subject: [PATCH] change github.com to go.dedis.ch --- Makefile | 4 ++-- README.md | 4 ++-- cli/cosipbftcontroller/action_test.go | 2 +- cli/cosipbftcontroller/mod_test.go | 4 ++-- cli/dvoting/mod.go | 16 ++++++++-------- cli/postinstall/mod.go | 8 ++++---- contracts/evoting/controller/action.go | 14 +++++++------- contracts/evoting/evoting.go | 2 +- contracts/evoting/json/ciphervote.go | 2 +- contracts/evoting/json/forms.go | 2 +- contracts/evoting/json/mod.go | 2 +- contracts/evoting/json/suffragia.go | 2 +- contracts/evoting/json/transaction.go | 2 +- contracts/evoting/mod.go | 8 ++++---- contracts/evoting/mod_test.go | 6 +++--- go.mod | 2 +- integration/ballot.go | 14 +++++++------- integration/dkg.go | 4 ++-- integration/dvotingdela.go | 12 ++++++------ integration/form.go | 10 +++++----- integration/integration_test.go | 6 +++--- integration/nodes.go | 2 +- integration/performance_test.go | 6 +++--- integration/scenario_test.go | 4 ++-- integration/shuffle.go | 2 +- integration/transaction.go | 6 +++--- integration/votes_test.go | 6 +++--- internal/testing/fake/dkg.go | 2 +- internal/testing/fake/election.go | 2 +- internal/testing/fake/ordering.go | 2 +- metrics/controller/action.go | 2 +- proxy/dkg.go | 4 ++-- proxy/dkg_test.go | 4 ++-- proxy/election.go | 8 ++++---- proxy/mod.go | 2 +- proxy/shuffle.go | 4 ++-- proxy/txnmanager/mod.go | 2 +- proxy/txnmanager/transaction.go | 2 +- proxy/types/election.go | 2 +- services/dkg/pedersen/controller/action.go | 6 +++--- services/dkg/pedersen/controller/action_test.go | 4 ++-- services/dkg/pedersen/controller/mod.go | 6 +++--- services/dkg/pedersen/controller/mod_test.go | 2 +- services/dkg/pedersen/handler.go | 8 ++++---- services/dkg/pedersen/handler_test.go | 8 ++++---- services/dkg/pedersen/json/mod.go | 2 +- services/dkg/pedersen/json/mod_test.go | 4 ++-- services/dkg/pedersen/mod.go | 14 +++++++------- services/dkg/pedersen/mod_test.go | 10 +++++----- services/dkg/pedersen/types/messages_test.go | 2 +- services/shuffle/neff/controller/action.go | 4 ++-- services/shuffle/neff/controller/mod.go | 4 ++-- services/shuffle/neff/controller/mod_test.go | 2 +- services/shuffle/neff/handler.go | 6 +++--- services/shuffle/neff/handler_test.go | 6 +++--- services/shuffle/neff/json/mod.go | 2 +- services/shuffle/neff/json/mod_test.go | 4 ++-- services/shuffle/neff/mod.go | 6 +++--- services/shuffle/neff/mod_test.go | 6 +++--- services/shuffle/neff/types/messages_test.go | 2 +- 60 files changed, 148 insertions(+), 148 deletions(-) diff --git a/Makefile b/Makefile index a774d69a0..cb82375b0 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ version=$(shell git describe --abbrev=0 --tags || echo '0.0.0') -versionFlag="github.com/dedis/d-voting.Version=$(version)" +versionFlag="go.dedis.ch/d-voting.Version=$(version)" versionFile=$(shell echo $(version) | tr . _) -timeFlag="github.com/dedis/d-voting.BuildTime=$(shell date +'%d/%m/%y_%H:%M')" +timeFlag="go.dedis.ch/d-voting.BuildTime=$(shell date +'%d/%m/%y_%H:%M')" lint: # Coding style static check. diff --git a/README.md b/README.md index cf4c87cc7..1c5f5ac15 100644 --- a/README.md +++ b/README.md @@ -650,8 +650,8 @@ Build info can be added to the binary with the `ldflags`, at build time. Infos are stored on variables in the root `mod.go`. For example: ```sh -versionFlag="github.com/dedis/d-voting.Version=`git describe --tags`" -timeFlag="github.com/dedis/d-voting.BuildTime=`date +'%d/%m/%y_%H:%M'`" +versionFlag="go.dedis.ch/d-voting.Version=`git describe --tags`" +timeFlag="go.dedis.ch/d-voting.BuildTime=`date +'%d/%m/%y_%H:%M'`" go build -ldflags="-X $versionFlag -X $timeFlag" ./cli/dvoting ``` diff --git a/cli/cosipbftcontroller/action_test.go b/cli/cosipbftcontroller/action_test.go index 2d0ba484c..468aeadd7 100644 --- a/cli/cosipbftcontroller/action_test.go +++ b/cli/cosipbftcontroller/action_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "github.com/dedis/d-voting/internal/testing/fake" "github.com/stretchr/testify/require" + "go.dedis.ch/d-voting/internal/testing/fake" "go.dedis.ch/dela/cli/node" "go.dedis.ch/dela/core/access" "go.dedis.ch/dela/core/ordering" diff --git a/cli/cosipbftcontroller/mod_test.go b/cli/cosipbftcontroller/mod_test.go index ac9e3525e..a0b4323e1 100644 --- a/cli/cosipbftcontroller/mod_test.go +++ b/cli/cosipbftcontroller/mod_test.go @@ -6,11 +6,11 @@ import ( "path/filepath" "testing" - "github.com/dedis/d-voting/services/dkg" + "go.dedis.ch/d-voting/services/dkg" "go.dedis.ch/dela/core/ordering" - "github.com/dedis/d-voting/internal/testing/fake" "github.com/stretchr/testify/require" + "go.dedis.ch/d-voting/internal/testing/fake" "go.dedis.ch/dela/cli" "go.dedis.ch/dela/cli/node" "go.dedis.ch/dela/core/store/kv" diff --git a/cli/dvoting/mod.go b/cli/dvoting/mod.go index f562ed5bf..b031f55f0 100644 --- a/cli/dvoting/mod.go +++ b/cli/dvoting/mod.go @@ -30,14 +30,14 @@ import ( "io" "os" - dkg "github.com/dedis/d-voting/services/dkg/pedersen/controller" - "github.com/dedis/d-voting/services/dkg/pedersen/json" - shuffle "github.com/dedis/d-voting/services/shuffle/neff/controller" + dkg "go.dedis.ch/d-voting/services/dkg/pedersen/controller" + "go.dedis.ch/d-voting/services/dkg/pedersen/json" + shuffle "go.dedis.ch/d-voting/services/shuffle/neff/controller" - cosipbft "github.com/dedis/d-voting/cli/cosipbftcontroller" - "github.com/dedis/d-voting/cli/postinstall" - evoting "github.com/dedis/d-voting/contracts/evoting/controller" - metrics "github.com/dedis/d-voting/metrics/controller" + cosipbft "go.dedis.ch/d-voting/cli/cosipbftcontroller" + "go.dedis.ch/d-voting/cli/postinstall" + evoting "go.dedis.ch/d-voting/contracts/evoting/controller" + metrics "go.dedis.ch/d-voting/metrics/controller" "go.dedis.ch/dela/cli/node" access "go.dedis.ch/dela/contracts/access/controller" db "go.dedis.ch/dela/core/store/kv/controller" @@ -46,7 +46,7 @@ import ( mino "go.dedis.ch/dela/mino/minogrpc/controller" proxy "go.dedis.ch/dela/mino/proxy/http/controller" - _ "github.com/dedis/d-voting/services/shuffle/neff/json" + _ "go.dedis.ch/d-voting/services/shuffle/neff/json" gapi "go.dedis.ch/dela-apps/gapi/controller" ) diff --git a/cli/postinstall/mod.go b/cli/postinstall/mod.go index 560e57d40..920691a52 100644 --- a/cli/postinstall/mod.go +++ b/cli/postinstall/mod.go @@ -5,10 +5,10 @@ import ( "path/filepath" "time" - evoting "github.com/dedis/d-voting/contracts/evoting/controller" - prom "github.com/dedis/d-voting/metrics/controller" - dkg "github.com/dedis/d-voting/services/dkg/pedersen/controller" - neff "github.com/dedis/d-voting/services/shuffle/neff/controller" + evoting "go.dedis.ch/d-voting/contracts/evoting/controller" + prom "go.dedis.ch/d-voting/metrics/controller" + dkg "go.dedis.ch/d-voting/services/dkg/pedersen/controller" + neff "go.dedis.ch/d-voting/services/shuffle/neff/controller" "go.dedis.ch/dela" "go.dedis.ch/dela/cli" "go.dedis.ch/dela/cli/node" diff --git a/contracts/evoting/controller/action.go b/contracts/evoting/controller/action.go index 7073e16c9..5d0ba3b64 100644 --- a/contracts/evoting/controller/action.go +++ b/contracts/evoting/controller/action.go @@ -17,14 +17,14 @@ import ( "go.dedis.ch/kyber/v3/sign/schnorr" "go.dedis.ch/kyber/v3/suites" - "github.com/dedis/d-voting/contracts/evoting/types" - "github.com/dedis/d-voting/internal/testing/fake" - eproxy "github.com/dedis/d-voting/proxy" - "github.com/dedis/d-voting/proxy/txnmanager" - ptypes "github.com/dedis/d-voting/proxy/types" - "github.com/dedis/d-voting/services/dkg" - "github.com/dedis/d-voting/services/shuffle" "github.com/gorilla/mux" + "go.dedis.ch/d-voting/contracts/evoting/types" + "go.dedis.ch/d-voting/internal/testing/fake" + eproxy "go.dedis.ch/d-voting/proxy" + "go.dedis.ch/d-voting/proxy/txnmanager" + ptypes "go.dedis.ch/d-voting/proxy/types" + "go.dedis.ch/d-voting/services/dkg" + "go.dedis.ch/d-voting/services/shuffle" "go.dedis.ch/dela" "go.dedis.ch/dela/cli/node" "go.dedis.ch/dela/core/ordering" diff --git a/contracts/evoting/evoting.go b/contracts/evoting/evoting.go index 03e7e4cc7..6cdb27bcb 100644 --- a/contracts/evoting/evoting.go +++ b/contracts/evoting/evoting.go @@ -15,7 +15,7 @@ import ( "go.dedis.ch/dela/core/ordering/cosipbft/contracts/viewchange" "go.dedis.ch/kyber/v3/share" - "github.com/dedis/d-voting/contracts/evoting/types" + "go.dedis.ch/d-voting/contracts/evoting/types" "go.dedis.ch/dela/core/execution" "go.dedis.ch/dela/core/execution/native" "go.dedis.ch/dela/core/ordering/cosipbft/authority" diff --git a/contracts/evoting/json/ciphervote.go b/contracts/evoting/json/ciphervote.go index b8c51b65d..8ce2cc02a 100644 --- a/contracts/evoting/json/ciphervote.go +++ b/contracts/evoting/json/ciphervote.go @@ -1,7 +1,7 @@ package json import ( - "github.com/dedis/d-voting/contracts/evoting/types" + "go.dedis.ch/d-voting/contracts/evoting/types" "go.dedis.ch/dela/serde" "golang.org/x/xerrors" ) diff --git a/contracts/evoting/json/forms.go b/contracts/evoting/json/forms.go index 63f05b9ef..957f5d32d 100644 --- a/contracts/evoting/json/forms.go +++ b/contracts/evoting/json/forms.go @@ -4,7 +4,7 @@ import ( "encoding/hex" "encoding/json" - "github.com/dedis/d-voting/contracts/evoting/types" + "go.dedis.ch/d-voting/contracts/evoting/types" "go.dedis.ch/dela/core/ordering/cosipbft/authority" ctypes "go.dedis.ch/dela/core/ordering/cosipbft/types" "go.dedis.ch/dela/serde" diff --git a/contracts/evoting/json/mod.go b/contracts/evoting/json/mod.go index 5906611ce..8560478e5 100644 --- a/contracts/evoting/json/mod.go +++ b/contracts/evoting/json/mod.go @@ -1,7 +1,7 @@ package json import ( - "github.com/dedis/d-voting/contracts/evoting/types" + "go.dedis.ch/d-voting/contracts/evoting/types" "go.dedis.ch/dela/serde" ) diff --git a/contracts/evoting/json/suffragia.go b/contracts/evoting/json/suffragia.go index 7510f18bb..e18e4e1fb 100644 --- a/contracts/evoting/json/suffragia.go +++ b/contracts/evoting/json/suffragia.go @@ -3,7 +3,7 @@ package json import ( "encoding/json" - "github.com/dedis/d-voting/contracts/evoting/types" + "go.dedis.ch/d-voting/contracts/evoting/types" "go.dedis.ch/dela/serde" "golang.org/x/xerrors" ) diff --git a/contracts/evoting/json/transaction.go b/contracts/evoting/json/transaction.go index 6bbe77a98..6d90c4751 100644 --- a/contracts/evoting/json/transaction.go +++ b/contracts/evoting/json/transaction.go @@ -3,7 +3,7 @@ package json import ( "encoding/json" - "github.com/dedis/d-voting/contracts/evoting/types" + "go.dedis.ch/d-voting/contracts/evoting/types" "go.dedis.ch/dela/serde" "golang.org/x/xerrors" ) diff --git a/contracts/evoting/mod.go b/contracts/evoting/mod.go index 544269deb..bf78dc8c8 100644 --- a/contracts/evoting/mod.go +++ b/contracts/evoting/mod.go @@ -1,10 +1,10 @@ package evoting import ( - dvoting "github.com/dedis/d-voting" - "github.com/dedis/d-voting/contracts/evoting/types" - "github.com/dedis/d-voting/services/dkg" "github.com/prometheus/client_golang/prometheus" + dvoting "go.dedis.ch/d-voting" + "go.dedis.ch/d-voting/contracts/evoting/types" + "go.dedis.ch/d-voting/services/dkg" "go.dedis.ch/dela/core/access" "go.dedis.ch/dela/core/execution" "go.dedis.ch/dela/core/execution/native" @@ -19,7 +19,7 @@ import ( "golang.org/x/xerrors" // Register the JSON format for the form - _ "github.com/dedis/d-voting/contracts/evoting/json" + _ "go.dedis.ch/d-voting/contracts/evoting/json" ) var ( diff --git a/contracts/evoting/mod_test.go b/contracts/evoting/mod_test.go index f752ea62f..240c274d0 100644 --- a/contracts/evoting/mod_test.go +++ b/contracts/evoting/mod_test.go @@ -7,11 +7,11 @@ import ( "strconv" "testing" - "github.com/dedis/d-voting/contracts/evoting/types" - "github.com/dedis/d-voting/internal/testing/fake" - "github.com/dedis/d-voting/services/dkg" "github.com/prometheus/client_golang/prometheus/testutil" "github.com/stretchr/testify/require" + "go.dedis.ch/d-voting/contracts/evoting/types" + "go.dedis.ch/d-voting/internal/testing/fake" + "go.dedis.ch/d-voting/services/dkg" "go.dedis.ch/dela/core/access" "go.dedis.ch/dela/core/execution" "go.dedis.ch/dela/core/execution/native" diff --git a/go.mod b/go.mod index 991b22b35..23376f01f 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/dedis/d-voting +module go.dedis.ch/d-voting go 1.23 diff --git a/integration/ballot.go b/integration/ballot.go index d3e611029..a5e70b718 100644 --- a/integration/ballot.go +++ b/integration/ballot.go @@ -14,14 +14,14 @@ import ( "sync/atomic" - "github.com/dedis/d-voting/contracts/evoting" - "github.com/dedis/d-voting/contracts/evoting/controller" - "github.com/dedis/d-voting/contracts/evoting/types" - "github.com/dedis/d-voting/internal/testing/fake" - "github.com/dedis/d-voting/proxy/txnmanager" - ptypes "github.com/dedis/d-voting/proxy/types" - "github.com/dedis/d-voting/services/dkg" "github.com/stretchr/testify/require" + "go.dedis.ch/d-voting/contracts/evoting" + "go.dedis.ch/d-voting/contracts/evoting/controller" + "go.dedis.ch/d-voting/contracts/evoting/types" + "go.dedis.ch/d-voting/internal/testing/fake" + "go.dedis.ch/d-voting/proxy/txnmanager" + ptypes "go.dedis.ch/d-voting/proxy/types" + "go.dedis.ch/d-voting/services/dkg" "go.dedis.ch/dela/core/execution/native" "go.dedis.ch/dela/core/txn" "go.dedis.ch/kyber/v3" diff --git a/integration/dkg.go b/integration/dkg.go index 94f06a448..8dfc703ad 100644 --- a/integration/dkg.go +++ b/integration/dkg.go @@ -8,9 +8,9 @@ import ( "testing" "time" - ptypes "github.com/dedis/d-voting/proxy/types" - "github.com/dedis/d-voting/services/dkg" "github.com/stretchr/testify/require" + ptypes "go.dedis.ch/d-voting/proxy/types" + "go.dedis.ch/d-voting/services/dkg" "go.dedis.ch/dela/core/txn" "go.dedis.ch/kyber/v3" "golang.org/x/xerrors" diff --git a/integration/dvotingdela.go b/integration/dvotingdela.go index a7791076e..4c2cf556c 100644 --- a/integration/dvotingdela.go +++ b/integration/dvotingdela.go @@ -14,13 +14,13 @@ import ( "sync" "time" - "github.com/dedis/d-voting/contracts/evoting" - etypes "github.com/dedis/d-voting/contracts/evoting/types" - "github.com/dedis/d-voting/services/dkg" - "github.com/dedis/d-voting/services/dkg/pedersen" - "github.com/dedis/d-voting/services/shuffle" - "github.com/dedis/d-voting/services/shuffle/neff" "github.com/stretchr/testify/require" + "go.dedis.ch/d-voting/contracts/evoting" + etypes "go.dedis.ch/d-voting/contracts/evoting/types" + "go.dedis.ch/d-voting/services/dkg" + "go.dedis.ch/d-voting/services/dkg/pedersen" + "go.dedis.ch/d-voting/services/shuffle" + "go.dedis.ch/d-voting/services/shuffle/neff" accessContract "go.dedis.ch/dela/contracts/access" "go.dedis.ch/dela/contracts/value" "go.dedis.ch/dela/core/access" diff --git a/integration/form.go b/integration/form.go index 79c358cb6..5f178215f 100644 --- a/integration/form.go +++ b/integration/form.go @@ -11,12 +11,12 @@ import ( "testing" "time" - "github.com/dedis/d-voting/contracts/evoting" - "github.com/dedis/d-voting/contracts/evoting/types" - "github.com/dedis/d-voting/internal/testing/fake" - "github.com/dedis/d-voting/proxy/txnmanager" - ptypes "github.com/dedis/d-voting/proxy/types" "github.com/stretchr/testify/require" + "go.dedis.ch/d-voting/contracts/evoting" + "go.dedis.ch/d-voting/contracts/evoting/types" + "go.dedis.ch/d-voting/internal/testing/fake" + "go.dedis.ch/d-voting/proxy/txnmanager" + ptypes "go.dedis.ch/d-voting/proxy/types" "go.dedis.ch/dela/core/execution/native" "go.dedis.ch/dela/core/ordering" "go.dedis.ch/dela/core/txn" diff --git a/integration/integration_test.go b/integration/integration_test.go index f090147b3..110200f4d 100644 --- a/integration/integration_test.go +++ b/integration/integration_test.go @@ -8,11 +8,11 @@ import ( "testing" "time" - "github.com/dedis/d-voting/contracts/evoting/types" - _ "github.com/dedis/d-voting/services/dkg/pedersen/json" - _ "github.com/dedis/d-voting/services/shuffle/neff/json" "github.com/rs/zerolog" "github.com/stretchr/testify/require" + "go.dedis.ch/d-voting/contracts/evoting/types" + _ "go.dedis.ch/d-voting/services/dkg/pedersen/json" + _ "go.dedis.ch/d-voting/services/shuffle/neff/json" delaPkg "go.dedis.ch/dela" ) diff --git a/integration/nodes.go b/integration/nodes.go index 00945dd52..aa7b235a1 100644 --- a/integration/nodes.go +++ b/integration/nodes.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "github.com/dedis/d-voting/contracts/evoting/types" "github.com/stretchr/testify/require" + "go.dedis.ch/d-voting/contracts/evoting/types" "golang.org/x/xerrors" ) diff --git a/integration/performance_test.go b/integration/performance_test.go index 2addb1d3d..e1e73d1e9 100644 --- a/integration/performance_test.go +++ b/integration/performance_test.go @@ -11,10 +11,10 @@ import ( "testing" "time" - "github.com/dedis/d-voting/contracts/evoting" - "github.com/dedis/d-voting/contracts/evoting/types" - "github.com/dedis/d-voting/services/dkg" "github.com/stretchr/testify/require" + "go.dedis.ch/d-voting/contracts/evoting" + "go.dedis.ch/d-voting/contracts/evoting/types" + "go.dedis.ch/d-voting/services/dkg" "go.dedis.ch/dela/core/execution/native" "go.dedis.ch/dela/core/ordering/cosipbft" "go.dedis.ch/dela/core/txn" diff --git a/integration/scenario_test.go b/integration/scenario_test.go index 52858cf2a..a770a5984 100644 --- a/integration/scenario_test.go +++ b/integration/scenario_test.go @@ -14,9 +14,9 @@ import ( "testing" "time" - "github.com/dedis/d-voting/contracts/evoting/types" - ptypes "github.com/dedis/d-voting/proxy/types" "github.com/stretchr/testify/require" + "go.dedis.ch/d-voting/contracts/evoting/types" + ptypes "go.dedis.ch/d-voting/proxy/types" "go.dedis.ch/kyber/v3/util/encoding" ) diff --git a/integration/shuffle.go b/integration/shuffle.go index 956dc1505..66fe60369 100644 --- a/integration/shuffle.go +++ b/integration/shuffle.go @@ -1,7 +1,7 @@ package integration import ( - "github.com/dedis/d-voting/services/shuffle" + "go.dedis.ch/d-voting/services/shuffle" "go.dedis.ch/dela/core/txn/signed" "golang.org/x/xerrors" ) diff --git a/integration/transaction.go b/integration/transaction.go index 6d26599ea..f6b62b85f 100644 --- a/integration/transaction.go +++ b/integration/transaction.go @@ -12,9 +12,9 @@ import ( "testing" "time" - "github.com/dedis/d-voting/contracts/evoting" - "github.com/dedis/d-voting/proxy/txnmanager" "github.com/stretchr/testify/require" + "go.dedis.ch/d-voting/contracts/evoting" + "go.dedis.ch/d-voting/proxy/txnmanager" "go.dedis.ch/dela" "go.dedis.ch/dela/contracts/access" "go.dedis.ch/dela/core/execution/native" @@ -134,7 +134,7 @@ func (m txManager) addAndWait(args ...txn.Arg) ([]byte, error) { } cancel() - + time.Sleep(time.Millisecond * (1 << i)) } diff --git a/integration/votes_test.go b/integration/votes_test.go index 2a4653167..db34e693a 100644 --- a/integration/votes_test.go +++ b/integration/votes_test.go @@ -8,11 +8,11 @@ import ( "testing" "time" - "github.com/dedis/d-voting/contracts/evoting/types" - _ "github.com/dedis/d-voting/services/dkg/pedersen/json" - _ "github.com/dedis/d-voting/services/shuffle/neff/json" "github.com/rs/zerolog" "github.com/stretchr/testify/require" + "go.dedis.ch/d-voting/contracts/evoting/types" + _ "go.dedis.ch/d-voting/services/dkg/pedersen/json" + _ "go.dedis.ch/d-voting/services/shuffle/neff/json" delaPkg "go.dedis.ch/dela" ) diff --git a/internal/testing/fake/dkg.go b/internal/testing/fake/dkg.go index 4c907c5be..b77c39137 100644 --- a/internal/testing/fake/dkg.go +++ b/internal/testing/fake/dkg.go @@ -1,7 +1,7 @@ package fake import ( - "github.com/dedis/d-voting/services/dkg" + "go.dedis.ch/d-voting/services/dkg" "go.dedis.ch/dela/core/txn" "go.dedis.ch/kyber/v3" ) diff --git a/internal/testing/fake/election.go b/internal/testing/fake/election.go index 553c8361d..5ac2f56a6 100644 --- a/internal/testing/fake/election.go +++ b/internal/testing/fake/election.go @@ -3,7 +3,7 @@ package fake import ( "strconv" - "github.com/dedis/d-voting/contracts/evoting/types" + "go.dedis.ch/d-voting/contracts/evoting/types" "go.dedis.ch/dela/core/store" "go.dedis.ch/dela/serde" "go.dedis.ch/kyber/v3" diff --git a/internal/testing/fake/ordering.go b/internal/testing/fake/ordering.go index 173bf94ea..2d5ba8ef3 100644 --- a/internal/testing/fake/ordering.go +++ b/internal/testing/fake/ordering.go @@ -4,7 +4,7 @@ import ( "context" "encoding/hex" - formTypes "github.com/dedis/d-voting/contracts/evoting/types" + formTypes "go.dedis.ch/d-voting/contracts/evoting/types" "go.dedis.ch/dela/core/ordering" "go.dedis.ch/dela/core/store" "go.dedis.ch/dela/core/validation" diff --git a/metrics/controller/action.go b/metrics/controller/action.go index a24e94c1c..1afa09633 100644 --- a/metrics/controller/action.go +++ b/metrics/controller/action.go @@ -7,9 +7,9 @@ import ( "net/http" "time" - dvoting "github.com/dedis/d-voting" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp" + dvoting "go.dedis.ch/d-voting" "go.dedis.ch/dela" "go.dedis.ch/dela/cli/node" "golang.org/x/xerrors" diff --git a/proxy/dkg.go b/proxy/dkg.go index 4c5e28ed8..2d2a22e0c 100644 --- a/proxy/dkg.go +++ b/proxy/dkg.go @@ -7,9 +7,9 @@ import ( "net/http" - "github.com/dedis/d-voting/proxy/types" - dkgSrv "github.com/dedis/d-voting/services/dkg" "github.com/gorilla/mux" + "go.dedis.ch/d-voting/proxy/types" + dkgSrv "go.dedis.ch/d-voting/services/dkg" "go.dedis.ch/dela" "go.dedis.ch/dela/core/txn" "go.dedis.ch/kyber/v3" diff --git a/proxy/dkg_test.go b/proxy/dkg_test.go index 9b5f1f228..ef99e23f2 100644 --- a/proxy/dkg_test.go +++ b/proxy/dkg_test.go @@ -11,8 +11,8 @@ import ( "strings" "testing" - "github.com/dedis/d-voting/proxy/types" - dkgSrv "github.com/dedis/d-voting/services/dkg" + "go.dedis.ch/d-voting/proxy/types" + dkgSrv "go.dedis.ch/d-voting/services/dkg" "github.com/stretchr/testify/require" "go.dedis.ch/dela/cli/node" diff --git a/proxy/election.go b/proxy/election.go index 853b02a42..c77a958b2 100644 --- a/proxy/election.go +++ b/proxy/election.go @@ -8,12 +8,12 @@ import ( "net/http" "sync" - "github.com/dedis/d-voting/contracts/evoting" - "github.com/dedis/d-voting/contracts/evoting/types" - "github.com/dedis/d-voting/proxy/txnmanager" - ptypes "github.com/dedis/d-voting/proxy/types" "github.com/gorilla/mux" "github.com/rs/zerolog" + "go.dedis.ch/d-voting/contracts/evoting" + "go.dedis.ch/d-voting/contracts/evoting/types" + "go.dedis.ch/d-voting/proxy/txnmanager" + ptypes "go.dedis.ch/d-voting/proxy/types" "go.dedis.ch/dela" "go.dedis.ch/dela/core/ordering" "go.dedis.ch/dela/core/txn/pool" diff --git a/proxy/mod.go b/proxy/mod.go index 3c3caf75a..e2ecf06f8 100644 --- a/proxy/mod.go +++ b/proxy/mod.go @@ -11,7 +11,7 @@ import ( "fmt" "net/http" - "github.com/dedis/d-voting/proxy/types" + "go.dedis.ch/d-voting/proxy/types" "go.dedis.ch/kyber/v3/suites" ) diff --git a/proxy/shuffle.go b/proxy/shuffle.go index be7292359..01dac4f66 100644 --- a/proxy/shuffle.go +++ b/proxy/shuffle.go @@ -5,9 +5,9 @@ import ( "fmt" "net/http" - "github.com/dedis/d-voting/proxy/types" - shuffleSrv "github.com/dedis/d-voting/services/shuffle" "github.com/gorilla/mux" + "go.dedis.ch/d-voting/proxy/types" + shuffleSrv "go.dedis.ch/d-voting/services/shuffle" "go.dedis.ch/kyber/v3" "golang.org/x/xerrors" ) diff --git a/proxy/txnmanager/mod.go b/proxy/txnmanager/mod.go index 1c7cfbd78..bf16f4f4a 100644 --- a/proxy/txnmanager/mod.go +++ b/proxy/txnmanager/mod.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "github.com/dedis/d-voting/contracts/evoting" + "go.dedis.ch/d-voting/contracts/evoting" ) // Manager defines the public HTTP API of the transaction manager diff --git a/proxy/txnmanager/transaction.go b/proxy/txnmanager/transaction.go index 6c8ca4d81..211c3bb6c 100644 --- a/proxy/txnmanager/transaction.go +++ b/proxy/txnmanager/transaction.go @@ -12,9 +12,9 @@ import ( "sync" "time" - "github.com/dedis/d-voting/contracts/evoting" "github.com/gorilla/mux" "github.com/rs/zerolog" + "go.dedis.ch/d-voting/contracts/evoting" "go.dedis.ch/dela" "go.dedis.ch/dela/core/execution/native" "go.dedis.ch/dela/core/ordering/cosipbft/blockstore" diff --git a/proxy/types/election.go b/proxy/types/election.go index eeb4cc2b9..c5b0a566a 100644 --- a/proxy/types/election.go +++ b/proxy/types/election.go @@ -1,7 +1,7 @@ package types import ( - etypes "github.com/dedis/d-voting/contracts/evoting/types" + etypes "go.dedis.ch/d-voting/contracts/evoting/types" ) // CreateFormRequest defines the HTTP request for creating a form diff --git a/services/dkg/pedersen/controller/action.go b/services/dkg/pedersen/controller/action.go index faeb2eca0..8a77d3a20 100644 --- a/services/dkg/pedersen/controller/action.go +++ b/services/dkg/pedersen/controller/action.go @@ -12,9 +12,9 @@ import ( "go.dedis.ch/dela/core/txn/signed" "go.dedis.ch/dela/core/validation" - "github.com/dedis/d-voting/services/dkg" - "github.com/dedis/d-voting/services/dkg/pedersen" "github.com/gorilla/mux" + "go.dedis.ch/d-voting/services/dkg" + "go.dedis.ch/d-voting/services/dkg/pedersen" "go.dedis.ch/dela" "go.dedis.ch/dela/cli/node" "go.dedis.ch/dela/core/store/kv" @@ -23,7 +23,7 @@ import ( "go.dedis.ch/kyber/v3/suites" "golang.org/x/xerrors" - eproxy "github.com/dedis/d-voting/proxy" + eproxy "go.dedis.ch/d-voting/proxy" ) var suite = suites.MustFind("Ed25519") diff --git a/services/dkg/pedersen/controller/action_test.go b/services/dkg/pedersen/controller/action_test.go index fc4276d2a..4dcdf693c 100644 --- a/services/dkg/pedersen/controller/action_test.go +++ b/services/dkg/pedersen/controller/action_test.go @@ -7,9 +7,9 @@ import ( "golang.org/x/xerrors" - "github.com/dedis/d-voting/internal/testing/fake" - "github.com/dedis/d-voting/services/dkg" "github.com/stretchr/testify/require" + "go.dedis.ch/d-voting/internal/testing/fake" + "go.dedis.ch/d-voting/services/dkg" "go.dedis.ch/dela/cli" "go.dedis.ch/dela/cli/node" ) diff --git a/services/dkg/pedersen/controller/mod.go b/services/dkg/pedersen/controller/mod.go index 0f60f739b..dff477ea9 100644 --- a/services/dkg/pedersen/controller/mod.go +++ b/services/dkg/pedersen/controller/mod.go @@ -4,14 +4,14 @@ import ( "encoding" "path/filepath" - "github.com/dedis/d-voting/contracts/evoting" + "go.dedis.ch/d-voting/contracts/evoting" "go.dedis.ch/dela/core/txn/pool" "go.dedis.ch/dela/core/txn/signed" "go.dedis.ch/dela/crypto" "go.dedis.ch/dela/crypto/bls" "go.dedis.ch/dela/crypto/loader" - "github.com/dedis/d-voting/services/dkg/pedersen" + "go.dedis.ch/d-voting/services/dkg/pedersen" "go.dedis.ch/dela/cli" "go.dedis.ch/dela/cli/node" "go.dedis.ch/dela/core/access/darc" @@ -23,7 +23,7 @@ import ( "go.dedis.ch/dela/mino" "golang.org/x/xerrors" - etypes "github.com/dedis/d-voting/contracts/evoting/types" + etypes "go.dedis.ch/d-voting/contracts/evoting/types" ) const privateKeyFile = "private.key" diff --git a/services/dkg/pedersen/controller/mod_test.go b/services/dkg/pedersen/controller/mod_test.go index 5f20e4873..e12d0229a 100644 --- a/services/dkg/pedersen/controller/mod_test.go +++ b/services/dkg/pedersen/controller/mod_test.go @@ -10,8 +10,8 @@ import ( "go.dedis.ch/dela/core/validation/simple" "go.dedis.ch/dela/crypto/bls" - "github.com/dedis/d-voting/internal/testing/fake" "github.com/stretchr/testify/require" + "go.dedis.ch/d-voting/internal/testing/fake" "go.dedis.ch/dela/cli/node" "go.dedis.ch/dela/core/access/darc" "go.dedis.ch/dela/core/execution/native" diff --git a/services/dkg/pedersen/handler.go b/services/dkg/pedersen/handler.go index 731ec6041..82b395219 100644 --- a/services/dkg/pedersen/handler.go +++ b/services/dkg/pedersen/handler.go @@ -12,8 +12,8 @@ import ( "sync" "time" - "github.com/dedis/d-voting/contracts/evoting" "github.com/rs/zerolog" + "go.dedis.ch/d-voting/contracts/evoting" "go.dedis.ch/dela/core/execution/native" "go.dedis.ch/dela/core/txn" "go.dedis.ch/dela/core/txn/pool" @@ -21,9 +21,9 @@ import ( "go.dedis.ch/dela/mino/minogrpc/session" jsondela "go.dedis.ch/dela/serde/json" - etypes "github.com/dedis/d-voting/contracts/evoting/types" - "github.com/dedis/d-voting/services/dkg" - "github.com/dedis/d-voting/services/dkg/pedersen/types" + etypes "go.dedis.ch/d-voting/contracts/evoting/types" + "go.dedis.ch/d-voting/services/dkg" + "go.dedis.ch/d-voting/services/dkg/pedersen/types" "go.dedis.ch/dela" "go.dedis.ch/dela/core/ordering" "go.dedis.ch/dela/cosi/threshold" diff --git a/services/dkg/pedersen/handler_test.go b/services/dkg/pedersen/handler_test.go index 2b2686733..f087d1927 100644 --- a/services/dkg/pedersen/handler_test.go +++ b/services/dkg/pedersen/handler_test.go @@ -7,16 +7,16 @@ import ( "strings" "testing" - formTypes "github.com/dedis/d-voting/contracts/evoting/types" + formTypes "go.dedis.ch/d-voting/contracts/evoting/types" "go.dedis.ch/dela/core/access" "go.dedis.ch/dela/core/txn/signed" "go.dedis.ch/dela/mino/minogrpc/session" "go.dedis.ch/dela/serde/json" - "github.com/dedis/d-voting/internal/testing/fake" - "github.com/dedis/d-voting/services/dkg" - "github.com/dedis/d-voting/services/dkg/pedersen/types" "github.com/stretchr/testify/require" + "go.dedis.ch/d-voting/internal/testing/fake" + "go.dedis.ch/d-voting/services/dkg" + "go.dedis.ch/d-voting/services/dkg/pedersen/types" "go.dedis.ch/dela/mino" "go.dedis.ch/kyber/v3" "go.dedis.ch/kyber/v3/share" diff --git a/services/dkg/pedersen/json/mod.go b/services/dkg/pedersen/json/mod.go index a37c38080..dd955a98a 100644 --- a/services/dkg/pedersen/json/mod.go +++ b/services/dkg/pedersen/json/mod.go @@ -1,7 +1,7 @@ package json import ( - "github.com/dedis/d-voting/services/dkg/pedersen/types" + "go.dedis.ch/d-voting/services/dkg/pedersen/types" "go.dedis.ch/dela/mino" "go.dedis.ch/dela/serde" "go.dedis.ch/kyber/v3" diff --git a/services/dkg/pedersen/json/mod_test.go b/services/dkg/pedersen/json/mod_test.go index dd52636aa..6c325ae11 100644 --- a/services/dkg/pedersen/json/mod_test.go +++ b/services/dkg/pedersen/json/mod_test.go @@ -4,9 +4,9 @@ import ( "fmt" "testing" - "github.com/dedis/d-voting/internal/testing/fake" - "github.com/dedis/d-voting/services/dkg/pedersen/types" "github.com/stretchr/testify/require" + "go.dedis.ch/d-voting/internal/testing/fake" + "go.dedis.ch/d-voting/services/dkg/pedersen/types" "go.dedis.ch/dela/mino" "go.dedis.ch/dela/serde" "go.dedis.ch/kyber/v3" diff --git a/services/dkg/pedersen/mod.go b/services/dkg/pedersen/mod.go index afbc45ce6..b4b3cba26 100644 --- a/services/dkg/pedersen/mod.go +++ b/services/dkg/pedersen/mod.go @@ -14,16 +14,16 @@ import ( "go.dedis.ch/dela" "go.dedis.ch/dela/core/ordering" - "github.com/dedis/d-voting/contracts/evoting" - etypes "github.com/dedis/d-voting/contracts/evoting/types" "github.com/rs/zerolog" + "go.dedis.ch/d-voting/contracts/evoting" + etypes "go.dedis.ch/d-voting/contracts/evoting/types" - "github.com/dedis/d-voting/internal/tracing" - "github.com/dedis/d-voting/services/dkg" + "go.dedis.ch/d-voting/internal/tracing" + "go.dedis.ch/d-voting/services/dkg" // Register the JSON types for Pedersen - _ "github.com/dedis/d-voting/services/dkg/pedersen/json" - "github.com/dedis/d-voting/services/dkg/pedersen/types" + _ "go.dedis.ch/d-voting/services/dkg/pedersen/json" + "go.dedis.ch/d-voting/services/dkg/pedersen/types" "go.dedis.ch/dela/mino" "go.dedis.ch/dela/serde" jsonserde "go.dedis.ch/dela/serde/json" @@ -34,7 +34,7 @@ import ( "golang.org/x/xerrors" // Register the JSON format for the form - _ "github.com/dedis/d-voting/contracts/evoting/json" + _ "go.dedis.ch/d-voting/contracts/evoting/json" ) // BucketName is the name of the bucket in the database. diff --git a/services/dkg/pedersen/mod_test.go b/services/dkg/pedersen/mod_test.go index bf3fda078..4e359bc65 100644 --- a/services/dkg/pedersen/mod_test.go +++ b/services/dkg/pedersen/mod_test.go @@ -18,14 +18,14 @@ import ( "go.dedis.ch/dela/mino/minogrpc/session" "golang.org/x/xerrors" - "github.com/dedis/d-voting/contracts/evoting" - etypes "github.com/dedis/d-voting/contracts/evoting/types" - "github.com/dedis/d-voting/internal/testing/fake" - "github.com/dedis/d-voting/services/dkg" - "github.com/dedis/d-voting/services/dkg/pedersen/types" "github.com/prometheus/client_golang/prometheus/testutil" "github.com/rs/zerolog" "github.com/stretchr/testify/require" + "go.dedis.ch/d-voting/contracts/evoting" + etypes "go.dedis.ch/d-voting/contracts/evoting/types" + "go.dedis.ch/d-voting/internal/testing/fake" + "go.dedis.ch/d-voting/services/dkg" + "go.dedis.ch/d-voting/services/dkg/pedersen/types" "go.dedis.ch/dela/core/ordering/cosipbft/authority" "go.dedis.ch/dela/core/store/kv" "go.dedis.ch/dela/mino" diff --git a/services/dkg/pedersen/types/messages_test.go b/services/dkg/pedersen/types/messages_test.go index 35e1534fa..8fdcd5dc4 100644 --- a/services/dkg/pedersen/types/messages_test.go +++ b/services/dkg/pedersen/types/messages_test.go @@ -5,8 +5,8 @@ import ( "testing" "testing/quick" - "github.com/dedis/d-voting/internal/testing/fake" "github.com/stretchr/testify/require" + "go.dedis.ch/d-voting/internal/testing/fake" "go.dedis.ch/dela/mino" "go.dedis.ch/dela/serde" "go.dedis.ch/kyber/v3" diff --git a/services/shuffle/neff/controller/action.go b/services/shuffle/neff/controller/action.go index 2f27dbeec..0e4953326 100644 --- a/services/shuffle/neff/controller/action.go +++ b/services/shuffle/neff/controller/action.go @@ -4,8 +4,8 @@ import ( "encoding/hex" "net/http" - "github.com/dedis/d-voting/services/shuffle" "github.com/gorilla/mux" + "go.dedis.ch/d-voting/services/shuffle" "go.dedis.ch/dela" "go.dedis.ch/dela/cli/node" "go.dedis.ch/dela/core/access" @@ -16,7 +16,7 @@ import ( "go.dedis.ch/kyber/v3/suites" "golang.org/x/xerrors" - eproxy "github.com/dedis/d-voting/proxy" + eproxy "go.dedis.ch/d-voting/proxy" ) var suite = suites.MustFind("ed25519") diff --git a/services/shuffle/neff/controller/mod.go b/services/shuffle/neff/controller/mod.go index 1d12a9ce6..a61a1722b 100644 --- a/services/shuffle/neff/controller/mod.go +++ b/services/shuffle/neff/controller/mod.go @@ -4,8 +4,8 @@ import ( "encoding" "path/filepath" - etypes "github.com/dedis/d-voting/contracts/evoting/types" - "github.com/dedis/d-voting/services/shuffle/neff" + etypes "go.dedis.ch/d-voting/contracts/evoting/types" + "go.dedis.ch/d-voting/services/shuffle/neff" "go.dedis.ch/dela" "go.dedis.ch/dela/cli" "go.dedis.ch/dela/cli/node" diff --git a/services/shuffle/neff/controller/mod_test.go b/services/shuffle/neff/controller/mod_test.go index 6b8befb45..985070bce 100644 --- a/services/shuffle/neff/controller/mod_test.go +++ b/services/shuffle/neff/controller/mod_test.go @@ -3,8 +3,8 @@ package controller import ( "testing" - "github.com/dedis/d-voting/internal/testing/fake" "github.com/stretchr/testify/require" + "go.dedis.ch/d-voting/internal/testing/fake" "go.dedis.ch/dela/cli" "go.dedis.ch/dela/cli/node" "go.dedis.ch/dela/core/ordering" diff --git a/services/shuffle/neff/handler.go b/services/shuffle/neff/handler.go index 3490ebd0c..1481ad9c1 100644 --- a/services/shuffle/neff/handler.go +++ b/services/shuffle/neff/handler.go @@ -8,9 +8,9 @@ import ( "go.dedis.ch/kyber/v3" - "github.com/dedis/d-voting/contracts/evoting" - etypes "github.com/dedis/d-voting/contracts/evoting/types" - "github.com/dedis/d-voting/services/shuffle/neff/types" + "go.dedis.ch/d-voting/contracts/evoting" + etypes "go.dedis.ch/d-voting/contracts/evoting/types" + "go.dedis.ch/d-voting/services/shuffle/neff/types" "go.dedis.ch/dela" "go.dedis.ch/dela/core/execution/native" "go.dedis.ch/dela/core/ordering" diff --git a/services/shuffle/neff/handler_test.go b/services/shuffle/neff/handler_test.go index 03820f7e0..1df91283a 100644 --- a/services/shuffle/neff/handler_test.go +++ b/services/shuffle/neff/handler_test.go @@ -9,12 +9,12 @@ import ( "go.dedis.ch/dela/serde" "go.dedis.ch/dela/serde/json" - "github.com/dedis/d-voting/services/shuffle/neff/types" + "go.dedis.ch/d-voting/services/shuffle/neff/types" "go.dedis.ch/kyber/v3" - etypes "github.com/dedis/d-voting/contracts/evoting/types" - "github.com/dedis/d-voting/internal/testing/fake" "github.com/stretchr/testify/require" + etypes "go.dedis.ch/d-voting/contracts/evoting/types" + "go.dedis.ch/d-voting/internal/testing/fake" "go.dedis.ch/dela/core/access" "go.dedis.ch/dela/core/txn/signed" "go.dedis.ch/dela/mino" diff --git a/services/shuffle/neff/json/mod.go b/services/shuffle/neff/json/mod.go index 5432e51c8..93d9c155c 100644 --- a/services/shuffle/neff/json/mod.go +++ b/services/shuffle/neff/json/mod.go @@ -1,7 +1,7 @@ package json import ( - "github.com/dedis/d-voting/services/shuffle/neff/types" + "go.dedis.ch/d-voting/services/shuffle/neff/types" "go.dedis.ch/dela/mino" "go.dedis.ch/dela/serde" "go.dedis.ch/kyber/v3/suites" diff --git a/services/shuffle/neff/json/mod_test.go b/services/shuffle/neff/json/mod_test.go index b5b19880d..a069dfa8e 100644 --- a/services/shuffle/neff/json/mod_test.go +++ b/services/shuffle/neff/json/mod_test.go @@ -3,9 +3,9 @@ package json import ( "testing" - "github.com/dedis/d-voting/internal/testing/fake" - "github.com/dedis/d-voting/services/shuffle/neff/types" "github.com/stretchr/testify/require" + "go.dedis.ch/d-voting/internal/testing/fake" + "go.dedis.ch/d-voting/services/shuffle/neff/types" "go.dedis.ch/dela/mino" "go.dedis.ch/dela/serde" ) diff --git a/services/shuffle/neff/mod.go b/services/shuffle/neff/mod.go index 60782db9e..8db2aa7c2 100644 --- a/services/shuffle/neff/mod.go +++ b/services/shuffle/neff/mod.go @@ -5,9 +5,9 @@ import ( "sync" "time" - etypes "github.com/dedis/d-voting/contracts/evoting/types" - "github.com/dedis/d-voting/services/shuffle" - "github.com/dedis/d-voting/services/shuffle/neff/types" + etypes "go.dedis.ch/d-voting/contracts/evoting/types" + "go.dedis.ch/d-voting/services/shuffle" + "go.dedis.ch/d-voting/services/shuffle/neff/types" "go.dedis.ch/dela" "go.dedis.ch/dela/core/ordering" "go.dedis.ch/dela/core/ordering/cosipbft/blockstore" diff --git a/services/shuffle/neff/mod_test.go b/services/shuffle/neff/mod_test.go index 187a3c045..cdc1a8c65 100644 --- a/services/shuffle/neff/mod_test.go +++ b/services/shuffle/neff/mod_test.go @@ -13,11 +13,11 @@ import ( "go.dedis.ch/dela/serde" "go.dedis.ch/dela/serde/json" - etypes "github.com/dedis/d-voting/contracts/evoting/types" - "github.com/dedis/d-voting/internal/testing/fake" - "github.com/dedis/d-voting/services/shuffle/neff/types" "github.com/rs/zerolog" "github.com/stretchr/testify/require" + etypes "go.dedis.ch/d-voting/contracts/evoting/types" + "go.dedis.ch/d-voting/internal/testing/fake" + "go.dedis.ch/d-voting/services/shuffle/neff/types" ) var serdecontext serde.Context diff --git a/services/shuffle/neff/types/messages_test.go b/services/shuffle/neff/types/messages_test.go index 6171b501d..f78e808a0 100644 --- a/services/shuffle/neff/types/messages_test.go +++ b/services/shuffle/neff/types/messages_test.go @@ -3,8 +3,8 @@ package types import ( "testing" - "github.com/dedis/d-voting/internal/testing/fake" "github.com/stretchr/testify/require" + "go.dedis.ch/d-voting/internal/testing/fake" "go.dedis.ch/dela/mino" "go.dedis.ch/dela/serde" )