alexfigtree / CoreID

For MIT Human Dynamics group blockchain-backed individual identity open source prototype
MIT License
4 stars 5 forks source link

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

Open alwillis opened 7 years ago

alwillis commented 7 years ago

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": "bsmith@example.com",
  "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.