{"id":19123008,"url":"https://github.com/digitalbazaar/vc-revocation-list","last_synced_at":"2025-10-19T18:57:16.980Z","repository":{"id":37795560,"uuid":"257725078","full_name":"digitalbazaar/vc-revocation-list","owner":"digitalbazaar","description":"Verifiable Credentials Revocation List 2020 JavaScript implementation","archived":false,"fork":false,"pushed_at":"2024-08-03T00:52:39.000Z","size":92,"stargazers_count":10,"open_issues_count":6,"forks_count":8,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-03-28T17:21:26.196Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/digitalbazaar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-21T21:56:17.000Z","updated_at":"2024-08-03T00:52:43.000Z","dependencies_parsed_at":"2024-06-19T13:27:41.099Z","dependency_job_id":"626bb0f9-7b02-4d98-bb49-8c68db79d1ce","html_url":"https://github.com/digitalbazaar/vc-revocation-list","commit_stats":{"total_commits":103,"total_committers":10,"mean_commits":10.3,"dds":0.6213592233009708,"last_synced_commit":"c5a2f485bff151712d291da6fdcab5191b5a8f53"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Fvc-revocation-list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Fvc-revocation-list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Fvc-revocation-list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Fvc-revocation-list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitalbazaar","download_url":"https://codeload.github.com/digitalbazaar/vc-revocation-list/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248525141,"owners_count":21118620,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T05:23:55.826Z","updated_at":"2025-10-11T14:46:09.160Z","avatar_url":"https://github.com/digitalbazaar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @digitalbazaar/vc-revocation-list\n\n[Verifiable Credential Revocation List 2020](https://github.com/w3c-ccg/vc-status-rl-2020)\n\n### Creating a RevocationList2020Credential\n\n```js\nimport rl from '@digitalbazaar/vc-revocation-list';\nimport jsigs from 'jsonld-signatures';\nimport {Ed25519KeyPair} from 'crypto-ld';\nimport * as vc from '@digitalbazaar/vc';\nconst documentLoader = require('./path-to/document-loader.js');\n\nconst key = new Ed25519KeyPair({\n  id: 'did:key:z6MknUVLM84Eo5mQswCqP7f6oNER84rmVKkCvypob8UtBC8K#z6MknUVLM84Eo5mQswCqP7f6oNER84rmVKkCvypob8UtBC8K',\n  controller: 'did:key:z6MknUVLM84Eo5mQswCqP7f6oNER84rmVKkCvypob8UtBC8K',\n  type: 'Ed25519VerificationKey2018',\n  privateKeyBase58: 'CoZphRAfAVPqx9f54MRUBtmjD4uY6KPxQQKsE3frUbZ269tBD4AdTQAVbXHHgpewh4BunoXK8dotcUJ6JXhZPsh',\n  publicKeyBase58: '92EHksooTYGwmSN8hYhFxGgRJVav5SVrExuskrWsFyLw'\n});\nconst suite = new Ed25519Signature2018({\n  key,\n  date: '2019-12-11T03:50:55Z',\n});\nconst id = 'https://example.com/credentials/status/3';\nconst list = await rl.createList({ length: 100000 });\nconst encodedList = await list.encode();\nconst rlCredential = {\n  '@context': [\n    'https://www.w3.org/2018/credentials/v1',\n    'https://w3id.org/vc-revocation-list-2020/v1'\n  ],\n  id,\n  issuer: 'did:key:z6MknUVLM84Eo5mQswCqP7f6oNER84rmVKkCvypob8UtBC8K',\n  issuanceDate: '2020-03-10T04:24:12.164Z',\n  type: ['VerifiableCredential', 'RevocationList2020Credential'],\n  credentialSubject: {\n    id: `${id}#list`,\n    type: 'RevocationList2020',\n    encodedList,\n  },\n};\nlet verifiableCredential = await vc.issue({\n  credential: { ...rlCredential },\n  suite,\n  documentLoader,\n});\n```\n\n### Created a Credential which uses a RevocationList2020\n\n```js\n// see imports above\nconst credential = {\n  '@context': [\n    'https://www.w3.org/2018/credentials/v1',\n    'https://www.w3.org/2018/credentials/examples/v1',\n    'https://w3id.org/vc-revocation-list-2020/v1',\n  ],\n  id: 'https://example.com/credentials/3732',\n  type: ['VerifiableCredential', 'UniversityDegreeCredential'],\n  issuer: 'did:web:did.actor:alice',\n  issuanceDate: '2020-03-10T04:24:12.164Z',\n  credentialStatus: {\n    id: 'https://example.com/credentials/status/3#94567',\n    type: 'RevocationList2020Status',\n    revocationListIndex: '94567',\n    revocationListCredential:\n      'https://did.actor/alice/credentials/status/3',\n  },\n  credentialSubject: {\n    id: 'did:web:did.actor:bob',\n    degree: {\n      type: 'BachelorDegree',\n      name: 'Bachelor of Science and Arts',\n    },\n  },\n};\nlet verifiableCredential = await vc.issue({\n  credential: { ...credential },\n  suite,\n  documentLoader,\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalbazaar%2Fvc-revocation-list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitalbazaar%2Fvc-revocation-list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalbazaar%2Fvc-revocation-list/lists"}