From fb548a5f8cf4416a8fbf31f3a894b93289c5606d Mon Sep 17 00:00:00 2001 From: Filip Burlacu Date: Wed, 23 Aug 2023 14:41:52 -0400 Subject: [PATCH] chore: update renaming kms-crypto-go -> kms-go (#4) Signed-off-by: Filip Burlacu --- didconfig/verifier/didconfig.go | 2 +- didconfig/verifier/didconfig_test.go | 12 ++++++------ go.mod | 4 ++-- go.sum | 8 ++++---- legacy/mem/mem.go | 2 +- legacy/mem/mem_test.go | 2 +- legacy/mock/mock.go | 2 +- legacy/mock/storage/storage.go | 2 +- legacy/test/component/storage/storage.go | 2 +- method/jwk/creator.go | 2 +- method/jwk/creator_test.go | 4 ++-- method/jwk/resolver.go | 2 +- method/longform/vdr_test.go | 6 +++--- method/sidetree/client_test.go | 2 +- method/sidetree/doc/doc.go | 2 +- vdr/httpbinding/resolver_interop.go | 2 +- vdr/key/creator.go | 4 ++-- vdr/key/creator_test.go | 2 +- vdr/key/resolver.go | 4 ++-- vdr/key/resolver_test.go | 2 +- vdr/peer/creator.go | 2 +- vdr/peer/creator_test.go | 16 ++++++++-------- vdr/peer/store.go | 2 +- vdr/peer/vdr.go | 2 +- 24 files changed, 45 insertions(+), 45 deletions(-) diff --git a/didconfig/verifier/didconfig.go b/didconfig/verifier/didconfig.go index e1ab04c..7fbaf33 100644 --- a/didconfig/verifier/didconfig.go +++ b/didconfig/verifier/didconfig.go @@ -13,7 +13,7 @@ import ( "net/url" jsonld "github.com/piprate/json-gold/ld" - "github.com/trustbloc/kms-crypto-go/doc/jose" + "github.com/trustbloc/kms-go/doc/jose" "github.com/trustbloc/vc-go/jwt" "github.com/trustbloc/vc-go/verifiable" diff --git a/didconfig/verifier/didconfig_test.go b/didconfig/verifier/didconfig_test.go index a0f9e4d..3f12cf4 100644 --- a/didconfig/verifier/didconfig_test.go +++ b/didconfig/verifier/didconfig_test.go @@ -15,12 +15,12 @@ import ( "github.com/stretchr/testify/require" - "github.com/trustbloc/kms-crypto-go/crypto/tinkcrypto" - "github.com/trustbloc/kms-crypto-go/doc/jose" - "github.com/trustbloc/kms-crypto-go/kms/localkms" - mockkms "github.com/trustbloc/kms-crypto-go/mock/kms" - "github.com/trustbloc/kms-crypto-go/secretlock/noop" - "github.com/trustbloc/kms-crypto-go/spi/kms" + "github.com/trustbloc/kms-go/crypto/tinkcrypto" + "github.com/trustbloc/kms-go/doc/jose" + "github.com/trustbloc/kms-go/kms/localkms" + mockkms "github.com/trustbloc/kms-go/mock/kms" + "github.com/trustbloc/kms-go/secretlock/noop" + "github.com/trustbloc/kms-go/spi/kms" afgjwt "github.com/trustbloc/vc-go/jwt" ldcontext "github.com/trustbloc/vc-go/ld/context" ldtestutil "github.com/trustbloc/vc-go/ld/testutil" diff --git a/go.mod b/go.mod index b09dc2a..5fad1a7 100644 --- a/go.mod +++ b/go.mod @@ -16,9 +16,9 @@ require ( github.com/multiformats/go-multihash v0.0.14 github.com/piprate/json-gold v0.5.1-0.20230111113000-6ddbe6e6f19f github.com/stretchr/testify v1.8.1 - github.com/trustbloc/kms-crypto-go v0.0.0-20230817141224-c6cb8c6f1908 + github.com/trustbloc/kms-go v0.0.0-20230823163616-c9310a484f40 github.com/trustbloc/sidetree-core-go v1.0.0 - github.com/trustbloc/vc-go v0.0.0-20230822090541-7dfc45bae51b + github.com/trustbloc/vc-go v0.0.0-20230823173222-60db5cb83715 ) require ( diff --git a/go.sum b/go.sum index e928230..4349560 100644 --- a/go.sum +++ b/go.sum @@ -136,14 +136,14 @@ github.com/tidwall/pretty v1.2.0 h1:RWIZEg2iJ8/g6fDDYzMpobmaoGh5OLl4AXtGUGPcqCs= github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= github.com/tidwall/sjson v1.1.4 h1:bTSsPLdAYF5QNLSwYsKfBKKTnlGbIuhqL3CpRsjzGhg= github.com/tidwall/sjson v1.1.4/go.mod h1:wXpKXu8CtDjKAZ+3DrKY5ROCorDFahq8l0tey/Lx1fg= -github.com/trustbloc/kms-crypto-go v0.0.0-20230817141224-c6cb8c6f1908 h1:2vyfl6E2XN/hP4YOTbWrhlVu/Fq10xAydPSZYm5Kb4A= -github.com/trustbloc/kms-crypto-go v0.0.0-20230817141224-c6cb8c6f1908/go.mod h1:+yUiLndNRUZSwbgjKbUsr8D/x2zawgeH82KyccU3TiU= +github.com/trustbloc/kms-go v0.0.0-20230823163616-c9310a484f40 h1:ffs36Xhux4VizFvANdq1F2V/dNp1kgR91CiKShDV1RA= +github.com/trustbloc/kms-go v0.0.0-20230823163616-c9310a484f40/go.mod h1:AkTaHo5jhlJR2I4FyJCXaxUA/kEsauBUPBwVnAebeUU= github.com/trustbloc/logutil-go v1.0.0-rc1 h1:rRJbvgQfrlUfyej+mY0nuQJymGqjRW4oZEwKi544F4c= github.com/trustbloc/logutil-go v1.0.0-rc1/go.mod h1:JlxT0oZfNKgIlSNtgc001WEeDMxlnAvOM43gNm8DQVc= github.com/trustbloc/sidetree-core-go v1.0.0 h1:kzfKZOJ0sgDy9D1AYNcoR3JHutqtMtKvF2P9UwUcDjU= github.com/trustbloc/sidetree-core-go v1.0.0/go.mod h1:jdxAFuorlIwFOGVW6O455/lZqxg2mZkRHNTEolcZdDI= -github.com/trustbloc/vc-go v0.0.0-20230822090541-7dfc45bae51b h1:7q3cNgX8467ps230I82s+0EMY6X9S2gsfXqweV8LRHs= -github.com/trustbloc/vc-go v0.0.0-20230822090541-7dfc45bae51b/go.mod h1:eYQLq2vyfmhG3rNTDyMnAspr7/ZAUzxxDfjUPJ+UZ6A= +github.com/trustbloc/vc-go v0.0.0-20230823173222-60db5cb83715 h1:CyZX11k47a0FHJWUZU7q9oooKg6uNFgmPeaBjY1Auic= +github.com/trustbloc/vc-go v0.0.0-20230823173222-60db5cb83715/go.mod h1:jl7UQMYkpwqQEfR8OMk9IzD2bqLyOcJ91eK28QnQTz4= github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb h1:zGWFAtiMcyryUHoUjUJX0/lt1H2+i2Ka2n+D3DImSNo= github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= diff --git a/legacy/mem/mem.go b/legacy/mem/mem.go index 7e64e26..8d16725 100644 --- a/legacy/mem/mem.go +++ b/legacy/mem/mem.go @@ -12,7 +12,7 @@ import ( "strings" "sync" - spi "github.com/trustbloc/kms-crypto-go/spi/storage" + spi "github.com/trustbloc/kms-go/spi/storage" ) const ( diff --git a/legacy/mem/mem_test.go b/legacy/mem/mem_test.go index 0b322b4..58b561e 100644 --- a/legacy/mem/mem_test.go +++ b/legacy/mem/mem_test.go @@ -11,7 +11,7 @@ import ( "github.com/stretchr/testify/require" - spi "github.com/trustbloc/kms-crypto-go/spi/storage" + spi "github.com/trustbloc/kms-go/spi/storage" storagetest "github.com/trustbloc/did-go/legacy/test/component/storage" diff --git a/legacy/mock/mock.go b/legacy/mock/mock.go index cd70e6f..67e013a 100644 --- a/legacy/mock/mock.go +++ b/legacy/mock/mock.go @@ -7,7 +7,7 @@ SPDX-License-Identifier: Apache-2.0 package mock import ( - spi "github.com/trustbloc/kms-crypto-go/spi/storage" + spi "github.com/trustbloc/kms-go/spi/storage" ) // Provider is a mocked implementation of spi.Provider. diff --git a/legacy/mock/storage/storage.go b/legacy/mock/storage/storage.go index b5640cd..8e1f515 100644 --- a/legacy/mock/storage/storage.go +++ b/legacy/mock/storage/storage.go @@ -13,7 +13,7 @@ import ( "strings" "sync" - "github.com/trustbloc/kms-crypto-go/spi/storage" + "github.com/trustbloc/kms-go/spi/storage" ) const ( diff --git a/legacy/test/component/storage/storage.go b/legacy/test/component/storage/storage.go index 26afeb1..c5cbade 100644 --- a/legacy/test/component/storage/storage.go +++ b/legacy/test/component/storage/storage.go @@ -16,7 +16,7 @@ import ( "github.com/google/uuid" "github.com/stretchr/testify/require" - spi "github.com/trustbloc/kms-crypto-go/spi/storage" + spi "github.com/trustbloc/kms-go/spi/storage" ) // TestOption is an option for test behaviour. diff --git a/method/jwk/creator.go b/method/jwk/creator.go index 008f936..9992e1c 100644 --- a/method/jwk/creator.go +++ b/method/jwk/creator.go @@ -11,7 +11,7 @@ import ( "fmt" vdrapi "github.com/trustbloc/did-go/vdr/api" - "github.com/trustbloc/kms-crypto-go/doc/jose/jwk" + "github.com/trustbloc/kms-go/doc/jose/jwk" "github.com/trustbloc/sidetree-core-go/pkg/canonicalizer" "github.com/trustbloc/vc-go/did" ) diff --git a/method/jwk/creator_test.go b/method/jwk/creator_test.go index 38d4011..553cd6f 100644 --- a/method/jwk/creator_test.go +++ b/method/jwk/creator_test.go @@ -13,8 +13,8 @@ import ( "testing" "github.com/stretchr/testify/require" - jwkapi "github.com/trustbloc/kms-crypto-go/doc/jose/jwk" - "github.com/trustbloc/kms-crypto-go/doc/jose/jwk/jwksupport" + jwkapi "github.com/trustbloc/kms-go/doc/jose/jwk" + "github.com/trustbloc/kms-go/doc/jose/jwk/jwksupport" "github.com/trustbloc/sidetree-core-go/pkg/canonicalizer" "github.com/trustbloc/vc-go/did" diff --git a/method/jwk/resolver.go b/method/jwk/resolver.go index ab642ec..67498e7 100644 --- a/method/jwk/resolver.go +++ b/method/jwk/resolver.go @@ -11,7 +11,7 @@ import ( "encoding/json" "fmt" - "github.com/trustbloc/kms-crypto-go/doc/jose/jwk" + "github.com/trustbloc/kms-go/doc/jose/jwk" "github.com/trustbloc/vc-go/did" vdrapi "github.com/trustbloc/did-go/vdr/api" diff --git a/method/longform/vdr_test.go b/method/longform/vdr_test.go index 8d9288f..19c0317 100644 --- a/method/longform/vdr_test.go +++ b/method/longform/vdr_test.go @@ -15,9 +15,9 @@ import ( "testing" "github.com/stretchr/testify/require" - "github.com/trustbloc/kms-crypto-go/crypto/primitive/bbs12381g2pub" - "github.com/trustbloc/kms-crypto-go/doc/jose/jwk" - "github.com/trustbloc/kms-crypto-go/doc/jose/jwk/jwksupport" + "github.com/trustbloc/kms-go/crypto/primitive/bbs12381g2pub" + "github.com/trustbloc/kms-go/doc/jose/jwk" + "github.com/trustbloc/kms-go/doc/jose/jwk/jwksupport" "github.com/trustbloc/sidetree-core-go/pkg/document" ariesdid "github.com/trustbloc/vc-go/did" model "github.com/trustbloc/vc-go/did/endpoint" diff --git a/method/sidetree/client_test.go b/method/sidetree/client_test.go index 46a3ac1..137c21f 100644 --- a/method/sidetree/client_test.go +++ b/method/sidetree/client_test.go @@ -20,7 +20,7 @@ import ( "github.com/btcsuite/btcutil/base58" gojose "github.com/go-jose/go-jose/v3" "github.com/stretchr/testify/require" - "github.com/trustbloc/kms-crypto-go/doc/jose/jwk" + "github.com/trustbloc/kms-go/doc/jose/jwk" "github.com/trustbloc/sidetree-core-go/pkg/commitment" "github.com/trustbloc/sidetree-core-go/pkg/jws" "github.com/trustbloc/sidetree-core-go/pkg/util/ecsigner" diff --git a/method/sidetree/doc/doc.go b/method/sidetree/doc/doc.go index 5f920d5..da14783 100644 --- a/method/sidetree/doc/doc.go +++ b/method/sidetree/doc/doc.go @@ -11,7 +11,7 @@ import ( "encoding/json" "fmt" - "github.com/trustbloc/kms-crypto-go/doc/jose/jwk" + "github.com/trustbloc/kms-go/doc/jose/jwk" docdid "github.com/trustbloc/vc-go/did" ) diff --git a/vdr/httpbinding/resolver_interop.go b/vdr/httpbinding/resolver_interop.go index 97e9470..18a9fcb 100644 --- a/vdr/httpbinding/resolver_interop.go +++ b/vdr/httpbinding/resolver_interop.go @@ -12,7 +12,7 @@ package httpbinding import ( "strings" - "github.com/trustbloc/kms-crypto-go/doc/util/fingerprint" + "github.com/trustbloc/kms-go/doc/util/fingerprint" diddoc "github.com/trustbloc/vc-go/did" ) diff --git a/vdr/key/creator.go b/vdr/key/creator.go index 05411cf..36ebbe9 100644 --- a/vdr/key/creator.go +++ b/vdr/key/creator.go @@ -10,8 +10,8 @@ import ( "fmt" "time" - "github.com/trustbloc/kms-crypto-go/doc/util/fingerprint" - "github.com/trustbloc/kms-crypto-go/util/cryptoutil" + "github.com/trustbloc/kms-go/doc/util/fingerprint" + "github.com/trustbloc/kms-go/util/cryptoutil" "github.com/trustbloc/vc-go/did" vdrspi "github.com/trustbloc/vc-go/spi/vdr" ) diff --git a/vdr/key/creator_test.go b/vdr/key/creator_test.go index 1201387..c2333f9 100644 --- a/vdr/key/creator_test.go +++ b/vdr/key/creator_test.go @@ -16,7 +16,7 @@ import ( "github.com/btcsuite/btcutil/base58" "github.com/stretchr/testify/require" - "github.com/trustbloc/kms-crypto-go/doc/jose/jwk/jwksupport" + "github.com/trustbloc/kms-go/doc/jose/jwk/jwksupport" "github.com/trustbloc/vc-go/did" ) diff --git a/vdr/key/resolver.go b/vdr/key/resolver.go index 35de9a7..c69a57c 100644 --- a/vdr/key/resolver.go +++ b/vdr/key/resolver.go @@ -12,8 +12,8 @@ import ( "fmt" "regexp" - "github.com/trustbloc/kms-crypto-go/doc/jose/jwk/jwksupport" - "github.com/trustbloc/kms-crypto-go/doc/util/fingerprint" + "github.com/trustbloc/kms-go/doc/jose/jwk/jwksupport" + "github.com/trustbloc/kms-go/doc/util/fingerprint" "github.com/trustbloc/vc-go/did" vdrspi "github.com/trustbloc/vc-go/spi/vdr" ) diff --git a/vdr/key/resolver_test.go b/vdr/key/resolver_test.go index dbc168c..bfe7479 100644 --- a/vdr/key/resolver_test.go +++ b/vdr/key/resolver_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/trustbloc/kms-crypto-go/doc/util/fingerprint" + "github.com/trustbloc/kms-go/doc/util/fingerprint" ) func TestReadInvalid(t *testing.T) { diff --git a/vdr/peer/creator.go b/vdr/peer/creator.go index 0f81bc3..ba1f0ac 100644 --- a/vdr/peer/creator.go +++ b/vdr/peer/creator.go @@ -14,7 +14,7 @@ import ( "github.com/btcsuite/btcutil/base58" "github.com/google/uuid" - "github.com/trustbloc/kms-crypto-go/doc/util/fingerprint" + "github.com/trustbloc/kms-go/doc/util/fingerprint" "github.com/trustbloc/vc-go/did" "github.com/trustbloc/vc-go/did/endpoint" vdrspi "github.com/trustbloc/vc-go/spi/vdr" diff --git a/vdr/peer/creator_test.go b/vdr/peer/creator_test.go index a9c9c18..569a8be 100644 --- a/vdr/peer/creator_test.go +++ b/vdr/peer/creator_test.go @@ -16,14 +16,14 @@ import ( "github.com/btcsuite/btcutil/base58" "github.com/stretchr/testify/require" - "github.com/trustbloc/kms-crypto-go/doc/util/fingerprint" - "github.com/trustbloc/kms-crypto-go/doc/util/jwkkid" - "github.com/trustbloc/kms-crypto-go/kms" - "github.com/trustbloc/kms-crypto-go/kms/localkms" - "github.com/trustbloc/kms-crypto-go/secretlock/noop" - kmsapi "github.com/trustbloc/kms-crypto-go/spi/kms" - "github.com/trustbloc/kms-crypto-go/spi/secretlock" - spi "github.com/trustbloc/kms-crypto-go/spi/storage" + "github.com/trustbloc/kms-go/doc/util/fingerprint" + "github.com/trustbloc/kms-go/doc/util/jwkkid" + "github.com/trustbloc/kms-go/kms" + "github.com/trustbloc/kms-go/kms/localkms" + "github.com/trustbloc/kms-go/secretlock/noop" + kmsapi "github.com/trustbloc/kms-go/spi/kms" + "github.com/trustbloc/kms-go/spi/secretlock" + spi "github.com/trustbloc/kms-go/spi/storage" "github.com/trustbloc/vc-go/did" "github.com/trustbloc/vc-go/did/endpoint" vdrspi "github.com/trustbloc/vc-go/spi/vdr" diff --git a/vdr/peer/store.go b/vdr/peer/store.go index e3b0bb4..cb06045 100644 --- a/vdr/peer/store.go +++ b/vdr/peer/store.go @@ -13,7 +13,7 @@ import ( "fmt" "time" - "github.com/trustbloc/kms-crypto-go/spi/storage" + "github.com/trustbloc/kms-go/spi/storage" "github.com/trustbloc/vc-go/did" vdrapi "github.com/trustbloc/did-go/vdr/api" diff --git a/vdr/peer/vdr.go b/vdr/peer/vdr.go index 7f0f97a..0edc668 100644 --- a/vdr/peer/vdr.go +++ b/vdr/peer/vdr.go @@ -9,7 +9,7 @@ package peer import ( "fmt" - "github.com/trustbloc/kms-crypto-go/spi/storage" + "github.com/trustbloc/kms-go/spi/storage" diddoc "github.com/trustbloc/vc-go/did" vdrspi "github.com/trustbloc/vc-go/spi/vdr" )