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

new url context #190

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/render-specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
npm run render

- name: Override gitignore
run: git add -f docs/index.html
run: git add -f docs/index.html docs/anoncreds-w3c-context

- name: Deploy 🚀
uses: JamesIves/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion data/W3CCredential.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://raw.githubusercontent.com/hyperledger/anoncreds-spec/main/data/anoncreds-w3c-context.json"
"https://hyperledger.github.io/anoncreds-spec/anoncreds-w3c-context"
],
"type": [
"VerifiableCredential",
Expand Down
2 changes: 1 addition & 1 deletion data/W3CCredentialWithRevocation.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://raw.githubusercontent.com/hyperledger/anoncreds-spec/main/data/anoncreds-w3c-context.json"
"https://hyperledger.github.io/anoncreds-spec/anoncreds-w3c-context"
],
"type": [
"VerifiableCredential",
Expand Down
4 changes: 2 additions & 2 deletions data/W3CPresentation.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://raw.githubusercontent.com/hyperledger/anoncreds-spec/main/data/anoncreds-w3c-context.json"
"https://hyperledger.github.io/anoncreds-spec/anoncreds-w3c-context"
],
"type": [
"VerifiablePresentation",
Expand All @@ -11,7 +11,7 @@
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://raw.githubusercontent.com/hyperledger/anoncreds-spec/main/data/anoncreds-w3c-context.json"
"https://hyperledger.github.io/anoncreds-spec/anoncreds-w3c-context"
],
"type": [
"VerifiableCredential",
Expand Down
4 changes: 2 additions & 2 deletions data/W3CPresentationWithRevocation.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://raw.githubusercontent.com/hyperledger/anoncreds-spec/main/data/anoncreds-w3c-context.json"
"https://hyperledger.github.io/anoncreds-spec/anoncreds-w3c-context"
],
"type": [
"VerifiablePresentation",
Expand All @@ -11,7 +11,7 @@
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://raw.githubusercontent.com/hyperledger/anoncreds-spec/main/data/anoncreds-w3c-context.json"
"https://hyperledger.github.io/anoncreds-spec/anoncreds-w3c-context"
],
"type": [
"VerifiableCredential",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"mocha": "^10.1.0"
},
"scripts": {
"render": "node -e \"require('spec-up')({ nowatch: true })\"",
"render": "node -e \"require('spec-up')({ nowatch: true })\" && cp data/anoncreds-w3c-context.json docs/anoncreds-w3c-context",
"edit": "node -e \"require('spec-up')()\"",
"test": "mocha 'test/**/*.js'"
}
Expand Down
10 changes: 5 additions & 5 deletions spec/w3c_representation.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ The **context** definition used for AnonCreds W3C credentials representation can
discovered [here](../data/anoncreds-w3c-context.json).

In the case of W3C AnonCreds credentials, the `@context` attribute includes an extra
entry `https://raw.githubusercontent.com/hyperledger/anoncreds-spec/main/data/anoncreds-w3c-context.json`
entry `https://hyperledger.github.io/anoncreds-spec/anoncreds-w3c-context`
which is required for the resolution of custom structure definitions and looks the following:

```json
{
...
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://raw.githubusercontent.com/hyperledger/anoncreds-spec/main/data/anoncreds-w3c-context.json"
"https://hyperledger.github.io/anoncreds-spec/anoncreds-w3c-context"
],
...
}
Expand Down Expand Up @@ -309,15 +309,15 @@ The **context** definition used for AnonCreds W3C presentations representation c
discovered [here](../data/anoncreds-w3c-context.json).

In the case of W3C AnonCreds presentations, the `@context` attribute includes an extra
entry `https://raw.githubusercontent.com/hyperledger/anoncreds-spec/main/data/anoncreds-w3c-context.json`
entry `https://hyperledger.github.io/anoncreds-spec/anoncreds-w3c-context`
which is required for the resolution of custom structure definitions and looks the following:

```json
{
...
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://raw.githubusercontent.com/hyperledger/anoncreds-spec/main/data/anoncreds-w3c-context.json"
"https://hyperledger.github.io/anoncreds-spec/anoncreds-w3c-context"
],
...
}
Expand Down Expand Up @@ -492,7 +492,7 @@ It is [[ref: verifier]] and [[ref: holder]] responsibility to negotiate which pr
### Context

The AnonCreds context, located
at https://raw.githubusercontent.com/hyperledger/anoncreds-spec/main/data/anoncreds-w3c-context.json can be used to
at https://hyperledger.github.io/anoncreds-spec/anoncreds-w3c-context can be used to
implement a local cached copy.
For convenience, the AnonCreds context is also provided in this section.

Expand Down