Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: update kms-go&vc-go, use kms-crypto wrappers #1439

Merged
merged 1 commit into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/vc-rest/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ require (
github.com/stretchr/testify v1.8.4
github.com/trustbloc/cmdutil-go v1.0.0
github.com/trustbloc/did-go v1.0.2-0.20230922190208-b53738d979e9
github.com/trustbloc/kms-go v1.0.1-0.20230928143453-638bd66bb721
github.com/trustbloc/logutil-go v1.0.0
github.com/trustbloc/vc-go v1.0.3-0.20230927100750-6e0ff8399468
github.com/trustbloc/vc-go v1.0.3-0.20230928151511-79dcd24234b2
github.com/trustbloc/vcs v0.0.0
github.com/trustbloc/vcs/component/credentialstatus v0.0.0-00010101000000-000000000000a
github.com/trustbloc/vcs/component/echo v0.0.0-00010101000000-000000000000
Expand Down Expand Up @@ -177,7 +178,6 @@ require (
github.com/tidwall/pretty v1.2.1 // indirect
github.com/tidwall/sjson v1.2.5 // indirect
github.com/trustbloc/bbs-signature-go v1.0.0 // indirect
github.com/trustbloc/kms-go v1.0.1-0.20230922134356-24e819a06a30 // indirect
github.com/trustbloc/sidetree-core-go v1.0.0 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fastjson v1.6.3 // indirect
Expand Down
8 changes: 4 additions & 4 deletions cmd/vc-rest/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -590,14 +590,14 @@ github.com/trustbloc/cmdutil-go v1.0.0 h1:QCe7wVEIASWmy9ZDD0l0tsQCEsX6fx+kBFX5Uq
github.com/trustbloc/cmdutil-go v1.0.0/go.mod h1:o/v7C1z6d/5UrjaC6GAUc1hk0XVuE3M4tpyvsMMUw5k=
github.com/trustbloc/did-go v1.0.2-0.20230922190208-b53738d979e9 h1:UA6QlD58VZnSd2EpFJCi9XctBY3naKouBOtjMss4ewc=
github.com/trustbloc/did-go v1.0.2-0.20230922190208-b53738d979e9/go.mod h1:qqTm9zd5rGhHSOtC8jjadqM01Od9zcDbUiUYLv+M6ls=
github.com/trustbloc/kms-go v1.0.1-0.20230922134356-24e819a06a30 h1:nNmYk/CX3UrLe4a7qCaMjsc+IWcQdZlJGvY5D2gsewE=
github.com/trustbloc/kms-go v1.0.1-0.20230922134356-24e819a06a30/go.mod h1:7arOSG9GewtV1WiqYZ23dSZ6haamosSABwyG//cRaXQ=
github.com/trustbloc/kms-go v1.0.1-0.20230928143453-638bd66bb721 h1:3zVBmT6aF+ovuLNuE3BTxhw2UrfaOHHCJ+1yVEI/f8A=
github.com/trustbloc/kms-go v1.0.1-0.20230928143453-638bd66bb721/go.mod h1:7arOSG9GewtV1WiqYZ23dSZ6haamosSABwyG//cRaXQ=
github.com/trustbloc/logutil-go v1.0.0 h1:KzNs9TRbnmn+M3oYw9UkrtOjNd3ZGO8aLgfYttMypcE=
github.com/trustbloc/logutil-go v1.0.0/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 v1.0.3-0.20230927100750-6e0ff8399468 h1:GizDlcTPMuOh8HHifl8qp+ohaGMhiIT7k4+NcI/CA/I=
github.com/trustbloc/vc-go v1.0.3-0.20230927100750-6e0ff8399468/go.mod h1:6I4D1Hlf5CpSXBbfOIf58ZPtheyT8ZdsorN2kef2ZxU=
github.com/trustbloc/vc-go v1.0.3-0.20230928151511-79dcd24234b2 h1:CVfpNobNz9nuIZlkHQvN+VYSDvVCEjAoyOATKpu+MUU=
github.com/trustbloc/vc-go v1.0.3-0.20230928151511-79dcd24234b2/go.mod h1:SnCw1mlpqWuRaKlcMGXlPqtu5Ggu7/a0WTvFXCrcJ0M=
github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw=
github.com/ugorji/go v1.2.7/go.mod h1:nF9osbDWLy6bDVv/Rtoh6QgnvNDpmCalQV5urGCCS6M=
github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY=
Expand Down
8 changes: 6 additions & 2 deletions cmd/vc-rest/startcmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
"github.com/deepmap/oapi-codegen/pkg/securityprovider"
"github.com/dgraph-io/ristretto"
"github.com/trustbloc/did-go/doc/ld/documentloader"
"github.com/trustbloc/kms-go/wrapper/api"
"golang.org/x/net/http2"
"golang.org/x/net/http2/h2c"

Expand Down Expand Up @@ -646,11 +647,14 @@ func buildEchoHandler(

var oidc4ciService oidc4ci.ServiceInterface

var dataKeyEncryptor dataprotect.Crypto
dataKeyEncryptor = defaultVCSKeyManager.Crypto()
var dataKeyEncryptor api.EncrypterDecrypter
dataKeyEncryptor, err = defaultVCSKeyManager.Suite().EncrypterDecrypter()
if conf.StartupParameters.dataEncryptionDisabled {
dataKeyEncryptor = dataprotect.NewNilCrypto()
} else if err != nil {
return nil, fmt.Errorf("provided crypto suite does not support encryption/decryption: %w", err)
}

claimsDataProtector := dataprotect.NewDataProtector(
dataKeyEncryptor,
conf.StartupParameters.dataEncryptionKeyID,
Expand Down
45 changes: 8 additions & 37 deletions component/credentialstatus/credentialstatus_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,12 @@ import (
"github.com/piprate/json-gold/ld"
"github.com/stretchr/testify/require"
longform "github.com/trustbloc/did-go/method/sidetreelongform"
"github.com/trustbloc/vcs/internal/mock/vcskms"

timeutil "github.com/trustbloc/did-go/doc/util/time"
vdr2 "github.com/trustbloc/did-go/vdr"
vdr "github.com/trustbloc/did-go/vdr/api"
vdrmock "github.com/trustbloc/did-go/vdr/mock"
"github.com/trustbloc/kms-go/doc/jose/jwk"
cryptomock "github.com/trustbloc/kms-go/mock/crypto"
mockkms "github.com/trustbloc/kms-go/mock/kms"
ariescrypto "github.com/trustbloc/kms-go/spi/crypto"
kmsapi "github.com/trustbloc/kms-go/spi/kms"
"github.com/trustbloc/vc-go/verifiable"

"github.com/trustbloc/vcs/component/credentialstatus/internal/testutil"
Expand All @@ -45,7 +41,6 @@ import (
"github.com/trustbloc/vcs/pkg/doc/vc/vcutil"
vcsverifiable "github.com/trustbloc/vcs/pkg/doc/verifiable"
"github.com/trustbloc/vcs/pkg/event/spi"
"github.com/trustbloc/vcs/pkg/kms/signer"
profileapi "github.com/trustbloc/vcs/pkg/profile"
"github.com/trustbloc/vcs/pkg/service/credentialstatus"
"github.com/trustbloc/vcs/pkg/service/credentialstatus/eventhandler"
Expand Down Expand Up @@ -103,7 +98,7 @@ func TestCredentialStatusList_CreateStatusListEntry(t *testing.T) {
mockProfileSrv := NewMockProfileService(gomock.NewController(t))
mockProfileSrv.EXPECT().GetProfile(profileID, profileVersion).AnyTimes().Return(getTestProfile(), nil)
mockKMSRegistry := NewMockKMSRegistry(gomock.NewController(t))
mockKMSRegistry.EXPECT().GetKeyManager(gomock.Any()).Times(5).Return(&mockKMS{}, nil)
mockKMSRegistry.EXPECT().GetKeyManager(gomock.Any()).Times(5).Return(&vcskms.MockKMS{}, nil)
ctx := context.Background()

cslVCStore := newMockCSLVCStore()
Expand Down Expand Up @@ -241,7 +236,7 @@ func TestCredentialStatusList_UpdateVCStatus(t *testing.T) {
mockProfileSrv := NewMockProfileService(gomock.NewController(t))
mockProfileSrv.EXPECT().GetProfile(profileID, profileVersion).AnyTimes().Return(profile, nil)
mockKMSRegistry := NewMockKMSRegistry(gomock.NewController(t))
mockKMSRegistry.EXPECT().GetKeyManager(gomock.Any()).AnyTimes().Return(&mockKMS{}, nil)
mockKMSRegistry.EXPECT().GetKeyManager(gomock.Any()).AnyTimes().Return(&vcskms.MockKMS{}, nil)
cslVCStore := newMockCSLVCStore()
cslIndexStore := newMockCSLIndexStore()
crypto := vccrypto.New(
Expand Down Expand Up @@ -360,7 +355,7 @@ func TestCredentialStatusList_UpdateVCStatus(t *testing.T) {
mockProfileSrv := NewMockProfileService(gomock.NewController(t))
mockProfileSrv.EXPECT().GetProfile(profileID, profileVersion).AnyTimes().Return(getTestProfile(), nil)
mockKMSRegistry := NewMockKMSRegistry(gomock.NewController(t))
mockKMSRegistry.EXPECT().GetKeyManager(gomock.Any()).AnyTimes().Return(&mockKMS{}, nil)
mockKMSRegistry.EXPECT().GetKeyManager(gomock.Any()).AnyTimes().Return(&vcskms.MockKMS{}, nil)

s, err := New(&Config{
ProfileService: mockProfileSrv,
Expand Down Expand Up @@ -388,7 +383,7 @@ func TestCredentialStatusList_UpdateVCStatus(t *testing.T) {
mockProfileSrv := NewMockProfileService(gomock.NewController(t))
mockProfileSrv.EXPECT().GetProfile(profileID, profileVersion).AnyTimes().Return(getTestProfile(), nil)
mockKMSRegistry := NewMockKMSRegistry(gomock.NewController(t))
mockKMSRegistry.EXPECT().GetKeyManager(gomock.Any()).AnyTimes().Return(&mockKMS{}, nil)
mockKMSRegistry.EXPECT().GetKeyManager(gomock.Any()).AnyTimes().Return(&vcskms.MockKMS{}, nil)

s, err := New(&Config{
DocumentLoader: loader,
Expand Down Expand Up @@ -425,7 +420,7 @@ func TestCredentialStatusList_UpdateVCStatus(t *testing.T) {
mockProfileSrv := NewMockProfileService(gomock.NewController(t))
mockProfileSrv.EXPECT().GetProfile(profileID, profileVersion).AnyTimes().Return(getTestProfile(), nil)
mockKMSRegistry := NewMockKMSRegistry(gomock.NewController(t))
mockKMSRegistry.EXPECT().GetKeyManager(gomock.Any()).AnyTimes().Return(&mockKMS{}, nil)
mockKMSRegistry.EXPECT().GetKeyManager(gomock.Any()).AnyTimes().Return(&vcskms.MockKMS{}, nil)

s, err := New(&Config{
DocumentLoader: loader,
Expand Down Expand Up @@ -619,7 +614,7 @@ func TestCredentialStatusList_UpdateVCStatus(t *testing.T) {
mockProfileSrv := NewMockProfileService(gomock.NewController(t))
mockProfileSrv.EXPECT().GetProfile(profileID, profileVersion).AnyTimes().Return(getTestProfile(), nil)
mockKMSRegistry := NewMockKMSRegistry(gomock.NewController(t))
mockKMSRegistry.EXPECT().GetKeyManager(gomock.Any()).AnyTimes().Return(&mockKMS{}, nil)
mockKMSRegistry.EXPECT().GetKeyManager(gomock.Any()).AnyTimes().Return(&vcskms.MockKMS{}, nil)
mockEventPublisher := NewMockEventPublisher(gomock.NewController(t))
mockEventPublisher.EXPECT().Publish(gomock.Any(), eventTopic, gomock.Any()).Times(1).Return(errors.New("some error"))

Expand Down Expand Up @@ -671,7 +666,7 @@ func TestCredentialStatusList_UpdateVCStatus(t *testing.T) {
mockProfileSrv := NewMockProfileService(gomock.NewController(t))
mockProfileSrv.EXPECT().GetProfile(profileID, profileVersion).AnyTimes().Return(profile, nil)
mockKMSRegistry := NewMockKMSRegistry(gomock.NewController(t))
mockKMSRegistry.EXPECT().GetKeyManager(gomock.Any()).AnyTimes().Return(&mockKMS{}, nil)
mockKMSRegistry.EXPECT().GetKeyManager(gomock.Any()).AnyTimes().Return(&vcskms.MockKMS{}, nil)
cslIndexStore := newMockCSLIndexStore()
cslVCStore := newMockCSLVCStore()
loader := testutil.DocumentLoader(t)
Expand Down Expand Up @@ -1050,30 +1045,6 @@ func (m *mockVCStore) Put(
return nil
}

type mockKMS struct {
crypto ariescrypto.Crypto
}

func (m *mockKMS) NewVCSigner(creator string, signatureType vcsverifiable.SignatureType) (vc.SignerAlgorithm, error) {
if m.crypto == nil {
m.crypto = &cryptomock.Crypto{}
}

return signer.NewKMSSigner(&mockkms.KeyManager{}, m.crypto, creator, signatureType, nil)
}

func (m *mockKMS) SupportedKeyTypes() []kmsapi.KeyType {
return nil
}

func (m *mockKMS) CreateJWKKey(_ kmsapi.KeyType) (string, *jwk.JWK, error) {
return "", nil, nil
}

func (m *mockKMS) CreateCryptoKey(_ kmsapi.KeyType) (string, interface{}, error) {
return "", nil, nil
}

func TestService_StoreIssuedCredentialMetadata(t *testing.T) {
mockStore := NewMockCredentialIssuanceHistoryStore(gomock.NewController(t))
txID := uuid.NewString()
Expand Down
4 changes: 2 additions & 2 deletions component/credentialstatus/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ require (
github.com/spf13/cobra v1.7.0
github.com/stretchr/testify v1.8.4
github.com/trustbloc/did-go v1.0.2-0.20230922190208-b53738d979e9
github.com/trustbloc/kms-go v1.0.1-0.20230922134356-24e819a06a30
github.com/trustbloc/logutil-go v1.0.0
github.com/trustbloc/vc-go v1.0.3-0.20230927100750-6e0ff8399468
github.com/trustbloc/vc-go v1.0.3-0.20230928151511-79dcd24234b2
github.com/trustbloc/vcs v0.0.0
)

Expand Down Expand Up @@ -114,6 +113,7 @@ require (
github.com/tidwall/pretty v1.2.1 // indirect
github.com/tidwall/sjson v1.2.5 // indirect
github.com/trustbloc/bbs-signature-go v1.0.0 // indirect
github.com/trustbloc/kms-go v1.0.1-0.20230928143453-638bd66bb721 // indirect
github.com/trustbloc/sidetree-core-go v1.0.0 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasttemplate v1.2.1 // indirect
Expand Down
8 changes: 4 additions & 4 deletions component/credentialstatus/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -449,14 +449,14 @@ github.com/trustbloc/bbs-signature-go v1.0.0 h1:JOKmPRTpjbbGODt71i3wJyiEBcu5XEoe
github.com/trustbloc/bbs-signature-go v1.0.0/go.mod h1:8xptu/lbVUDACQW10yiHtqATzC2kpTKQk5mKsKTD85Y=
github.com/trustbloc/did-go v1.0.2-0.20230922190208-b53738d979e9 h1:UA6QlD58VZnSd2EpFJCi9XctBY3naKouBOtjMss4ewc=
github.com/trustbloc/did-go v1.0.2-0.20230922190208-b53738d979e9/go.mod h1:qqTm9zd5rGhHSOtC8jjadqM01Od9zcDbUiUYLv+M6ls=
github.com/trustbloc/kms-go v1.0.1-0.20230922134356-24e819a06a30 h1:nNmYk/CX3UrLe4a7qCaMjsc+IWcQdZlJGvY5D2gsewE=
github.com/trustbloc/kms-go v1.0.1-0.20230922134356-24e819a06a30/go.mod h1:7arOSG9GewtV1WiqYZ23dSZ6haamosSABwyG//cRaXQ=
github.com/trustbloc/kms-go v1.0.1-0.20230928143453-638bd66bb721 h1:3zVBmT6aF+ovuLNuE3BTxhw2UrfaOHHCJ+1yVEI/f8A=
github.com/trustbloc/kms-go v1.0.1-0.20230928143453-638bd66bb721/go.mod h1:7arOSG9GewtV1WiqYZ23dSZ6haamosSABwyG//cRaXQ=
github.com/trustbloc/logutil-go v1.0.0 h1:KzNs9TRbnmn+M3oYw9UkrtOjNd3ZGO8aLgfYttMypcE=
github.com/trustbloc/logutil-go v1.0.0/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 v1.0.3-0.20230927100750-6e0ff8399468 h1:GizDlcTPMuOh8HHifl8qp+ohaGMhiIT7k4+NcI/CA/I=
github.com/trustbloc/vc-go v1.0.3-0.20230927100750-6e0ff8399468/go.mod h1:6I4D1Hlf5CpSXBbfOIf58ZPtheyT8ZdsorN2kef2ZxU=
github.com/trustbloc/vc-go v1.0.3-0.20230928151511-79dcd24234b2 h1:CVfpNobNz9nuIZlkHQvN+VYSDvVCEjAoyOATKpu+MUU=
github.com/trustbloc/vc-go v1.0.3-0.20230928151511-79dcd24234b2/go.mod h1:SnCw1mlpqWuRaKlcMGXlPqtu5Ggu7/a0WTvFXCrcJ0M=
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
github.com/valyala/fasttemplate v1.2.1 h1:TVEnxayobAdVkhQfrfes2IzOB6o+z4roRkPF52WA1u4=
Expand Down
4 changes: 2 additions & 2 deletions component/event/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ require (
github.com/stretchr/testify v1.8.4
github.com/trustbloc/cmdutil-go v1.0.0
github.com/trustbloc/logutil-go v1.0.0
github.com/trustbloc/vc-go v1.0.3-0.20230927100750-6e0ff8399468
github.com/trustbloc/vc-go v1.0.3-0.20230928151511-79dcd24234b2
github.com/trustbloc/vcs v0.0.0
go.opentelemetry.io/otel/trace v1.14.0
)
Expand Down Expand Up @@ -105,7 +105,7 @@ require (
github.com/tidwall/sjson v1.2.5 // indirect
github.com/trustbloc/bbs-signature-go v1.0.0 // indirect
github.com/trustbloc/did-go v1.0.2-0.20230922190208-b53738d979e9 // indirect
github.com/trustbloc/kms-go v1.0.1-0.20230922134356-24e819a06a30 // indirect
github.com/trustbloc/kms-go v1.0.1-0.20230928143453-638bd66bb721 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasttemplate v1.2.1 // indirect
github.com/xdg-go/pbkdf2 v1.0.0 // indirect
Expand Down
8 changes: 4 additions & 4 deletions component/event/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -433,12 +433,12 @@ github.com/trustbloc/cmdutil-go v1.0.0 h1:QCe7wVEIASWmy9ZDD0l0tsQCEsX6fx+kBFX5Uq
github.com/trustbloc/cmdutil-go v1.0.0/go.mod h1:o/v7C1z6d/5UrjaC6GAUc1hk0XVuE3M4tpyvsMMUw5k=
github.com/trustbloc/did-go v1.0.2-0.20230922190208-b53738d979e9 h1:UA6QlD58VZnSd2EpFJCi9XctBY3naKouBOtjMss4ewc=
github.com/trustbloc/did-go v1.0.2-0.20230922190208-b53738d979e9/go.mod h1:qqTm9zd5rGhHSOtC8jjadqM01Od9zcDbUiUYLv+M6ls=
github.com/trustbloc/kms-go v1.0.1-0.20230922134356-24e819a06a30 h1:nNmYk/CX3UrLe4a7qCaMjsc+IWcQdZlJGvY5D2gsewE=
github.com/trustbloc/kms-go v1.0.1-0.20230922134356-24e819a06a30/go.mod h1:7arOSG9GewtV1WiqYZ23dSZ6haamosSABwyG//cRaXQ=
github.com/trustbloc/kms-go v1.0.1-0.20230928143453-638bd66bb721 h1:3zVBmT6aF+ovuLNuE3BTxhw2UrfaOHHCJ+1yVEI/f8A=
github.com/trustbloc/kms-go v1.0.1-0.20230928143453-638bd66bb721/go.mod h1:7arOSG9GewtV1WiqYZ23dSZ6haamosSABwyG//cRaXQ=
github.com/trustbloc/logutil-go v1.0.0 h1:KzNs9TRbnmn+M3oYw9UkrtOjNd3ZGO8aLgfYttMypcE=
github.com/trustbloc/logutil-go v1.0.0/go.mod h1:JlxT0oZfNKgIlSNtgc001WEeDMxlnAvOM43gNm8DQVc=
github.com/trustbloc/vc-go v1.0.3-0.20230927100750-6e0ff8399468 h1:GizDlcTPMuOh8HHifl8qp+ohaGMhiIT7k4+NcI/CA/I=
github.com/trustbloc/vc-go v1.0.3-0.20230927100750-6e0ff8399468/go.mod h1:6I4D1Hlf5CpSXBbfOIf58ZPtheyT8ZdsorN2kef2ZxU=
github.com/trustbloc/vc-go v1.0.3-0.20230928151511-79dcd24234b2 h1:CVfpNobNz9nuIZlkHQvN+VYSDvVCEjAoyOATKpu+MUU=
github.com/trustbloc/vc-go v1.0.3-0.20230928151511-79dcd24234b2/go.mod h1:SnCw1mlpqWuRaKlcMGXlPqtu5Ggu7/a0WTvFXCrcJ0M=
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
github.com/valyala/fasttemplate v1.2.1 h1:TVEnxayobAdVkhQfrfes2IzOB6o+z4roRkPF52WA1u4=
Expand Down
4 changes: 2 additions & 2 deletions component/profile/reader/file/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
github.com/stretchr/testify v1.8.4
github.com/trustbloc/cmdutil-go v1.0.0
github.com/trustbloc/did-go v1.0.2-0.20230922190208-b53738d979e9
github.com/trustbloc/kms-go v1.0.1-0.20230922134356-24e819a06a30
github.com/trustbloc/kms-go v1.0.1-0.20230928143453-638bd66bb721
github.com/trustbloc/logutil-go v1.0.0
github.com/trustbloc/vcs v0.0.0
)
Expand Down Expand Up @@ -115,7 +115,7 @@ require (
github.com/tidwall/sjson v1.2.5 // indirect
github.com/trustbloc/bbs-signature-go v1.0.0 // indirect
github.com/trustbloc/sidetree-core-go v1.0.0 // indirect
github.com/trustbloc/vc-go v1.0.3-0.20230927100750-6e0ff8399468 // indirect
github.com/trustbloc/vc-go v1.0.3-0.20230928151511-79dcd24234b2 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasttemplate v1.2.1 // indirect
github.com/xdg-go/pbkdf2 v1.0.0 // indirect
Expand Down
8 changes: 4 additions & 4 deletions component/profile/reader/file/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -453,14 +453,14 @@ github.com/trustbloc/cmdutil-go v1.0.0 h1:QCe7wVEIASWmy9ZDD0l0tsQCEsX6fx+kBFX5Uq
github.com/trustbloc/cmdutil-go v1.0.0/go.mod h1:o/v7C1z6d/5UrjaC6GAUc1hk0XVuE3M4tpyvsMMUw5k=
github.com/trustbloc/did-go v1.0.2-0.20230922190208-b53738d979e9 h1:UA6QlD58VZnSd2EpFJCi9XctBY3naKouBOtjMss4ewc=
github.com/trustbloc/did-go v1.0.2-0.20230922190208-b53738d979e9/go.mod h1:qqTm9zd5rGhHSOtC8jjadqM01Od9zcDbUiUYLv+M6ls=
github.com/trustbloc/kms-go v1.0.1-0.20230922134356-24e819a06a30 h1:nNmYk/CX3UrLe4a7qCaMjsc+IWcQdZlJGvY5D2gsewE=
github.com/trustbloc/kms-go v1.0.1-0.20230922134356-24e819a06a30/go.mod h1:7arOSG9GewtV1WiqYZ23dSZ6haamosSABwyG//cRaXQ=
github.com/trustbloc/kms-go v1.0.1-0.20230928143453-638bd66bb721 h1:3zVBmT6aF+ovuLNuE3BTxhw2UrfaOHHCJ+1yVEI/f8A=
github.com/trustbloc/kms-go v1.0.1-0.20230928143453-638bd66bb721/go.mod h1:7arOSG9GewtV1WiqYZ23dSZ6haamosSABwyG//cRaXQ=
github.com/trustbloc/logutil-go v1.0.0 h1:KzNs9TRbnmn+M3oYw9UkrtOjNd3ZGO8aLgfYttMypcE=
github.com/trustbloc/logutil-go v1.0.0/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 v1.0.3-0.20230927100750-6e0ff8399468 h1:GizDlcTPMuOh8HHifl8qp+ohaGMhiIT7k4+NcI/CA/I=
github.com/trustbloc/vc-go v1.0.3-0.20230927100750-6e0ff8399468/go.mod h1:6I4D1Hlf5CpSXBbfOIf58ZPtheyT8ZdsorN2kef2ZxU=
github.com/trustbloc/vc-go v1.0.3-0.20230928151511-79dcd24234b2 h1:CVfpNobNz9nuIZlkHQvN+VYSDvVCEjAoyOATKpu+MUU=
github.com/trustbloc/vc-go v1.0.3-0.20230928151511-79dcd24234b2/go.mod h1:SnCw1mlpqWuRaKlcMGXlPqtu5Ggu7/a0WTvFXCrcJ0M=
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
github.com/valyala/fasttemplate v1.2.1 h1:TVEnxayobAdVkhQfrfes2IzOB6o+z4roRkPF52WA1u4=
Expand Down
4 changes: 2 additions & 2 deletions component/wallet-cli/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ require (
github.com/stretchr/testify v1.8.4
github.com/syndtr/goleveldb v1.0.0
github.com/trustbloc/did-go v1.0.2-0.20230922190208-b53738d979e9
github.com/trustbloc/kms-go v1.0.1-0.20230922134356-24e819a06a30
github.com/trustbloc/vc-go v1.0.3-0.20230927100750-6e0ff8399468
github.com/trustbloc/kms-go v1.0.1-0.20230928143453-638bd66bb721
github.com/trustbloc/vc-go v1.0.3-0.20230928151511-79dcd24234b2
github.com/trustbloc/vcs v0.1.9-0.20230210204445-f2870a36f0ea
github.com/valyala/fastjson v1.6.3
go.mongodb.org/mongo-driver v1.11.4
Expand Down
Loading