{"id":19122855,"url":"https://github.com/digitalbazaar/vc-bitstring-status-list","last_synced_at":"2025-05-05T18:24:39.334Z","repository":{"id":221755124,"uuid":"751102181","full_name":"digitalbazaar/vc-bitstring-status-list","owner":"digitalbazaar","description":"Verifiable Credentials Bitstring Status List JavaScript implementation","archived":false,"fork":false,"pushed_at":"2025-03-07T23:57:17.000Z","size":97,"stargazers_count":2,"open_issues_count":4,"forks_count":3,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-04-19T10:28:41.040Z","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,"zenodo":null}},"created_at":"2024-01-31T23:38:22.000Z","updated_at":"2025-03-07T23:57:20.000Z","dependencies_parsed_at":"2024-02-19T18:36:13.501Z","dependency_job_id":"69e5ea9e-9334-4cad-b6b9-cfed86d0bc27","html_url":"https://github.com/digitalbazaar/vc-bitstring-status-list","commit_stats":null,"previous_names":["digitalbazaar/vc-bitstring-status-list"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Fvc-bitstring-status-list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Fvc-bitstring-status-list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Fvc-bitstring-status-list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Fvc-bitstring-status-list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitalbazaar","download_url":"https://codeload.github.com/digitalbazaar/vc-bitstring-status-list/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251800994,"owners_count":21645966,"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:17.922Z","updated_at":"2025-05-05T18:24:39.317Z","avatar_url":"https://github.com/digitalbazaar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @digitalbazaar/vc-bitstring-status-list\n\n[Verifiable Credential Bitstring Status List](https://github.com/w3c/vc-bitstring-status-list/)\n\n### Creating a BitstringStatusListCredential\n\n```js\nimport {\n  BitstringStatusList,\n  createCredential,\n  VC_BSL_VC_V1_CONTEXT,\n  VC_BSL_VC_V2_CONTEXT\n} from '@digitalbazaar/vc-bitstring-status-list';\nimport {documentLoader} from './path-to/document-loader.js';\nimport {Ed25519Signature2020} from '@digitalbazaar/ed25519-signature-2020';\nimport {Ed25519VerificationKey2020} from\n  '@digitalbazaar/ed25519-verification-key-2020';\nimport {issue} from '@digitalbazaar/vc';\n\n// Issuer Setup\nconst key = new Ed25519VerificationKey2020({\n  id: 'did:key:z6Mkrjy3khhKz1jPLEwhqYAWNn3xMURog2DdCqjWAmD6anRE#z6Mkrjy3khhKz1jPLEwhqYAWNn3xMURog2DdCqjWAmD6anRE',\n  controller: 'did:key:z6Mkrjy3khhKz1jPLEwhqYAWNn3xMURog2DdCqjWAmD6anRE',\n  publicKeyMultibase: 'z6Mkrjy3khhKz1jPLEwhqYAWNn3xMURog2DdCqjWAmD6anRE',\n  privateKeyMultibase: 'zrv5NrLP4CvUQPGqpoFFCq6ihnEJWF7DpA1r13cxqzeJcSWjbgpXabWbCuHPUUSYhCknd3qWxEfT2ax7cR8TcYr4Dkt'\n})\nconst suite = new Ed25519Signature2020({key});\n\n// Status List Details\nconst id = 'https://example.com/credentials/status/3';\nconst list = new BitstringStatusList({length: 100000});\nconst statusPurpose = 'revocation';\n\n// Create BitstringStatusListCredential\nconst credential = await createCredential({\n  id,\n  list,\n  statusPurpose,\n  context: VC_BSL_VC_V2_CONTEXT // OR VC_BSL_VC_V1_CONTEXT for VCDM v1\n});\n\n// Create BitstringStatusListCredential Verifiable Credential\nconst statusVC = await issue({credential, suite, documentLoader})\n```\n\n### Create a Verifiable Credential which uses a BitstringStatusList\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://www.w3.org/ns/credentials/status/v1'\n  ],\n  id: 'https://example.com/credentials/3732',\n  type: ['VerifiableCredential', 'UniversityDegreeCredential'],\n  issuer: suite.key.controller,\n  issuanceDate: '2021-03-10T04:24:12.164Z',\n  credentialStatus: {\n    id: 'https://example.com/credentials/status/3#94567',\n    type: 'BitstringStatusListEntry',\n    statusListIndex: '94567',\n    statusListCredential: 'https://example.com/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 issue({\n  credential: {...credential},\n  suite,\n  documentLoader\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalbazaar%2Fvc-bitstring-status-list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitalbazaar%2Fvc-bitstring-status-list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalbazaar%2Fvc-bitstring-status-list/lists"}