Skip to content

Commit

Permalink
feat(sdk): data integrity proof (WIP)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrii Holovko <[email protected]>
  • Loading branch information
aholovko committed Nov 27, 2024
1 parent 6578c55 commit 8fdad83
Show file tree
Hide file tree
Showing 13 changed files with 124 additions and 61 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
64 changes: 41 additions & 23 deletions pkg/openid4vp/openid4vp.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,17 @@ import (
wrapperapi "github.com/trustbloc/kms-go/wrapper/api"
"github.com/trustbloc/vc-go/dataintegrity"
"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 @@ -564,32 +565,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,10 +599,29 @@ 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 opts == nil || opts.signer == nil {
return nil, errors.New("signer is required for ldp_vp format")
}

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

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 @@ -803,16 +811,26 @@ func addDataIntegrityProof(did string, didResolver api.DIDResolver, documentLoad
) error {
proofContext := &verifiable.DataIntegrityProofContext{
SigningKeyID: did,
CryptoSuite: ecdsa2019.SuiteType,
CryptoSuite: ecdsa2019.SuiteTypeNew,
ProofPurpose: "authentication",
}

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

dataIntegritySigner, err := dataintegrity.NewSigner(&signerOpts,
ecdsa2019.NewSignerInitializer(&ecdsa2019.SignerInitializerOptions{
LDDocumentLoader: documentLoader,
SignerGetter: ecdsa2019.WithKMSCryptoWrapper(signer),
}))
eddsa2022.NewSignerInitializer(
&eddsa2022.SignerInitializerOptions{
LDDocumentLoader: documentLoader,
SignerGetter: eddsa2022.WithKMSCryptoWrapper(signer),
},
),
ecdsa2019.NewSignerInitializer(
&ecdsa2019.SignerInitializerOptions{
LDDocumentLoader: documentLoader,
SignerGetter: ecdsa2019.WithKMSCryptoWrapper(signer),
},
),
)
if err != nil {
return err
}
Expand Down
58 changes: 52 additions & 6 deletions pkg/openid4vp/openid4vp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
"github.com/trustbloc/kms-go/doc/jose/jwk"
"github.com/trustbloc/kms-go/doc/util/jwkkid"
"github.com/trustbloc/kms-go/spi/kms"
wrapperapi "github.com/trustbloc/kms-go/wrapper/api"
"github.com/trustbloc/vc-go/jwt"
"github.com/trustbloc/vc-go/presexch"
"github.com/trustbloc/vc-go/verifiable"
Expand Down Expand Up @@ -484,10 +485,19 @@ func TestOpenID4VP_PresentCredential(t *testing.T) {
})

t.Run("Success - with ldp_vp", func(t *testing.T) {
t.Skip()
mockHTTPClient := &mock.HTTPClientMock{
StatusCode: 200,
}

localKMS, err := localkms.NewLocalKMS(localkms.Config{
Storage: localkms.NewMemKMSStore(),
})
require.NoError(t, err)

signer, err := localKMS.AriesSuite.KMSCryptoSigner()
require.NoError(t, err)

crypto := &cryptoMock{SignVal: []byte(testSignature)}

interaction, err := NewInteraction(
Expand All @@ -497,6 +507,7 @@ func TestOpenID4VP_PresentCredential(t *testing.T) {
crypto,
lddl,
WithHTTPClient(mockHTTPClient),
WithDIProofs(signer),
)
require.NoError(t, err)

Expand Down Expand Up @@ -736,6 +747,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 +766,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, "failed to add data integrity proof to VP")
})
t.Run("multiple credentials", func(t *testing.T) {
localKMS, err := localkms.NewLocalKMS(localkms.Config{
Expand All @@ -768,15 +786,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 Expand Up @@ -1327,6 +1344,11 @@ func mockResolution(t *testing.T, mockDID string, useJWK bool) *did.DocResolutio
VerificationMethod: *mockVM,
},
},
Authentication: []did.Verification{
{
VerificationMethod: *mockVM,
},
},
},
}

Expand Down Expand Up @@ -1362,3 +1384,27 @@ func mockResolutionWithServices(t *testing.T, mockDID string) *did.DocResolution

return docRes
}

type mockFixedKeySigner struct {
SignVal []byte
SignErr error
}

func (m *mockFixedKeySigner) Sign(msg []byte) ([]byte, error) {
return m.SignVal, m.SignErr
}

type mockKMSCryptoSigner struct {
SignVal []byte
SignErr error
FixedKeySignerVal wrapperapi.FixedKeySigner
FixedKeySignerErr error
}

func (m *mockKMSCryptoSigner) Sign(msg []byte, pub *jwk.JWK) ([]byte, error) {
return m.SignVal, m.SignErr
}

func (m *mockKMSCryptoSigner) FixedKeySigner(pub *jwk.JWK) (wrapperapi.FixedKeySigner, error) {
return m.FixedKeySignerVal, m.FixedKeySignerErr
}
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
3 changes: 1 addition & 2 deletions test/integration/pkg/helpers/openid4ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func NewCITestHelper(t *testing.T, didMethod string, keyType string) *CITestHelp
require.NoError(t, err)

if keyType == "" {
keyType = localkms.KeyTypeED25519
keyType = localkms.KeyTypeP256
}

jwk, err := kms.Create(keyType)
Expand All @@ -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 8fdad83

Please sign in to comment.