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

Adopt Verifiable Claims Data Model and Representations 1.0 specs/lingo #3

Open
alwillis opened this issue May 21, 2017 · 0 comments
Open

Comments

@alwillis
Copy link
Collaborator

I put a link in the wiki to Verifiable Claims Data Model and Representations 1.0 which defines the problem space:

This specification describes a data model for a digital identity profile and a collection of digital entity credentials that assert verifiable claims about that identity profile. It also describes how to express that data model in JSON, JSON-LD, and WebIDL.

Using this specification, here’s what Bob’s identity profile would look like:

{
  "id": "did:5278a9c357f0b70a04109a6dc0d270a6",
  "type": ["Identiy", "Person"],
  "name": "Bob Smith",
  "email": "[email protected]",
  "birthDate": "1976-05-05",
  "telephone": "6175551212"
}

Bob can create an unverified claim about himself; this is how it would be expressed:

{
  "id": "http://example.gov/credentials/4546",
  "type": ["Credential", "ProofOfAgeCredential"],
  "issuer": "https://dmv.example.gov",
  "claim": {
    "id": "did:5278a9c357f0b70a04109a6dc0d270a6",
    "ageOver": 21
  } 
}

Here’s how to express a verified claim about Bob; note it contains a digital signature:

{
  "@context": "https://w3id.org/security/v1",
  "id": "http://example.gov/credentials/4546",
  "type": ["Credential", "ProofOfAgeCredential"],
  "issuer": "https://dmv.example.gov",
  "issued" "2017-01-01",
  "claim": {
    "id": "did:5278a9c357f0b70a04109a6dc0d270a6",
    "ageOver": 21
  },
  "revocation": {
    "id": "http://example.gov/revocations/738",
    "type": "SimpleRevocationList2017"
  },
  "signature": {
    "type": "LinkedDataSignature2015",
    "created": "2016-06-18T21:19:10Z",
    "creator": "https://example.com/jdoe/keys/1",
    "domain": "json-ld.org",
    "nonce": "598c63d6",
    "signatureValue": "BavEll0/I1zpYw8XNi1bgVg/sCneO4Jugez8RwDg/+MCRVpjOboDoe4SxxKjkCOvKiCHGDvc4krqi6Z1n0UfqzxGfmatCuFibcC1wpsPRdW+gGsutPTLzvueMWmFhwYmfIFpbBu95t501+rSLHIEuujM/+PXr9Cky6Ed+W3JT24="
  }
}

Of course, Bob could sign his his own claim; in this example, the Department of Motor Vehicles, verifies Bob's claim via its digital signature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant