Skip to content

Commit

Permalink
feat(sdk): data integrity proof for vcplayground integration
Browse files Browse the repository at this point in the history
Signed-off-by: Andrii Holovko <[email protected]>
  • Loading branch information
aholovko committed Nov 28, 2024
1 parent 6578c55 commit aef44d3
Show file tree
Hide file tree
Showing 13 changed files with 133 additions and 71 deletions.
4 changes: 2 additions & 2 deletions cmd/wallet-sdk-gomobile/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ require (
github.com/gowebpki/jcs v1.0.1
github.com/piprate/json-gold v0.5.1-0.20230111113000-6ddbe6e6f19f
github.com/stretchr/testify v1.8.3
github.com/trustbloc/did-go v1.3.1-0.20241021165331-5721a3ff7396
github.com/trustbloc/did-go v1.3.1-0.20241122115441-c010226da580
github.com/trustbloc/kms-go v1.1.3-0.20241001141623-8d9510c6bb88
github.com/trustbloc/vc-go v1.2.1-0.20241119140508-59af0e10bdcc
github.com/trustbloc/vc-go v1.2.1-0.20241125142751-c33f1ff65382
github.com/trustbloc/wallet-sdk v0.0.0-00010101000000-000000000000
)

Expand Down
8 changes: 4 additions & 4 deletions cmd/wallet-sdk-gomobile/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -147,16 +147,16 @@ 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/bbs-signature-go v1.0.2 h1:gepEsbLiZHv/vva9FKG5gF38mGtOIyGez7desZxiI1o=
github.com/trustbloc/bbs-signature-go v1.0.2/go.mod h1:xYotcXHAbcE0TO+SteW0J6XI3geQaXq4wdnXR2k+XCU=
github.com/trustbloc/did-go v1.3.1-0.20241021165331-5721a3ff7396 h1:z9x5gLgDeUtcPUS8uQgHD/KQ/PL5VK2QV9oENYjsWbU=
github.com/trustbloc/did-go v1.3.1-0.20241021165331-5721a3ff7396/go.mod h1:L5m4TVlPwe7VN5FRrANPMg6EJN8wIlthC8CvossDZVI=
github.com/trustbloc/did-go v1.3.1-0.20241122115441-c010226da580 h1:ZCRVqTJfEZD33IvHcTYFI3M00UdYzn9mdAeCuqOvR/c=
github.com/trustbloc/did-go v1.3.1-0.20241122115441-c010226da580/go.mod h1:vD37dDNNfeVci/vJpicD1A4vhF9HcdQVB1kNGKu0rQ4=
github.com/trustbloc/json-gold v0.5.1 h1:0HHf0ildMnN4rUr7Rgxwnm1CO116JoGMrgoWIFngM1U=
github.com/trustbloc/json-gold v0.5.1/go.mod h1:RVhE35veDX19r5gfUAR+IYHkAUuPwJO8Ie/qVeFaIzw=
github.com/trustbloc/kms-go v1.1.3-0.20241001141623-8d9510c6bb88 h1:k3KNf9tE4TBVdpEtImmZIbUWFZRoL/96GPR7FSqCr9k=
github.com/trustbloc/kms-go v1.1.3-0.20241001141623-8d9510c6bb88/go.mod h1:OKOtsLbE6W5s4mpjWkvk8XEqcmt9vTgVmDNkHELpWO0=
github.com/trustbloc/sidetree-go v1.1.0 h1:ZNCtYTut5MHVXJR26FvOPSo8uCGDR0YTNeA155s/QIo=
github.com/trustbloc/sidetree-go v1.1.0/go.mod h1:IQ1iX/gLe/YL+M6kzenc5Oi14uzaYqfL7KgMyNuSGvI=
github.com/trustbloc/vc-go v1.2.1-0.20241119140508-59af0e10bdcc h1:hw0PseUDqXeXTJV/yeHYBteiU3f8BMMGVE9GfozygZw=
github.com/trustbloc/vc-go v1.2.1-0.20241119140508-59af0e10bdcc/go.mod h1:3/GbrzF7phN+SxBTZaUBS6VxnoxpXGBUjjk3Eg4ImUk=
github.com/trustbloc/vc-go v1.2.1-0.20241125142751-c33f1ff65382 h1:+A9r9mKaofDng9dVPu4SV896o6as6Ux9M0PQkRW8EHQ=
github.com/trustbloc/vc-go v1.2.1-0.20241125142751-c33f1ff65382/go.mod h1:bBE54VGTHhLpFW4guWqxsnz2gmCDq1QkTeIRHc2olO4=
github.com/veraison/go-cose v1.1.1-0.20240126165338-2300d5c96dbd h1:QhdCHSW1/oosJbzBTEYLU6xcKxXbQzzqFnhCtW2UWbA=
github.com/veraison/go-cose v1.1.1-0.20240126165338-2300d5c96dbd/go.mod h1:D1wnviyjdmcF8AO5Y9kVGU6OGuvXUMGiE0Auo/fYRYo=
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ require (
github.com/piprate/json-gold v0.5.1-0.20230111113000-6ddbe6e6f19f
github.com/stretchr/testify v1.8.3
github.com/trustbloc/bbs-signature-go v1.0.2
github.com/trustbloc/did-go v1.3.1-0.20241021165331-5721a3ff7396
github.com/trustbloc/did-go v1.3.1-0.20241122115441-c010226da580
github.com/trustbloc/kms-go v1.1.3-0.20241001141623-8d9510c6bb88
github.com/trustbloc/sidetree-go v1.1.0
github.com/trustbloc/vc-go v1.2.1-0.20241119140508-59af0e10bdcc
github.com/trustbloc/vc-go v1.2.1-0.20241125142751-c33f1ff65382
golang.org/x/oauth2 v0.13.0
)

Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -144,16 +144,16 @@ 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/bbs-signature-go v1.0.2 h1:gepEsbLiZHv/vva9FKG5gF38mGtOIyGez7desZxiI1o=
github.com/trustbloc/bbs-signature-go v1.0.2/go.mod h1:xYotcXHAbcE0TO+SteW0J6XI3geQaXq4wdnXR2k+XCU=
github.com/trustbloc/did-go v1.3.1-0.20241021165331-5721a3ff7396 h1:z9x5gLgDeUtcPUS8uQgHD/KQ/PL5VK2QV9oENYjsWbU=
github.com/trustbloc/did-go v1.3.1-0.20241021165331-5721a3ff7396/go.mod h1:L5m4TVlPwe7VN5FRrANPMg6EJN8wIlthC8CvossDZVI=
github.com/trustbloc/did-go v1.3.1-0.20241122115441-c010226da580 h1:ZCRVqTJfEZD33IvHcTYFI3M00UdYzn9mdAeCuqOvR/c=
github.com/trustbloc/did-go v1.3.1-0.20241122115441-c010226da580/go.mod h1:vD37dDNNfeVci/vJpicD1A4vhF9HcdQVB1kNGKu0rQ4=
github.com/trustbloc/json-gold v0.5.1 h1:0HHf0ildMnN4rUr7Rgxwnm1CO116JoGMrgoWIFngM1U=
github.com/trustbloc/json-gold v0.5.1/go.mod h1:RVhE35veDX19r5gfUAR+IYHkAUuPwJO8Ie/qVeFaIzw=
github.com/trustbloc/kms-go v1.1.3-0.20241001141623-8d9510c6bb88 h1:k3KNf9tE4TBVdpEtImmZIbUWFZRoL/96GPR7FSqCr9k=
github.com/trustbloc/kms-go v1.1.3-0.20241001141623-8d9510c6bb88/go.mod h1:OKOtsLbE6W5s4mpjWkvk8XEqcmt9vTgVmDNkHELpWO0=
github.com/trustbloc/sidetree-go v1.1.0 h1:ZNCtYTut5MHVXJR26FvOPSo8uCGDR0YTNeA155s/QIo=
github.com/trustbloc/sidetree-go v1.1.0/go.mod h1:IQ1iX/gLe/YL+M6kzenc5Oi14uzaYqfL7KgMyNuSGvI=
github.com/trustbloc/vc-go v1.2.1-0.20241119140508-59af0e10bdcc h1:hw0PseUDqXeXTJV/yeHYBteiU3f8BMMGVE9GfozygZw=
github.com/trustbloc/vc-go v1.2.1-0.20241119140508-59af0e10bdcc/go.mod h1:3/GbrzF7phN+SxBTZaUBS6VxnoxpXGBUjjk3Eg4ImUk=
github.com/trustbloc/vc-go v1.2.1-0.20241125142751-c33f1ff65382 h1:+A9r9mKaofDng9dVPu4SV896o6as6Ux9M0PQkRW8EHQ=
github.com/trustbloc/vc-go v1.2.1-0.20241125142751-c33f1ff65382/go.mod h1:bBE54VGTHhLpFW4guWqxsnz2gmCDq1QkTeIRHc2olO4=
github.com/veraison/go-cose v1.1.1-0.20240126165338-2300d5c96dbd h1:QhdCHSW1/oosJbzBTEYLU6xcKxXbQzzqFnhCtW2UWbA=
github.com/veraison/go-cose v1.1.1-0.20240126165338-2300d5c96dbd/go.mod h1:D1wnviyjdmcF8AO5Y9kVGU6OGuvXUMGiE0Auo/fYRYo=
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
Expand Down
123 changes: 90 additions & 33 deletions pkg/openid4vp/openid4vp.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,19 @@ import (
"github.com/trustbloc/kms-go/spi/kms"
wrapperapi "github.com/trustbloc/kms-go/wrapper/api"
"github.com/trustbloc/vc-go/dataintegrity"
"github.com/trustbloc/vc-go/dataintegrity/suite"
"github.com/trustbloc/vc-go/dataintegrity/suite/ecdsa2019"
"github.com/trustbloc/vc-go/dataintegrity/suite/eddsa2022"
"github.com/trustbloc/vc-go/jwt"
"github.com/trustbloc/vc-go/presexch"
"github.com/trustbloc/vc-go/proof/defaults"
"github.com/trustbloc/vc-go/verifiable"
"github.com/trustbloc/wallet-sdk/pkg/ldproof"

"github.com/trustbloc/wallet-sdk/pkg/api"
"github.com/trustbloc/wallet-sdk/pkg/common"
"github.com/trustbloc/wallet-sdk/pkg/did/wellknown"
"github.com/trustbloc/wallet-sdk/pkg/internal/httprequest"
"github.com/trustbloc/wallet-sdk/pkg/ldproof"
"github.com/trustbloc/wallet-sdk/pkg/models"
"github.com/trustbloc/wallet-sdk/pkg/walleterror"
)
Expand Down Expand Up @@ -527,10 +529,7 @@ func createAuthorizedResponseOneCred( //nolint:funlen,gocyclo // Unable to decom
vpFormat := presexch.FormatJWTVP

if vpFormats := requestObject.ClientMetadata.VPFormats; vpFormats != nil {
switch {
case vpFormats.JwtVP != nil:
break
case vpFormats.LdpVP != nil:
if vpFormats.LdpVP != nil {
vpFormat = presexch.FormatLDPVP
}
}
Expand Down Expand Up @@ -564,32 +563,20 @@ func createAuthorizedResponseOneCred( //nolint:funlen,gocyclo // Unable to decom
return nil, err
}

if opts != nil && opts.signer != nil {
err = addDataIntegrityProof(
fullVMID(did, signingVM.ID),
didResolver,
documentLoader,
opts.signer,
presentation,
)
if err != nil {
return nil, fmt.Errorf("failed to add data integrity proof to VP: %w", err)
}
}

jwtSigner, err := getHolderSigner(signingVM, crypto)
if err != nil {
return nil, err
}

presentationSubmission := presentation.CustomFields["presentation_submission"]
presentation.CustomFields["presentation_submission"] = nil

presentationSubmissionBytes, err := json.Marshal(presentationSubmission)
if err != nil {
return nil, fmt.Errorf("marshal presentation submission: %w", err)
}

presentation.CustomFields = nil
presentation.ID = "urn:uuid:" + presentation.ID //TODO: Resolve this properly in the vc-go

var vpToken string

switch vpFormat {
Expand All @@ -610,9 +597,51 @@ func createAuthorizedResponseOneCred( //nolint:funlen,gocyclo // Unable to decom
return nil, fmt.Errorf("sign vp token: %w", err)
}
case presexch.FormatLDPVP:
vpToken, err = createLdpVPToken(crypto, documentLoader, signingVM, requestObject, presentation)
if err != nil {
return nil, fmt.Errorf("create ldp vp token: %w", err)
var proofAdded bool

vpFormats := requestObject.ClientMetadata.VPFormats

if vpFormats != nil && vpFormats.LdpVP != nil {
for _, proofType := range vpFormats.LdpVP.ProofType {
if proofType == ecdsa2019.SuiteTypeNew || proofType == eddsa2022.SuiteType {
if opts == nil || opts.signer == nil {
return nil, errors.New("signer is required for ldp_vp data integrity proof")
}

err = addDataIntegrityProof(
fullVMID(did, signingVM.ID),
didResolver,
documentLoader,
opts.signer,
presentation,
proofType,
requestObject.Nonce,
requestObject.ClientID,
)
if err != nil {
return nil, fmt.Errorf("failed to add data integrity proof to vp: %w", err)
}

proofAdded = true
break
}
}
}

if !proofAdded {
vpToken, err = createLdpVPToken(crypto, documentLoader, signingVM, requestObject, presentation)
if err != nil {
return nil, fmt.Errorf("create ldp vp token: %w", err)
}
} else {
var vpBytes []byte

vpBytes, err = presentation.MarshalJSON()
if err != nil {
return nil, fmt.Errorf("marshal vp into vp token: %w", err)
}

vpToken = string(vpBytes)
}
default:
return nil, fmt.Errorf("unsupported presentation exchange format: %s", vpFormat)
Expand Down Expand Up @@ -709,6 +738,9 @@ func createAuthorizedResponseMultiCred( //nolint:funlen,gocyclo // Unable to dec
documentLoader,
signer,
presentation,
ecdsa2019.SuiteTypeNew,
requestObject.Nonce,
requestObject.ClientID,
)
if e != nil {
return nil, fmt.Errorf("failed to add data integrity proof to VP: %w", e)
Expand Down Expand Up @@ -800,23 +832,48 @@ func createAuthorizedResponseMultiCred( //nolint:funlen,gocyclo // Unable to dec

func addDataIntegrityProof(did string, didResolver api.DIDResolver, documentLoader ld.DocumentLoader,
signer wrapperapi.KMSCryptoSigner, presentation *verifiable.Presentation,
dataIntegritySuite, challenge, domain string,
) error {
proofContext := &verifiable.DataIntegrityProofContext{
SigningKeyID: did,
CryptoSuite: ecdsa2019.SuiteType,
var signerInitializer suite.SignerInitializer

switch dataIntegritySuite {
case ecdsa2019.SuiteTypeNew:
signerInitializer = ecdsa2019.NewSignerInitializer(
&ecdsa2019.SignerInitializerOptions{
LDDocumentLoader: documentLoader,
SignerGetter: ecdsa2019.WithKMSCryptoWrapper(signer),
},
)
case eddsa2022.SuiteType:
signerInitializer = eddsa2022.NewSignerInitializer(
&eddsa2022.SignerInitializerOptions{
LDDocumentLoader: documentLoader,
SignerGetter: eddsa2022.WithKMSCryptoWrapper(signer),
},
)
default:
return fmt.Errorf("unsupported data integrity suite: %s", dataIntegritySuite)
}

signerOpts := dataintegrity.Options{DIDResolver: &didResolverWrapper{didResolver: didResolver}}

dataIntegritySigner, err := dataintegrity.NewSigner(&signerOpts,
ecdsa2019.NewSignerInitializer(&ecdsa2019.SignerInitializerOptions{
LDDocumentLoader: documentLoader,
SignerGetter: ecdsa2019.WithKMSCryptoWrapper(signer),
}))
dataIntegritySigner, err := dataintegrity.NewSigner(
&dataintegrity.Options{
DIDResolver: &didResolverWrapper{
didResolver: didResolver,
},
},
signerInitializer)
if err != nil {
return err
}

proofContext := &verifiable.DataIntegrityProofContext{
SigningKeyID: did,
CryptoSuite: dataIntegritySuite,
ProofPurpose: "authentication",
Challenge: challenge,
Domain: domain,
}

err = presentation.AddDataIntegrityProof(proofContext, dataIntegritySigner)
if err != nil {
return err
Expand Down
20 changes: 13 additions & 7 deletions pkg/openid4vp/openid4vp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ func TestOpenID4VP_PresentCredential(t *testing.T) {
require.NoError(t, err)
})

t.Run("Success - with ldp_vp", func(t *testing.T) {
t.Run("Success - with ldp_vp, single cred", func(t *testing.T) {
mockHTTPClient := &mock.HTTPClientMock{
StatusCode: 200,
}
Expand Down Expand Up @@ -736,6 +736,14 @@ func TestOpenID4VP_PresentCredential(t *testing.T) {
})

t.Run("fail to add data integrity proof", func(t *testing.T) {
reqObject := &requestObject{
Nonce: "test123456",
State: "test34566",
PresentationDefinition: mockPresentationDefinition,
ResponseType: "vp_token id_token",
ClientMetadata: clientMetadata{VPFormats: &presexch.Format{LdpVP: &presexch.LdpType{}}},
}

t.Run("single credential", func(t *testing.T) {
localKMS, err := localkms.NewLocalKMS(localkms.Config{
Storage: localkms.NewMemKMSStore(),
Expand All @@ -747,15 +755,14 @@ func TestOpenID4VP_PresentCredential(t *testing.T) {

_, err = createAuthorizedResponse(
singleCred,
mockRequestObject,
reqObject,
CustomClaims{},
&didResolverMock{ResolveValue: mockDoc},
&cryptoMock{},
lddl,
&presentOpts{signer: signer},
)
require.Contains(t, err.Error(),
"failed to add data integrity proof to VP: data integrity proof generation error")
require.ErrorContains(t, err, "no supported linked data proof found")
})
t.Run("multiple credentials", func(t *testing.T) {
localKMS, err := localkms.NewLocalKMS(localkms.Config{
Expand All @@ -768,15 +775,14 @@ func TestOpenID4VP_PresentCredential(t *testing.T) {

_, err = createAuthorizedResponse(
credentials,
mockRequestObject,
reqObject,
CustomClaims{},
&didResolverMock{ResolveValue: mockDoc},
&cryptoMock{},
lddl,
&presentOpts{signer: signer},
)
require.Contains(t, err.Error(),
"failed to add data integrity proof to VP: data integrity proof generation error")
require.ErrorContains(t, err, "failed to add data integrity proof to VP")
})
})

Expand Down
4 changes: 2 additions & 2 deletions test/integration/attestation/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ require (
github.com/google/uuid v1.3.0
github.com/gorilla/mux v1.8.0
github.com/trustbloc/cmdutil-go v1.0.0
github.com/trustbloc/did-go v1.3.1-0.20241021165331-5721a3ff7396
github.com/trustbloc/did-go v1.3.1-0.20241122115441-c010226da580
github.com/trustbloc/kms-go v1.1.3-0.20241001141623-8d9510c6bb88
github.com/trustbloc/vc-go v1.2.1-0.20241119140508-59af0e10bdcc
github.com/trustbloc/vc-go v1.2.1-0.20241125142751-c33f1ff65382
github.com/trustbloc/wallet-sdk v0.0.0-00010101000000-000000000000
)

Expand Down
8 changes: 4 additions & 4 deletions test/integration/attestation/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -147,16 +147,16 @@ github.com/trustbloc/bbs-signature-go v1.0.2 h1:gepEsbLiZHv/vva9FKG5gF38mGtOIyGe
github.com/trustbloc/bbs-signature-go v1.0.2/go.mod h1:xYotcXHAbcE0TO+SteW0J6XI3geQaXq4wdnXR2k+XCU=
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.3.1-0.20241021165331-5721a3ff7396 h1:z9x5gLgDeUtcPUS8uQgHD/KQ/PL5VK2QV9oENYjsWbU=
github.com/trustbloc/did-go v1.3.1-0.20241021165331-5721a3ff7396/go.mod h1:L5m4TVlPwe7VN5FRrANPMg6EJN8wIlthC8CvossDZVI=
github.com/trustbloc/did-go v1.3.1-0.20241122115441-c010226da580 h1:ZCRVqTJfEZD33IvHcTYFI3M00UdYzn9mdAeCuqOvR/c=
github.com/trustbloc/did-go v1.3.1-0.20241122115441-c010226da580/go.mod h1:vD37dDNNfeVci/vJpicD1A4vhF9HcdQVB1kNGKu0rQ4=
github.com/trustbloc/kms-go v1.1.3-0.20241001141623-8d9510c6bb88 h1:k3KNf9tE4TBVdpEtImmZIbUWFZRoL/96GPR7FSqCr9k=
github.com/trustbloc/kms-go v1.1.3-0.20241001141623-8d9510c6bb88/go.mod h1:OKOtsLbE6W5s4mpjWkvk8XEqcmt9vTgVmDNkHELpWO0=
github.com/trustbloc/logutil-go v0.0.0-20221124174025-c46110e3ea42 h1:Mzg9wvEoUIWPoI/GHz3YlVbd4nKWeSPGc6+3l95eOZU=
github.com/trustbloc/logutil-go v0.0.0-20221124174025-c46110e3ea42/go.mod h1:HRaXVV1caceumbDBwLO3ByiCcAc18KwrNvZ7JQBvDIQ=
github.com/trustbloc/sidetree-go v1.1.0 h1:ZNCtYTut5MHVXJR26FvOPSo8uCGDR0YTNeA155s/QIo=
github.com/trustbloc/sidetree-go v1.1.0/go.mod h1:IQ1iX/gLe/YL+M6kzenc5Oi14uzaYqfL7KgMyNuSGvI=
github.com/trustbloc/vc-go v1.2.1-0.20241119140508-59af0e10bdcc h1:hw0PseUDqXeXTJV/yeHYBteiU3f8BMMGVE9GfozygZw=
github.com/trustbloc/vc-go v1.2.1-0.20241119140508-59af0e10bdcc/go.mod h1:3/GbrzF7phN+SxBTZaUBS6VxnoxpXGBUjjk3Eg4ImUk=
github.com/trustbloc/vc-go v1.2.1-0.20241125142751-c33f1ff65382 h1:+A9r9mKaofDng9dVPu4SV896o6as6Ux9M0PQkRW8EHQ=
github.com/trustbloc/vc-go v1.2.1-0.20241125142751-c33f1ff65382/go.mod h1:bBE54VGTHhLpFW4guWqxsnz2gmCDq1QkTeIRHc2olO4=
github.com/veraison/go-cose v1.1.1-0.20240126165338-2300d5c96dbd h1:QhdCHSW1/oosJbzBTEYLU6xcKxXbQzzqFnhCtW2UWbA=
github.com/veraison/go-cose v1.1.1-0.20240126165338-2300d5c96dbd/go.mod h1:D1wnviyjdmcF8AO5Y9kVGU6OGuvXUMGiE0Auo/fYRYo=
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
Expand Down
4 changes: 2 additions & 2 deletions test/integration/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ require (
github.com/piprate/json-gold v0.5.1-0.20230111113000-6ddbe6e6f19f
github.com/stretchr/testify v1.8.3
github.com/trustbloc/cmdutil-go v0.0.0-20221125151303-09d42adcc811
github.com/trustbloc/did-go v1.3.1-0.20241021165331-5721a3ff7396
github.com/trustbloc/did-go v1.3.1-0.20241122115441-c010226da580
github.com/trustbloc/logutil-go v1.0.0-rc1
github.com/trustbloc/vc-go v1.2.1-0.20241119140508-59af0e10bdcc
github.com/trustbloc/vc-go v1.2.1-0.20241125142751-c33f1ff65382
github.com/trustbloc/wallet-sdk v0.0.0-00010101000000-000000000000
github.com/trustbloc/wallet-sdk/cmd/wallet-sdk-gomobile v0.0.0-00010101000000-000000000000
go.uber.org/zap v1.23.0
Expand Down
8 changes: 4 additions & 4 deletions test/integration/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ github.com/trustbloc/bbs-signature-go v1.0.2 h1:gepEsbLiZHv/vva9FKG5gF38mGtOIyGe
github.com/trustbloc/bbs-signature-go v1.0.2/go.mod h1:xYotcXHAbcE0TO+SteW0J6XI3geQaXq4wdnXR2k+XCU=
github.com/trustbloc/cmdutil-go v0.0.0-20221125151303-09d42adcc811 h1:0e1d1w9o662+e7ZnJvRYJH8yblcBXngme8qbsjTvhQc=
github.com/trustbloc/cmdutil-go v0.0.0-20221125151303-09d42adcc811/go.mod h1:o/v7C1z6d/5UrjaC6GAUc1hk0XVuE3M4tpyvsMMUw5k=
github.com/trustbloc/did-go v1.3.1-0.20241021165331-5721a3ff7396 h1:z9x5gLgDeUtcPUS8uQgHD/KQ/PL5VK2QV9oENYjsWbU=
github.com/trustbloc/did-go v1.3.1-0.20241021165331-5721a3ff7396/go.mod h1:L5m4TVlPwe7VN5FRrANPMg6EJN8wIlthC8CvossDZVI=
github.com/trustbloc/did-go v1.3.1-0.20241122115441-c010226da580 h1:ZCRVqTJfEZD33IvHcTYFI3M00UdYzn9mdAeCuqOvR/c=
github.com/trustbloc/did-go v1.3.1-0.20241122115441-c010226da580/go.mod h1:vD37dDNNfeVci/vJpicD1A4vhF9HcdQVB1kNGKu0rQ4=
github.com/trustbloc/json-gold v0.5.1 h1:0HHf0ildMnN4rUr7Rgxwnm1CO116JoGMrgoWIFngM1U=
github.com/trustbloc/json-gold v0.5.1/go.mod h1:RVhE35veDX19r5gfUAR+IYHkAUuPwJO8Ie/qVeFaIzw=
github.com/trustbloc/kms-go v1.1.3-0.20241001141623-8d9510c6bb88 h1:k3KNf9tE4TBVdpEtImmZIbUWFZRoL/96GPR7FSqCr9k=
Expand All @@ -165,8 +165,8 @@ github.com/trustbloc/logutil-go v1.0.0-rc1 h1:rRJbvgQfrlUfyej+mY0nuQJymGqjRW4oZE
github.com/trustbloc/logutil-go v1.0.0-rc1/go.mod h1:JlxT0oZfNKgIlSNtgc001WEeDMxlnAvOM43gNm8DQVc=
github.com/trustbloc/sidetree-go v1.1.0 h1:ZNCtYTut5MHVXJR26FvOPSo8uCGDR0YTNeA155s/QIo=
github.com/trustbloc/sidetree-go v1.1.0/go.mod h1:IQ1iX/gLe/YL+M6kzenc5Oi14uzaYqfL7KgMyNuSGvI=
github.com/trustbloc/vc-go v1.2.1-0.20241119140508-59af0e10bdcc h1:hw0PseUDqXeXTJV/yeHYBteiU3f8BMMGVE9GfozygZw=
github.com/trustbloc/vc-go v1.2.1-0.20241119140508-59af0e10bdcc/go.mod h1:3/GbrzF7phN+SxBTZaUBS6VxnoxpXGBUjjk3Eg4ImUk=
github.com/trustbloc/vc-go v1.2.1-0.20241125142751-c33f1ff65382 h1:+A9r9mKaofDng9dVPu4SV896o6as6Ux9M0PQkRW8EHQ=
github.com/trustbloc/vc-go v1.2.1-0.20241125142751-c33f1ff65382/go.mod h1:bBE54VGTHhLpFW4guWqxsnz2gmCDq1QkTeIRHc2olO4=
github.com/veraison/go-cose v1.1.1-0.20240126165338-2300d5c96dbd h1:QhdCHSW1/oosJbzBTEYLU6xcKxXbQzzqFnhCtW2UWbA=
github.com/veraison/go-cose v1.1.1-0.20240126165338-2300d5c96dbd/go.mod h1:D1wnviyjdmcF8AO5Y9kVGU6OGuvXUMGiE0Auo/fYRYo=
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
Expand Down
1 change: 0 additions & 1 deletion test/integration/pkg/helpers/openid4ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ func NewCITestHelper(t *testing.T, didMethod string, keyType string) *CITestHelp

switch didMethod {
case "key":

didDoc, err = didkey.Create(jwk)
require.NoError(t, err)
case "jwk":
Expand Down
Loading

0 comments on commit aef44d3

Please sign in to comment.