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

Add CHAPI Example to Spec #14

Merged
merged 5 commits into from
May 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Presentation Exchange

### [Latest Editor's Draft](https://identity.foundation/presentation-exchange/)

## Getting Started

```
git clone git@github.com:decentralized-identity/presentation-exchange.git
cd presentation-exchange
npm i
npm run edit
npx serve .
```

Visit http://localhost:5000/
43 changes: 43 additions & 0 deletions spec/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Presentation Exchange

**Contributors:**
~ [Gabe Cohen](https://www.linkedin.com/in/cohengabe/) (Workday)
~ [Orie Steele](https://www.linkedin.com/in/OR13b/) (Transmute)

**Participate:**
~ [GitHub repo](https://github.com/decentralized-identity/presentation-exchange)
Expand Down Expand Up @@ -421,6 +422,48 @@ _Input Descriptors_ are objects that describe what type of input data/credential
:::


## Transport Integrations

### CHAPI

The [credential handler api (CHAPI)](https://w3c-ccg.github.io/credential-handler-api/) allows a web page to request data from a browser, and for a wallet to fulfill that request.

This is commonly used for requesting and presenting verifiable credentials.

See also the [vp-request-spec](https://digitalbazaar.github.io/vp-request-spec/).

Here is an example of a request:

::: Example Presentation Definition using CHAPI
```json
{
"query": [
{
"type": "PresentationDefinitionQuery",
"presentationDefinitionQuery": [
// Presentation Definition goes here.
]
}
]
}
```
:::

Here is an example of a response:

::: Example Presentation Submission using CHAPI
```json
{
"type": "web",
"dataType": "VerifiablePresentation",
"data": {
// Presentation Submission goes here
}
}
```
:::


## Appendix

### Goals & Requirements
Expand Down