elesto-dao / elesto

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

Credential proto message for revocation list #253

Closed noandrea closed 1 year ago

noandrea commented 1 year ago

Following up the design session about PVC we need to modify the current implementation for PVC.

Create a proto message that describes a credential for revocation list with the following example structure:

{
  "@context": [
    "https://www.w3.org/2018/credentials/v1",
    "https://w3id.org/vc-revocation-list-2020/v1"
  ],
  "id": "https://issuer.id/rl/001",
  "type": [
    "VerifiableCredential",
    "RevocationList2020Credential"
  ],
  "issuer": "did:cosmos:elesto-canary-1:issuer",
  "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=="
  },
  "credentialSubject": {
    "encodedList": "eJzswDEBAAAAwiD7pzbGHhgAAAAAAAAAAAAAAAAAAACQewAAAP//QAAAAQ==",
    "id": "https://issuer.id/rl/001",
    "type": "RevocationList2020"
  }
}
noandrea commented 1 year ago

we are not going this route, we are going to use the current implementation