elesto-dao / elesto

The ElestoDAO node
Apache License 2.0
4 stars 1 forks source link

Credential proto message for PVC #255

Closed noandrea closed 1 year ago

noandrea commented 1 year ago

According to the design session on PVC, we are introducing a new credential type: PublicCredentialManifest that has the following example structure (please add the other meta fields like the expiration date):

{
  "@context": [
    "https://www.w3.org/2018/credentials/v1",
    "https://w3id.org/vc-revocation-list-2020/v1" // <- what is going to be the json-ld context URL ?
  ],
  "id": "https://issuer.id/rl/001",
  "type": [
    "VerifiableCredential",
    "PublicCredentialManifest"
  ],
  "issuer": "did:cosmos:elesto-canary-1:0f64577f-1185-4c4b-bb68-71fbc7f779a2",
  "issuanceDate": "2022-08-30T09:10:00Z",
  "proof": {
    "type": "secp256k1",
    "created": "2022-08-30T11:22:50+02:00",
    "proof_purpose": "assertionMethod",
    "verification_method": "did:cosmos:elesto-canary-1:issuer#elesto1ag694c2q45s566mux5z37asxxxm607s8z3p6rp",
    "signature": "rFMNlb1PA0tYFie+p9ryQZJd7Pp/c7jYzobOMz7RDKsagZCvSKIpVW51fqO3p2wEvbnH0R0GplZ5fMwhARM36Q=="
  },
  "credentialStatus": {  // <- double revocation ?
    "id": "https://business-register.id/list/001/1",
    "type": "RevocationList2020status",
    "revocationListIndex": 1,
    "revocationListCredential": "https://business-register.id/list/001"
  },
  "credentialSubject": {
    "id": "did:cosmos:elesto:4d8f7fc1-b134-47f0-a0b1-5d8f1ea35168",
    "credentialDataURL": "https://some.place/credential.json",
    "credentialDataChecksum": "4033636F2CF1ED42CBE057043F14EA8E82A3AF3AE7DDCD794A9A505F"  <- is it a checksum or an hash or something else ?
  }
}

where the credentialDataURL is a link where the actual credential can be accessed.

This means that the credential data URL is a link to another fully formed credential, only not directly hosted on-chain.

noandrea commented 1 year ago

scope changed