From 5cb5ef793a5b61de7db154d4c83f6315041a6017 Mon Sep 17 00:00:00 2001 From: Rishabh Singh Date: Fri, 26 Dec 2025 13:45:03 +0530 Subject: [PATCH] fix: remove w3c cli tool mention --- README.md | 50 +++++++++++------------ package-lock.json | 101 +++++++++++++++++++++++++++------------------- 2 files changed, 84 insertions(+), 67 deletions(-) diff --git a/README.md b/README.md index 63fb75be..444fa880 100644 --- a/README.md +++ b/README.md @@ -1,46 +1,46 @@ # TrustVC W3C ## About + A wrapper lib build for TrustVC to work with W3C [Verifiable Credentials](https://www.w3.org/TR/vc-data-model/) (VCs) Data Model v1.1. Provides packages to facilitate the creation of [Decentralized Identifiers](https://www.w3.org/TR/did-core/) (DIDs) v1, specifically [`did:web`](https://w3c-ccg.github.io/did-method-web/), and [Verifiable Credentials Status](https://www.w3.org/TR/2023/WD-vc-status-list-20230427/) Status List v2021. ## Packages + For more details on each packages, refer to the individual README doc. -| Packages | npm | -| --- | --- | -| [@trustvc/w3c](https://github.com/TrustVC/w3c/tree/main/packages/w3c) | [npm](https://www.npmjs.com/package/@trustvc/w3c) | -| [@trustvc/w3c-context](https://github.com/TrustVC/w3c/tree/main/packages/w3c-context) | [npm](https://www.npmjs.com/package/@trustvc/w3c-context) | +| Packages | npm | +| --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- | +| [@trustvc/w3c](https://github.com/TrustVC/w3c/tree/main/packages/w3c) | [npm](https://www.npmjs.com/package/@trustvc/w3c) | +| [@trustvc/w3c-context](https://github.com/TrustVC/w3c/tree/main/packages/w3c-context) | [npm](https://www.npmjs.com/package/@trustvc/w3c-context) | | [@trustvc/w3c-credential-status](https://github.com/TrustVC/w3c/tree/main/packages/w3c-credential-status) | [npm](https://www.npmjs.com/package/@trustvc/w3c-credential-status) | -| [@trustvc/w3c-issuer](https://github.com/TrustVC/w3c/tree/main/packages/w3c-issuer) | [npm](https://www.npmjs.com/package/@trustvc/w3c-issuer) | -| [@trustvc/w3c-vc](https://github.com/TrustVC/w3c/tree/main/packages/w3c-vc) | [npm](https://www.npmjs.com/package/@trustvc/w3c-vc) | - -## Tools -| Apps | Link | -| --- | --- | -| [@trustvc/w3c-cli](https://github.com/TrustVC/w3c/tree/main/apps/w3c-cli) | [npm](https://www.npmjs.com/package/@trustvc/w3c-cli) | +| [@trustvc/w3c-issuer](https://github.com/TrustVC/w3c/tree/main/packages/w3c-issuer) | [npm](https://www.npmjs.com/package/@trustvc/w3c-issuer) | +| [@trustvc/w3c-vc](https://github.com/TrustVC/w3c/tree/main/packages/w3c-vc) | [npm](https://www.npmjs.com/package/@trustvc/w3c-vc) | -## Getting Started +## Getting Started 1. **Pre Requisite** - 1. Generate a signature specific key pair. [link](https://github.com/TrustVC/w3c/tree/main/packages/w3c-issuer#1-create-private-key) - 2. Generate and host a DID web identity. [link](https://github.com/TrustVC/w3c/tree/main/packages/w3c-issuer#2-generate-did-key-pair-and-did-document) + + 1. Generate a signature specific key pair. [link](https://github.com/TrustVC/w3c/tree/main/packages/w3c-issuer#1-create-private-key) + 2. Generate and host a DID web identity. [link](https://github.com/TrustVC/w3c/tree/main/packages/w3c-issuer#2-generate-did-key-pair-and-did-document) 2. **Sign and Verify VC** - 1. Sign - 1. Prepare and Sign the VC payload. [link](https://github.com/TrustVC/w3c/tree/main/packages/w3c-vc#1-signing-a-credential) - 2. Verify - 1. Verify the signed VC. [link](https://github.com/TrustVC/w3c/tree/main/packages/w3c-vc#2-verifying-a-credential) + + 1. Sign + 1. Prepare and Sign the VC payload. [link](https://github.com/TrustVC/w3c/tree/main/packages/w3c-vc#1-signing-a-credential) + 2. Verify + 1. Verify the signed VC. [link](https://github.com/TrustVC/w3c/tree/main/packages/w3c-vc#2-verifying-a-credential) 3. **Sign and Verify VC with Credential Status** - 1. Generate Credential Status - 1. Prepare and Sign the payload for Credential Status. [link](https://github.com/TrustVC/w3c/tree/main/packages/w3c-credential-status#w3c-credential-status) - 2. Sign - 1. Prepare and Sign the VC payload. [link](https://github.com/TrustVC/w3c/tree/main/packages/w3c-vc#1-signing-a-credential) - 3. Verify - 1. Verify the signed VC. [link](https://github.com/TrustVC/w3c/tree/main/packages/w3c-vc#2-verifying-a-credential) - 2. Verify the credentialStatus [link]() + 1. Generate Credential Status + 1. Prepare and Sign the payload for Credential Status. [link](https://github.com/TrustVC/w3c/tree/main/packages/w3c-credential-status#w3c-credential-status) + 2. Sign + 1. Prepare and Sign the VC payload. [link](https://github.com/TrustVC/w3c/tree/main/packages/w3c-vc#1-signing-a-credential) + 3. Verify + 1. Verify the signed VC. [link](https://github.com/TrustVC/w3c/tree/main/packages/w3c-vc#2-verifying-a-credential) + 2. Verify the credentialStatus [link]() ## Running the code + ``` npm install npm run build diff --git a/package-lock.json b/package-lock.json index f30c7a93..e6b09814 100644 --- a/package-lock.json +++ b/package-lock.json @@ -136,6 +136,52 @@ "node": ">=18.x" } }, + "apps/w3c-cli/node_modules/@trustvc/w3c-context": { + "version": "1.3.0-alpha.12", + "resolved": "https://registry.npmjs.org/@trustvc/w3c-context/-/w3c-context-1.3.0-alpha.12.tgz", + "integrity": "sha512-NO6j3EJtzfHos3vJPDsvAryGGK+g6+qK/Ur5MiEjPX4ox7C/JBGI9snEQBHj8fo5u+eig/aT/eOKYzeTAHAVDQ==", + "license": "Apache-2.0", + "dependencies": { + "did-resolver": "^4.1.0", + "jsonld-signatures": "^11.5.0" + }, + "engines": { + "node": ">=18.x" + } + }, + "apps/w3c-cli/node_modules/@trustvc/w3c-credential-status": { + "version": "1.3.0-alpha.13", + "resolved": "https://registry.npmjs.org/@trustvc/w3c-credential-status/-/w3c-credential-status-1.3.0-alpha.13.tgz", + "integrity": "sha512-El+ZmzvMk66GUh4TaLuQNYeJfMIv1T0jfb+ISry8nGfXYg6NCuGv7H4/+T/GbZrZD8t33Y7y+f0sKFQ1rN5l2A==", + "license": "Apache-2.0", + "dependencies": { + "@trustvc/w3c-context": "^1.3.0-alpha.12", + "@trustvc/w3c-issuer": "^1.3.0-alpha.10", + "base64url-universal": "^2.0.0", + "pako": "^2.1.0" + }, + "engines": { + "node": ">=18.x" + } + }, + "apps/w3c-cli/node_modules/@trustvc/w3c-issuer": { + "version": "1.3.0-alpha.10", + "resolved": "https://registry.npmjs.org/@trustvc/w3c-issuer/-/w3c-issuer-1.3.0-alpha.10.tgz", + "integrity": "sha512-ZkRyYf0h1hwgLBkXuC0dDgLx8DzWGTbHRP0nTWEu+I57T/51nr7GAcUgtxefe0pfaE83+18BrwbhBtb0xGjU4w==", + "license": "Apache-2.0", + "dependencies": { + "@digitalbazaar/bls12-381-multikey": "^2.1.0", + "@digitalbazaar/ecdsa-multikey": "^1.8.0", + "@mattrglobal/bls12381-key-pair": "^1.2.1", + "bip39": "^3.1.0", + "did-resolver": "^4.1.0", + "multiformats": "^9.9.0", + "web-did-resolver": "^2.0.27" + }, + "engines": { + "node": ">=18.x" + } + }, "apps/w3c-cli/node_modules/@trustvc/w3c-vc": { "version": "1.3.0-alpha.17", "resolved": "https://registry.npmjs.org/@trustvc/w3c-vc/-/w3c-vc-1.3.0-alpha.17.tgz", @@ -32962,13 +33008,13 @@ }, "packages/w3c": { "name": "@trustvc/w3c", - "version": "1.3.0-alpha.17", + "version": "2.0.0", "license": "Apache-2.0", "dependencies": { - "@trustvc/w3c-context": "^1.3.0-alpha.12", - "@trustvc/w3c-credential-status": "^1.3.0-alpha.13", - "@trustvc/w3c-issuer": "^1.3.0-alpha.10", - "@trustvc/w3c-vc": "^1.3.0-alpha.17" + "@trustvc/w3c-context": "^2.0.0", + "@trustvc/w3c-credential-status": "^2.0.0", + "@trustvc/w3c-issuer": "^2.0.0", + "@trustvc/w3c-vc": "^2.0.0" }, "engines": { "node": ">=18.x" @@ -32976,7 +33022,7 @@ }, "packages/w3c-context": { "name": "@trustvc/w3c-context", - "version": "1.3.0-alpha.12", + "version": "2.0.0", "license": "Apache-2.0", "dependencies": { "did-resolver": "^4.1.0", @@ -33068,11 +33114,11 @@ }, "packages/w3c-credential-status": { "name": "@trustvc/w3c-credential-status", - "version": "1.3.0-alpha.13", + "version": "2.0.0", "license": "Apache-2.0", "dependencies": { - "@trustvc/w3c-context": "^1.3.0-alpha.12", - "@trustvc/w3c-issuer": "^1.3.0-alpha.10", + "@trustvc/w3c-context": "^2.0.0", + "@trustvc/w3c-issuer": "^2.0.0", "base64url-universal": "^2.0.0", "pako": "^2.1.0" }, @@ -33082,7 +33128,7 @@ }, "packages/w3c-issuer": { "name": "@trustvc/w3c-issuer", - "version": "1.3.0-alpha.10", + "version": "2.0.0", "license": "Apache-2.0", "dependencies": { "@digitalbazaar/bls12-381-multikey": "^2.1.0", @@ -33099,7 +33145,7 @@ }, "packages/w3c-vc": { "name": "@trustvc/w3c-vc", - "version": "1.2.17", + "version": "2.0.0", "license": "Apache-2.0", "dependencies": { "@digitalbazaar/bbs-2023-cryptosuite": "^2.0.1", @@ -33108,8 +33154,8 @@ "@digitalbazaar/ecdsa-multikey": "^1.8.0", "@digitalbazaar/ecdsa-sd-2023-cryptosuite": "^3.4.1", "@mattrglobal/jsonld-signatures-bbs": "^1.2.0", - "@trustvc/w3c-credential-status": "^1.3.0-alpha.13", - "@trustvc/w3c-issuer": "^1.3.0-alpha.10", + "@trustvc/w3c-credential-status": "^2.0.0", + "@trustvc/w3c-issuer": "^2.0.0", "base64url-universal": "^2.0.0", "cbor": "^9.0.2", "did-resolver": "^4.1.0", @@ -33219,35 +33265,6 @@ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, - "packages/w3c/node_modules/@trustvc/w3c-vc": { - "version": "1.3.0-alpha.17", - "resolved": "https://registry.npmjs.org/@trustvc/w3c-vc/-/w3c-vc-1.3.0-alpha.17.tgz", - "integrity": "sha512-aQXiu8xQ3fIN262h1KCoWkWRH0AeeTzN/68NbDqv3DdbA/iAnQoerwoSd//7oFoithr0yySCbcViulqlMZ8kHg==", - "license": "Apache-2.0", - "dependencies": { - "@digitalbazaar/bbs-2023-cryptosuite": "^2.0.1", - "@digitalbazaar/bls12-381-multikey": "^2.1.0", - "@digitalbazaar/data-integrity": "^2.5.0", - "@digitalbazaar/ecdsa-multikey": "^1.8.0", - "@digitalbazaar/ecdsa-sd-2023-cryptosuite": "^3.4.1", - "@mattrglobal/jsonld-signatures-bbs": "^1.2.0", - "@trustvc/w3c-credential-status": "^1.3.0-alpha.13", - "@trustvc/w3c-issuer": "^1.3.0-alpha.10", - "base64url-universal": "^2.0.0", - "cbor": "^9.0.2", - "did-resolver": "^4.1.0", - "jsonld": "^6.0.0", - "jsonld-signatures": "^11.5.0", - "jsonld-signatures-v7": "npm:jsonld-signatures@7.0.0", - "uuid": "^10.0.0" - }, - "engines": { - "node": ">=18.x" - }, - "peerDependencies": { - "jsonld": "^6.0.0" - } - }, "packages/w3c/node_modules/jsonld-signatures": { "version": "11.5.0", "resolved": "https://registry.npmjs.org/jsonld-signatures/-/jsonld-signatures-11.5.0.tgz",