Skip to content

Commit

Permalink
chore: update to latest pex version
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <timo@animo.id>
  • Loading branch information
TimoGlastra committed Oct 29, 2024
1 parent 5898754 commit f8df660
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 279 deletions.
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
"@sd-jwt/sd-jwt-vc": "^0.7.0",
"@sd-jwt/types": "^0.7.0",
"@sd-jwt/utils": "^0.7.0",
"@sphereon/pex": "5.0.0-unstable.2",
"@sphereon/pex": "5.0.0-unstable.18",
"@sphereon/pex-models": "^2.3.1",
"@sphereon/ssi-types": "0.29.1-unstable.121",
"@sphereon/ssi-types": "^0.30.1",
"@stablelib/ed25519": "^1.0.2",
"@types/ws": "^8.5.4",
"abort-controller": "^3.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export class DifPresentationExchangeService {
verifiablePresentationResultsWithFormat.push({
verifiablePresentationResult: {
presentationSubmission: presentationSubmission,
verifiablePresentation: deviceResponseBase64Url,
verifiablePresentations: [deviceResponseBase64Url],
presentationSubmissionLocation: PresentationSubmissionLocation.EXTERNAL,
},
claimFormat: presentationToCreate.claimFormat,
Expand Down Expand Up @@ -282,10 +282,9 @@ export class DifPresentationExchangeService {
})

return {
verifiablePresentations: verifiablePresentationResultsWithFormat.map((resultWithFormat) =>
getVerifiablePresentationFromEncoded(
agentContext,
resultWithFormat.verifiablePresentationResult.verifiablePresentation
verifiablePresentations: verifiablePresentationResultsWithFormat.flatMap((resultWithFormat) =>
resultWithFormat.verifiablePresentationResult.verifiablePresentations.map((vp) =>
getVerifiablePresentationFromEncoded(agentContext, vp)
)
),
presentationSubmission,
Expand Down
2 changes: 1 addition & 1 deletion packages/openid4vc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@sphereon/oid4vci-client": "0.16.1-next.168",
"@sphereon/oid4vci-common": "0.16.1-next.168",
"@sphereon/oid4vci-issuer": "0.16.1-next.168",
"@sphereon/ssi-types": "0.29.1-unstable.121",
"@sphereon/ssi-types": "^0.30.1",
"class-transformer": "^0.5.1",
"rxjs": "^7.8.0"
},
Expand Down
Loading

0 comments on commit f8df660

Please sign in to comment.