Skip to content

Commit

Permalink
refactor: update kms-go&vc-go, use kms-crypto wrappers
Browse files Browse the repository at this point in the history
Signed-off-by: Filip Burlacu <[email protected]>
  • Loading branch information
Moopli committed Oct 11, 2023
1 parent a165dca commit 02a1534
Show file tree
Hide file tree
Showing 49 changed files with 1,032 additions and 1,005 deletions.
8 changes: 4 additions & 4 deletions cmd/vc-rest/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ require (
github.com/spf13/cobra v1.7.0
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/did-go v1.0.2-0.20230928194341-39d5462574c0
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.20231006124640-f415c5aaa776
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,8 +178,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.20230922134356-24e819a06a30 // indirect
github.com/trustbloc/sidetree-core-go v1.0.0 // indirect
github.com/trustbloc/sidetree-go v0.0.0-20230928172705-30e78b6b6ddd // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fastjson v1.6.3 // indirect
github.com/valyala/fasttemplate v1.2.2 // indirect
Expand Down
16 changes: 8 additions & 8 deletions cmd/vc-rest/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -588,16 +588,16 @@ 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/cmdutil-go v1.0.0 h1:QCe7wVEIASWmy9ZDD0l0tsQCEsX6fx+kBFX5UqCVRdk=
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/did-go v1.0.2-0.20230928194341-39d5462574c0 h1:ollAh0wYMpsKDCumZqNPHPWz1Ey81wkjGeoHdpNjV8M=
github.com/trustbloc/did-go v1.0.2-0.20230928194341-39d5462574c0/go.mod h1:N3/V/JFMBQldko9OjpTCxAt9UHv5/qcVJXAO1DaDDe4=
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/sidetree-go v0.0.0-20230928172705-30e78b6b6ddd h1:hWWZ7lQSRK5FOcVhG5cUtwaNwWLYaz9wASiR5GyPtQE=
github.com/trustbloc/sidetree-go v0.0.0-20230928172705-30e78b6b6ddd/go.mod h1:3oQhk0vOdhaUpPEQBFBzwqH8t0d8bcP2XLU2orBY13U=
github.com/trustbloc/vc-go v1.0.3-0.20231006124640-f415c5aaa776 h1:8iYpeSJavpeu4oRWuUnPwsSOwEzVJzubN2FDZRcjWLg=
github.com/trustbloc/vc-go v1.0.3-0.20231006124640-f415c5aaa776/go.mod h1:VuXhnz0ojxFCRL9dPxETYTtFPNNFHqzS1Ati/lnQs1o=
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
8 changes: 4 additions & 4 deletions component/credentialstatus/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ require (
github.com/piprate/json-gold v0.5.1-0.20230111113000-6ddbe6e6f19f
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/did-go v1.0.2-0.20230928194341-39d5462574c0
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.20231006124640-f415c5aaa776
github.com/trustbloc/vcs v0.0.0
)

Expand Down Expand Up @@ -114,7 +113,8 @@ 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/sidetree-core-go v1.0.0 // indirect
github.com/trustbloc/kms-go v1.0.1-0.20230928143453-638bd66bb721 // indirect
github.com/trustbloc/sidetree-go v0.0.0-20230928172705-30e78b6b6ddd // 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
16 changes: 8 additions & 8 deletions component/credentialstatus/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -447,16 +447,16 @@ github.com/tidwall/sjson v1.2.5 h1:kLy8mja+1c9jlljvWTlSazM7cKDRfJuR/bOJhcY5NcY=
github.com/tidwall/sjson v1.2.5/go.mod h1:Fvgq9kS/6ociJEDnK0Fk1cpYF4FIW6ZF7LAe+6jwd28=
github.com/trustbloc/bbs-signature-go v1.0.0 h1:JOKmPRTpjbbGODt71i3wJyiEBcu5XEoeSMQaM0WHR7Q=
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/did-go v1.0.2-0.20230928194341-39d5462574c0 h1:ollAh0wYMpsKDCumZqNPHPWz1Ey81wkjGeoHdpNjV8M=
github.com/trustbloc/did-go v1.0.2-0.20230928194341-39d5462574c0/go.mod h1:N3/V/JFMBQldko9OjpTCxAt9UHv5/qcVJXAO1DaDDe4=
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/sidetree-go v0.0.0-20230928172705-30e78b6b6ddd h1:hWWZ7lQSRK5FOcVhG5cUtwaNwWLYaz9wASiR5GyPtQE=
github.com/trustbloc/sidetree-go v0.0.0-20230928172705-30e78b6b6ddd/go.mod h1:3oQhk0vOdhaUpPEQBFBzwqH8t0d8bcP2XLU2orBY13U=
github.com/trustbloc/vc-go v1.0.3-0.20231006124640-f415c5aaa776 h1:8iYpeSJavpeu4oRWuUnPwsSOwEzVJzubN2FDZRcjWLg=
github.com/trustbloc/vc-go v1.0.3-0.20231006124640-f415c5aaa776/go.mod h1:VuXhnz0ojxFCRL9dPxETYTtFPNNFHqzS1Ati/lnQs1o=
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
6 changes: 3 additions & 3 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.20231006124640-f415c5aaa776
github.com/trustbloc/vcs v0.0.0
go.opentelemetry.io/otel/trace v1.14.0
)
Expand Down Expand Up @@ -104,8 +104,8 @@ 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/did-go v1.0.2-0.20230922190208-b53738d979e9 // indirect
github.com/trustbloc/kms-go v1.0.1-0.20230922134356-24e819a06a30 // indirect
github.com/trustbloc/did-go v1.0.2-0.20230928194341-39d5462574c0 // 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
12 changes: 6 additions & 6 deletions component/event/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -431,14 +431,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/cmdutil-go v1.0.0 h1:QCe7wVEIASWmy9ZDD0l0tsQCEsX6fx+kBFX5UqCVRdk=
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/did-go v1.0.2-0.20230928194341-39d5462574c0 h1:ollAh0wYMpsKDCumZqNPHPWz1Ey81wkjGeoHdpNjV8M=
github.com/trustbloc/did-go v1.0.2-0.20230928194341-39d5462574c0/go.mod h1:N3/V/JFMBQldko9OjpTCxAt9UHv5/qcVJXAO1DaDDe4=
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.20231006124640-f415c5aaa776 h1:8iYpeSJavpeu4oRWuUnPwsSOwEzVJzubN2FDZRcjWLg=
github.com/trustbloc/vc-go v1.0.3-0.20231006124640-f415c5aaa776/go.mod h1:VuXhnz0ojxFCRL9dPxETYTtFPNNFHqzS1Ati/lnQs1o=
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
8 changes: 4 additions & 4 deletions component/profile/reader/file/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ require (
github.com/spf13/cobra v1.7.0
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/did-go v1.0.2-0.20230928194341-39d5462574c0
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 @@ -114,8 +114,8 @@ 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/sidetree-core-go v1.0.0 // indirect
github.com/trustbloc/vc-go v1.0.3-0.20230927100750-6e0ff8399468 // indirect
github.com/trustbloc/sidetree-go v0.0.0-20230928172705-30e78b6b6ddd // indirect
github.com/trustbloc/vc-go v1.0.3-0.20231006124640-f415c5aaa776 // 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
Loading

0 comments on commit 02a1534

Please sign in to comment.