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

feat(sdk): openid4vp PresentCredential uses multi-presentation format #306

Merged
merged 1 commit into from
Mar 8, 2023

Conversation

Moopli
Copy link
Contributor

@Moopli Moopli commented Mar 4, 2023

  • PresentCredential now takes Credentials as parameters instead of
    requiring a Query operation to create a Presentation
  • When multiple Credentials are provided, a Presentation is created
    for each Credential, and serialized to compact JWS. vp_token is
    set to a JSON array of these presentation JWS strings.
  • For the purposes of JSONPath references in presentation exchange,
    the JSONPath root is this JSON array, where each presentation JWS
    is replaced by said presentation's JSON representation.

@cla-bot cla-bot bot added the cla-signed label Mar 4, 2023
@codecov-commenter
Copy link

Codecov Report

Patch coverage: 89.39% and project coverage change: -0.27 ⚠️

Comparison is base (247cda1) 90.56% compared to head (7267f96) 90.29%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #306      +/-   ##
==========================================
- Coverage   90.56%   90.29%   -0.27%     
==========================================
  Files          54       54              
  Lines        2278     2359      +81     
==========================================
+ Hits         2063     2130      +67     
- Misses        148      156       +8     
- Partials       67       73       +6     
Impacted Files Coverage Δ
pkg/openid4vp/openid4vp.go 87.85% <87.61%> (-2.25%) ⬇️
cmd/wallet-sdk-gomobile/openid4vp/openid4vp.go 91.66% <100.00%> (+0.36%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Moopli Moopli changed the title wip: Multi-presentation PresentCredential feat(sdk): openid4vp PresentCredential uses multi-presentation format Mar 7, 2023
@Moopli Moopli force-pushed the multi-pres branch 3 times, most recently from bdffb3f to f729f2b Compare March 8, 2023 00:19
- PresentCredential now takes Credentials as parameters instead of
  requiring a Query operation to create a Presentation
- When multiple Credentials are provided, a Presentation is created
  for each Credential, and serialized to compact JWS. vp_token is
  set to a JSON array of these presentation JWS strings.
- For the purposes of JSONPath references in presentation exchange,
  the JSONPath root is this JSON array, where each presentation JWS
  is replaced by said presentation's JSON representation.

Signed-off-by: Filip Burlacu <filip.burlacu@securekey.com>
@Moopli Moopli marked this pull request as ready for review March 8, 2023 06:37
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 8, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 6 Code Smells

No Coverage information No Coverage information
3.0% 3.0% Duplication

@rolsonquadras rolsonquadras merged commit 9e36112 into trustbloc:main Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants