-
Notifications
You must be signed in to change notification settings - Fork 162
docs: Presentation Exchange - adds samples #2437
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2437 +/- ##
=======================================
Coverage 89.57% 89.58%
=======================================
Files 246 246
Lines 17674 17688 +14
=======================================
+ Hits 15832 15845 +13
- Misses 1083 1084 +1
Partials 759 759
Continue to review full report at Codecov.
|
Signed-off-by: Andrii Soluk <isoluchok@gmail.com>
"@context": [ | ||
"https://www.w3.org/2018/credentials/v1" | ||
], | ||
"age": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a different claim than the one originally issued (by the Issuer). This new claim is not covered by cryptographic proof from the Issuer; it is unverifiable.
How will this work in practice?
1. This example demonstrates `predicate` and `limit_disclosure` usage. | ||
The `presentation definition` below requires field `age` to be greater or equal to 18. | ||
Also, we have `limit_disclosure=true` which requires that output data is limited to the entries specified in the `fields` property. | ||
The `predicate` means that the result should be expressed as a boolean value. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
predicate
means that the result should be expressed as a boolean value.
This is a misunderstanding of the spec. The predicate is just criteria that the credential submitted in the presentation must satisfy. It is not a transformation function.
Adds Presentation Exchange samples.
Signed-off-by: Andrii Soluk isoluchok@gmail.com