Skip to content

Commit

Permalink
resolve: updated vcdi doc
Browse files Browse the repository at this point in the history
Signed-off-by: supersonicwisd1 <[email protected]>
  • Loading branch information
supersonicwisd1 committed Jul 19, 2024
1 parent ca0fd6d commit 7b89d6e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
3 changes: 3 additions & 0 deletions docs/demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ Faber:

```
(1) Issue Credential
(1a) Set Credential Type (indy)
(2) Send Proof Request
(3) Send Message
(4) Create New Invitation
Expand Down Expand Up @@ -225,6 +226,7 @@ Faber will setup support for revocation automatically, and you will see an extra

```
(1) Issue Credential
(1a) Set Credential Type (indy)
(2) Send Proof Request
(3) Send Message
(4) Create New Invitation
Expand Down Expand Up @@ -321,6 +323,7 @@ Faber:

```
(1) Issue Credential
(1a) Set Credential Type (indy)
(2) Send Proof Request
(3) Send Message
(4) Create New Invitation
Expand Down
33 changes: 19 additions & 14 deletions docs/features/W3cCredentials.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Ensure the credential data conforms to the VC-DI context.
"created": "2023-01-01T00:00:00Z",
"proofPurpose": "assertionMethod",
"verificationMethod": "did:key:z6MkqG......#z6MkqG......",
"jws": "eyJhbGciOiJFZERTQSJ9..."
"proofValue": "eyJhbGciOiJFZERTQSJ9..."
}
}
```
Expand Down Expand Up @@ -155,6 +155,11 @@ Use the `/issue-credential-2.0/send` endpoint to issue the credential.
{"name": "name", "value": "John Doe"}
]
},
"filter": {
"format": {
"cred_def_id": "FMB5MqzuhR..."
}
},
"trace": false
}
```
Expand Down Expand Up @@ -206,7 +211,7 @@ Ensure the request conforms to the verification context.
"created": "2023-01-01T00:00:00Z",
"proofPurpose": "assertionMethod",
"verificationMethod": "did:key:z6MkqG......#z6MkqG......",
"jws": "eyJhbGciOiJFZERTQSJ9..."
"proofValue": "eyJhbGciOiJFZERTQSJ9..."
}
}
]
Expand All @@ -215,7 +220,7 @@ Ensure the request conforms to the verification context.
</details>

2. **Send the Verification Request:**
Use the `/verifier-credential/2.0/verify` endpoint.
Use the `/present-proof/send-request` endpoint.

<details>
<summary>JSON example</summary>
Expand All @@ -241,7 +246,7 @@ Use the `/verifier-credential/2.0/verify` endpoint.
"created": "2023-01-01T00:00:00Z",
"proofPurpose": "assertionMethod",
"verificationMethod": "did:key:z6MkqG......#z6MkqG......",
"jws": "eyJhbGciOiJFZERTQSJ9..."
"proofValue": "eyJhbGciOiJFZERTQSJ9..."
}
}
]
Expand Down Expand Up @@ -279,7 +284,7 @@ The response should confirm the credential verification.
"created": "2023-01-01T00:00:00Z",
"proofPurpose": "assertionMethod",
"verificationMethod": "did:key:z6MkqG......#z6MkqG......",
"jws": "eyJhbGciOiJFZERTQSJ9..."
"proofValue": "eyJhbGciOiJFZERTQSJ9..."
}
}
],
Expand All @@ -288,7 +293,7 @@ The response should confirm the credential verification.
"created": "2023-01-01T00:00:00Z",
"proofPurpose": "authentication",
"verificationMethod": "did:key:z6MkqG......#z6MkqG......",
"jws": "eyJhbGciOiJFZERTQSJ9..."
"proofValue": "eyJhbGciOiJFZERTQSJ9..."
}
}
}
Expand Down Expand Up @@ -338,7 +343,7 @@ To request proof, follow these steps:
</details>

2. **Send the Proof Request:**
Use the `/present-proof-2.0/request-presentation` endpoint.
Use the `/present-proof-2.0/send-request` endpoint.

<details>
<summary>JSON example</summary>
Expand Down Expand Up @@ -426,7 +431,7 @@ To present proof, follow these steps:
"created": "2023-01-01T00:00:00Z",
"proofPurpose": "assertionMethod",
"verificationMethod": "did:key:z6MkqG......#z6MkqG......",
"jws": "eyJhbGciOiJFZERTQSJ9..."
"proofValue": "eyJhbGciOiJFZERTQSJ9..."
}
}
]
Expand All @@ -435,7 +440,7 @@ To present proof, follow these steps:
</details>

2. **Send the Presentation:**
Use the `/present-proof-2.0/present-presentation` endpoint.
Use the `/present-proof-2.0/send-request` endpoint.

<details>
<summary>JSON example</summary>
Expand Down Expand Up @@ -466,7 +471,7 @@ To present proof, follow these steps:
"created": "2023-01-01T00:00:00Z",
"proofPurpose": "assertionMethod",
"verificationMethod": "did:key:z6MkqG......#z6MkqG......",
"jws": "eyJhbGciOiJFZERTQSJ9..."
"proofValue": "eyJhbGciOiJFZERTQSJ9..."
}
}
]
Expand Down Expand Up @@ -526,7 +531,7 @@ To verify presented proof, follow these steps:
"created": "2023-01-01T00:00:00Z",
"proofPurpose": "assertionMethod",
"verificationMethod": "did:key:z6MkqG......#z6MkqG......",
"jws": "eyJhbGciOiJFZERTQSJ9..."
"proofValue": "eyJhbGciOiJFZERTQSJ9..."
}
}
]
Expand All @@ -535,7 +540,7 @@ To verify presented proof, follow these steps:
</details>

2. **Send the Verification Request:**
Use the `/verifier-proof-2.0/verify` endpoint.
Use the `/present-proof-2.0/send-request` endpoint.

<details>
<summary>JSON example</summary>
Expand Down Expand Up @@ -566,7 +571,7 @@ To verify presented proof, follow these steps:
"created": "2023-01-01T00:00:00Z",
"proofPurpose": "assertionMethod",
"verificationMethod": "did:key:z6MkqG......#z6MkqG......",
"jws": "eyJhbGciOiJFZERTQSJ9..."
"proofValue": "eyJhbGciOiJFZERTQSJ9..."
}
}
]
Expand Down Expand Up @@ -604,7 +609,7 @@ To verify presented proof, follow these steps:
"created": "2023-01-01T00:00:00Z",
"proofPurpose": "assertionMethod",
"verificationMethod": "did:key:z6MkqG......#z6MkqG......",
"jws": "eyJhbGciOiJFZERTQSJ9..."
"proofValue": "eyJhbGciOiJFZERTQSJ9..."
}
}
]
Expand Down

0 comments on commit 7b89d6e

Please sign in to comment.