Skip to content

Commit

Permalink
fix: Improve documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco Javier Ribó Labrador <[email protected]>
  • Loading branch information
elribonazo committed May 18, 2024
1 parent bcb91f1 commit b868f79
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/examples/SDKVerification.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
## Code Reference
* toDID is the peer did of holder A, which has the credential that we aim to verify
* claims contain an object with all the claims we aim to validate; setting claims is internally used to help Holder A choose the proper credential and correctly verify the fields when Holder B receives the presentation.
Example
```javascript
const claims: Claims = {
Expand All @@ -63,5 +64,17 @@ agent.initiatePresentationRequest(
);
```
* The Edge Agent Verifier (SDK) will then send the Presentation Request to the desired holder
* The Edge Agent Holder will be asked to choose what credential wants to be used for that Presentation Request
* The Edge Agent Verifier (SDK) will then receive and validate the Credential as follows

Example
```javascript
//Presentation is the message sent by the holder back to the verifier
const message = SDK.Presentation.fromMessage(message);
agent.handlePresentation(message)
```




0 comments on commit b868f79

Please sign in to comment.