{"_id":"@eengineer1/veramo-credential-sd-jwt","_rev":"3-8499a97f98652d267e821e05397d6217","name":"@eengineer1/veramo-credential-sd-jwt","dist-tags":{"beta":"1.0.1-develop.1","latest":"1.0.1"},"versions":{"1.0.0-develop.1":{"name":"@eengineer1/veramo-credential-sd-jwt","version":"1.0.0-develop.1","type":"module","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/*/index"]}},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"veramo":{"pluginInterfaces":{"ICredentialSDJwt":"./src/types/ICredentialSDJwt.ts"}},"scripts":{"build":"tsc","generate-plugin-schema":"veramo dev generate-plugin-schema","format":"prettier --write 'src/**/*.{js,ts,cjs,mjs}' 'tests/**/*.{js,ts,cjs,mjs}'","start":"veramo server","build:watch":"tsc -b --watch","test:ci":"npm test --coverage=true","test":"cross-env NODE_OPTIONS='--experimental-vm-modules' jest --colors --passWithNoTests --maxWorkers 1 --maxConcurrency 1","test:watch":"npm test --watch --verbose","clean":"rm -rf tmp && rm database.sqlite && rm -rf dist && rm tsconfig.tsbuildinfo"},"license":"MIT","devDependencies":{"@cheqd/did-provider-cheqd":"^3.6.13","@jest/globals":"^29.4.3","@semantic-release/changelog":"^6.0.3","@semantic-release/commit-analyzer":"^11.1.0","@semantic-release/git":"^10.0.1","@semantic-release/github":"^9.2.6","@semantic-release/npm":"^11.0.2","@semantic-release/release-notes-generator":"^12.1.0","@types/jest":"^29.5.10","@types/node":"^20.10.5","@veramo/cli":"^5.1.2","@veramo/did-provider-jwk":"^5.5.3","@veramo/did-resolver":"^5.5.3","@veramo/kms-local":"^5.5.3","conventional-changelog-conventionalcommits":"^7.0.2","cross-env":"^7.0.3","dotenv":"^16.3.1","jest":"29.7.0","prettier":"^3.1.1","semantic-release":"^22.0.12","ts-jest":"29.1.1","typescript":"5.3.2"},"dependencies":{"@eengineer1/sd-jwt-ts-node":"^1.0.1","@veramo/core":"^5.5.3","@veramo/core-types":"^5.5.3","@veramo/credential-w3c":"^5.5.3","@veramo/did-manager":"^5.5.3","@veramo/key-manager":"^5.5.3","@veramo/utils":"^5.5.3","did-jwt":"^7.4.7","did-jwt-vc":"^3.2.15","did-resolver":"^4.1.0","json-canonicalize":"^1.0.6","uint8arrays":"^5.0.1"},"engines":{"node":">=18.17.0"},"_id":"@eengineer1/veramo-credential-sd-jwt@1.0.0-develop.1","gitHead":"d510a2a73dce290624ac5707c80e693f8ff0ff19","description":"This template repository provides a bare-bones structure for writing an agent plugin for Veramo and/or for providing your own implementations for key management and storage, or for DID storage.","_nodeVersion":"18.19.0","_npmVersion":"10.2.5","dist":{"integrity":"sha512-nfd2voaN55vYRDWT/QBe7MsmDsiuspBAJ+7QFSPE5JjIUPUmXQfzStsjYd+Ol1TKXGj8+nP0uzCxqPTCtjhPCg==","shasum":"fa0d084f8e6b7668ee83b9f613a6985e06a2747a","tarball":"https://registry.npmjs.org/@eengineer1/veramo-credential-sd-jwt/-/veramo-credential-sd-jwt-1.0.0-develop.1.tgz","fileCount":5,"unpackedSize":75294,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBy47bktYCdyevtaddPRgtejz0wBHnHT6TB98S4Z7WTgIgFcqXWWVyXOy+JL+Df3jezZQWnevxveZ9UI8+6+TUowk="}]},"_npmUser":{"name":"eengineer1","email":"tasosderiziotis@gmail.com"},"directories":{},"maintainers":[{"name":"eengineer1","email":"tasosderiziotis@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/veramo-credential-sd-jwt_1.0.0-develop.1_1703951209367_0.7166725555718756"},"_hasShrinkwrap":false},"1.0.0":{"name":"@eengineer1/veramo-credential-sd-jwt","version":"1.0.0","type":"module","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/*/index"]}},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"veramo":{"pluginInterfaces":{"ICredentialSDJwt":"./src/types/ICredentialSDJwt.ts"}},"scripts":{"build":"tsc","generate-plugin-schema":"veramo dev generate-plugin-schema","format":"prettier --write 'src/**/*.{js,ts,cjs,mjs}' 'tests/**/*.{js,ts,cjs,mjs}'","start":"veramo server","build:watch":"tsc -b --watch","test:ci":"npm test --coverage=true","test":"cross-env NODE_OPTIONS='--experimental-vm-modules' jest --colors --passWithNoTests --maxWorkers 1 --maxConcurrency 1","test:watch":"npm test --watch --verbose","clean":"rm -rf tmp && rm database.sqlite && rm -rf dist && rm tsconfig.tsbuildinfo"},"license":"MIT","devDependencies":{"@cheqd/did-provider-cheqd":"^3.6.13","@jest/globals":"^29.4.3","@semantic-release/changelog":"^6.0.3","@semantic-release/commit-analyzer":"^11.1.0","@semantic-release/git":"^10.0.1","@semantic-release/github":"^9.2.6","@semantic-release/npm":"^11.0.2","@semantic-release/release-notes-generator":"^12.1.0","@types/jest":"^29.5.10","@types/node":"^20.10.5","@veramo/cli":"^5.1.2","@veramo/did-provider-jwk":"^5.5.3","@veramo/did-resolver":"^5.5.3","@veramo/kms-local":"^5.5.3","conventional-changelog-conventionalcommits":"^7.0.2","cross-env":"^7.0.3","dotenv":"^16.3.1","jest":"29.7.0","prettier":"^3.1.1","semantic-release":"^22.0.12","ts-jest":"29.1.1","typescript":"5.3.2"},"dependencies":{"@eengineer1/sd-jwt-ts-node":"^1.0.1","@veramo/core":"^5.5.3","@veramo/core-types":"^5.5.3","@veramo/credential-w3c":"^5.5.3","@veramo/did-manager":"^5.5.3","@veramo/key-manager":"^5.5.3","@veramo/utils":"^5.5.3","did-jwt":"^7.4.7","did-jwt-vc":"^3.2.15","did-resolver":"^4.1.0","json-canonicalize":"^1.0.6","uint8arrays":"^5.0.1"},"engines":{"node":">=18.17.0"},"_id":"@eengineer1/veramo-credential-sd-jwt@1.0.0","gitHead":"b8cc52253eff03a53b289b31b217bc918d3b6bc6","description":"This template repository provides a bare-bones structure for writing an agent plugin for Veramo and/or for providing your own implementations for key management and storage, or for DID storage.","_nodeVersion":"18.19.0","_npmVersion":"10.2.5","dist":{"integrity":"sha512-MXfn0jExZ9xgjB+zLFIGSdMusR5eToA3mOQreeO8drJnAWQedop+ainCC2+bwViHzmrFAefaRXbnYOM7khdCBA==","shasum":"bb56f8024b03b9536e0ad0a5c83d67c89fa33412","tarball":"https://registry.npmjs.org/@eengineer1/veramo-credential-sd-jwt/-/veramo-credential-sd-jwt-1.0.0.tgz","fileCount":5,"unpackedSize":75284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC9qD0iYcmFt4A8yrvPu/ZI0dNcKs7caFOKgG7nhtvA9AiApCSZdbOtJmEFHjkTMPidpUxFE6fq0Z74Y7HlKUmxmuQ=="}]},"_npmUser":{"name":"eengineer1","email":"tasosderiziotis@gmail.com"},"directories":{},"maintainers":[{"name":"eengineer1","email":"tasosderiziotis@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/veramo-credential-sd-jwt_1.0.0_1703976096415_0.8412791411638212"},"_hasShrinkwrap":false},"1.0.1-develop.1":{"name":"@eengineer1/veramo-credential-sd-jwt","version":"1.0.1-develop.1","type":"module","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/*/index"]}},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"veramo":{"pluginInterfaces":{"ICredentialSDJwt":"./src/types/ICredentialSDJwt.ts"}},"scripts":{"build":"tsc","generate-plugin-schema":"veramo dev generate-plugin-schema","format":"prettier --write 'src/**/*.{js,ts,cjs,mjs}' 'tests/**/*.{js,ts,cjs,mjs}'","start":"veramo server","build:watch":"tsc -b --watch","test:ci":"npm test --coverage=true","test":"cross-env NODE_OPTIONS='--experimental-vm-modules' jest --colors --passWithNoTests --maxWorkers 1 --maxConcurrency 1","test:watch":"npm test --watch --verbose","clean":"rm -rf tmp && rm database.sqlite && rm -rf dist && rm tsconfig.tsbuildinfo"},"license":"MIT","devDependencies":{"@cheqd/did-provider-cheqd":"^3.6.13","@jest/globals":"^29.4.3","@semantic-release/changelog":"^6.0.3","@semantic-release/commit-analyzer":"^11.1.0","@semantic-release/git":"^10.0.1","@semantic-release/github":"^9.2.6","@semantic-release/npm":"^11.0.2","@semantic-release/release-notes-generator":"^12.1.0","@types/jest":"^29.5.10","@types/node":"^20.10.5","@veramo/cli":"^5.1.2","@veramo/did-provider-jwk":"^5.5.3","@veramo/did-resolver":"^5.5.3","@veramo/kms-local":"^5.5.3","conventional-changelog-conventionalcommits":"^7.0.2","cross-env":"^7.0.3","dotenv":"^16.3.1","jest":"29.7.0","prettier":"^3.1.1","semantic-release":"^22.0.12","ts-jest":"29.1.1","typescript":"5.3.2"},"dependencies":{"@eengineer1/sd-jwt-ts-node":"^1.0.1","@veramo/core":"^5.5.3","@veramo/core-types":"^5.5.3","@veramo/credential-w3c":"^5.5.3","@veramo/did-manager":"^5.5.3","@veramo/key-manager":"^5.5.3","@veramo/utils":"^5.5.3","did-jwt":"^7.4.7","did-jwt-vc":"^3.2.15","did-resolver":"^4.1.0","json-canonicalize":"^1.0.6","uint8arrays":"^5.0.1"},"engines":{"node":">=18.17.0"},"_id":"@eengineer1/veramo-credential-sd-jwt@1.0.1-develop.1","readme":"\n# Veramo SD-JWT Plugin\n\nThis repository contains a plugin for the [Veramo](https://github.com/decentralized-identity/veramo) verifiable data framework that leverages the following specification compliant [SD-JWT (Selective Disclosure JSON Web Token) library](https://github.com/Eengineer1/sd-jwt-ts).\n\n[![Apache 2.0 License](https://img.shields.io/badge/License-Apache_2.0-green.svg)](https://choosealicense.com/licenses/mit/)\n\n> ⚠️ This plugin is strictly an ESM module and requires Node.js >= 18.17.0.\n\n## Overview\n\nThe Veramo SD-JWT plugin allows for privacy-preserving data sharing by enabling selective disclosure of data fields in a JWT credential payload. This is achieved by using the SD-JWT aforementioned library, which allows each field in the JWT payload to be individually disclosed.\n\n## Installation\n\nTo install the Veramo SD-JWT plugin, use the following command:\n\n```bash\nnpm install @eengineer1/veramo-credential-sd-jwt\n```\n\n## Usage\n\nAfter installation, you can use the plugin in your Veramo agent as follows:\n\n```typescript\nimport { createAgent, ... } from '@veramo/core'\nimport { CredentialSDJwt } from '@eengineer1/veramo-credential-sd-jwt'\n\nconst agent = new Agent({\n    plugins: [\n        ..., // other required plugins\n        new CredentialSDJwt()\n    ]\n})\n```\n\nWith the agent instantiated, you can now use the plugin to issue and / or verify SD-JWT credentials and presentations as follows:\n\n```typescript\nimport { type CredentialPayload } from '@veramo/core-types'\nimport { type JSONObject } from '@eengineer1/sd-jwt-ts-node'\n\n// original claimset\nconst claimset = {\n    id: '7aea4ed3-9b02-4f64-8f05-aeb59899c8a2',\n    '@context': ['https://www.w3.org/2018/credentials/v1'],\n    type: ['VerifiableCredential'],\n    issuer: 'did:cheqd:testnet:09b20561-7339-40ea-a377-05ea35a0e82a',\n    credentialSubject: {\n        id: 'did:jwk:eyJhbGciOiJFUzI1NksiLCJjcnYiOiJzZWNwMjU2azEiLCJrdHkiOiJFQyIsInVzZSI6InNpZyIsIngiOiJmMmF2aHdTcTlNVGg4c0x0ZnBDZU1udnllSzdzVjIyRUtNZ2IzS1hOWXJZIiwieSI6ImFUUEY0OFZ5d0tKOFpJeEYzU0NweEtkNUhPeUt2cUZPWUcxQWc2Sm1qeVEifQ',\n        nestedSimple: 'information',\n        nestedObject: {\n            nested: 'information',\n        },\n        nestedArray: ['information1', 'information2'],\n    },\n}\n\n// non-selectively disclosable claimset\nconst undisclosedClaimset = {\n    '@context': claimset['@context'],\n    type: claimset.type,\n    issuanceDate: 'anything-truthy',\n    credentialSubject: {\n        id: claimset.credentialSubject.id,\n        nestedSimple: claimset.credentialSubject.nestedSimple,\n    },\n} satisfies JSONObject\n\n// create + sign SD-JWT credential\nconst { sdJwt, normalisedCredential } = await agent.createVerifiableCredentialSDJwt({\n    credential: claimset,\n    undisclosedFields: undisclosedClaimset,\n    removeOriginalFields: true,\n    returnNormalisedCredential: true,\n})\n\n// verify SD-JWT credential\nconst { verified, message } = await agent.verifyVerifiableCredentialSDJwt({\n    credential: sdJwt.jwt,\n})\n\n// create + sign SD-JWT presentation\nconst { sdJwtPresentation, normalisedPresentation } = await agent.createVerifiablePresentationSDJwt({\n    presentation: {\n    verifiableCredential: [sdJwt.jwt],\n        holder: holder.didDocument.id,\n    },\n    removeOriginalFields: true,\n    returnNormalisedPresentation: true,\n})\n\n// verify SD-JWT presentation\nconst { verified, message } = await agent.verifyVerifiablePresentationSDJwt({\n    presentation: sdJwtPresentation,\n})\n```\n\n## License\n\nThis project is licensed under the Apache 2.0 License. See the [LICENSE](./LICENSE) file for details.\n","readmeFilename":"README.md","gitHead":"89a2d09ed6c225b09a8b8b40c12e20b600a1b267","description":"This repository contains a plugin for the [Veramo](https://github.com/decentralized-identity/veramo) verifiable data framework that leverages the following specification compliant [SD-JWT (Selective Disclosure JSON Web Token) library](https://github.com/E","_nodeVersion":"18.19.0","_npmVersion":"10.2.5","dist":{"integrity":"sha512-WumnBc7Nt+hq/WJ2Yt4r/XDLjWehGecpDW5xf1WDTAFvK5d5vWXcSfZbEhK1PLn+8cx6WfChnJiAuDpJuhlHmw==","shasum":"e37c0acf04e34c41a03649b588c3c1a49071346a","tarball":"https://registry.npmjs.org/@eengineer1/veramo-credential-sd-jwt/-/veramo-credential-sd-jwt-1.0.1-develop.1.tgz","fileCount":6,"unpackedSize":89434,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCx+gN817FYTw8UjhpLPQtGsQVLH7w+jt8Jtni5AGdbpgIhAPVOYBaqW1HqJEeOaT7s5IZ73JjkLm1TmyuBv4hI75sI"}]},"_npmUser":{"name":"eengineer1","email":"tasosderiziotis@gmail.com"},"directories":{},"maintainers":[{"name":"eengineer1","email":"tasosderiziotis@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/veramo-credential-sd-jwt_1.0.1-develop.1_1704037894587_0.8648065529433417"},"_hasShrinkwrap":false},"1.0.1":{"name":"@eengineer1/veramo-credential-sd-jwt","version":"1.0.1","type":"module","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/*/index"]}},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"veramo":{"pluginInterfaces":{"ICredentialSDJwt":"./src/types/ICredentialSDJwt.ts"}},"scripts":{"build":"tsc","generate-plugin-schema":"veramo dev generate-plugin-schema","format":"prettier --write 'src/**/*.{js,ts,cjs,mjs}' 'tests/**/*.{js,ts,cjs,mjs}'","start":"veramo server","build:watch":"tsc -b --watch","test:ci":"npm test --coverage=true","test":"cross-env NODE_OPTIONS='--experimental-vm-modules' jest --colors --passWithNoTests --maxWorkers 1 --maxConcurrency 1","test:watch":"npm test --watch --verbose","clean":"rm -rf tmp && rm database.sqlite && rm -rf dist && rm tsconfig.tsbuildinfo"},"license":"MIT","devDependencies":{"@cheqd/did-provider-cheqd":"^3.6.13","@jest/globals":"^29.4.3","@semantic-release/changelog":"^6.0.3","@semantic-release/commit-analyzer":"^11.1.0","@semantic-release/git":"^10.0.1","@semantic-release/github":"^9.2.6","@semantic-release/npm":"^11.0.2","@semantic-release/release-notes-generator":"^12.1.0","@types/jest":"^29.5.10","@types/node":"^20.10.5","@veramo/cli":"^5.1.2","@veramo/did-provider-jwk":"^5.5.3","@veramo/did-resolver":"^5.5.3","@veramo/kms-local":"^5.5.3","conventional-changelog-conventionalcommits":"^7.0.2","cross-env":"^7.0.3","dotenv":"^16.3.1","jest":"29.7.0","prettier":"^3.1.1","semantic-release":"^22.0.12","ts-jest":"29.1.1","typescript":"5.3.2"},"dependencies":{"@eengineer1/sd-jwt-ts-node":"^1.0.1","@veramo/core":"^5.5.3","@veramo/core-types":"^5.5.3","@veramo/credential-w3c":"^5.5.3","@veramo/did-manager":"^5.5.3","@veramo/key-manager":"^5.5.3","@veramo/utils":"^5.5.3","did-jwt":"^7.4.7","did-jwt-vc":"^3.2.15","did-resolver":"^4.1.0","json-canonicalize":"^1.0.6","uint8arrays":"^5.0.1"},"engines":{"node":">=18.17.0"},"_id":"@eengineer1/veramo-credential-sd-jwt@1.0.1","gitHead":"76aa0b54f6d697460a5b43356e03dfaa0e489755","description":"This repository contains a plugin for the [Veramo](https://github.com/decentralized-identity/veramo) verifiable data framework that leverages the following specification compliant [SD-JWT (Selective Disclosure JSON Web Token) library](https://github.com/E","_nodeVersion":"18.19.0","_npmVersion":"10.2.5","dist":{"integrity":"sha512-m5T62cM7m+YXD4lcGXfTD8NcRr558jGYLf/Hjv3VYsVRcs8cz6rPYtxwiT2CCg1/j1l0qE3fnQ/PNev2AwoGsQ==","shasum":"4ba5b0e7574de6559bef06d8d1e2093e927b2ed9","tarball":"https://registry.npmjs.org/@eengineer1/veramo-credential-sd-jwt/-/veramo-credential-sd-jwt-1.0.1.tgz","fileCount":6,"unpackedSize":89424,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDssgALSXsQeohk4SHVmn/IQc8MFUyieVN3OB6cxzQI0gIhAJYTAf1JDC6cTli80jcPOX+qxhYcbU3XiKk7I3jU1oQ2"}]},"_npmUser":{"name":"eengineer1","email":"tasosderiziotis@gmail.com"},"directories":{},"maintainers":[{"name":"eengineer1","email":"tasosderiziotis@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/veramo-credential-sd-jwt_1.0.1_1704038310804_0.531180812544096"},"_hasShrinkwrap":false}},"time":{"created":"2023-12-30T15:46:49.226Z","1.0.0-develop.1":"2023-12-30T15:46:49.580Z","modified":"2023-12-31T15:58:31.160Z","1.0.0":"2023-12-30T22:41:36.600Z","1.0.1-develop.1":"2023-12-31T15:51:34.749Z","1.0.1":"2023-12-31T15:58:30.979Z"},"maintainers":[{"name":"eengineer1","email":"tasosderiziotis@gmail.com"}],"description":"This repository contains a plugin for the [Veramo](https://github.com/decentralized-identity/veramo) verifiable data framework that leverages the following specification compliant [SD-JWT (Selective Disclosure JSON Web Token) library](https://github.com/E","license":"MIT","readme":"\n# Veramo SD-JWT Plugin\n\nThis repository contains a plugin for the [Veramo](https://github.com/decentralized-identity/veramo) verifiable data framework that leverages the following specification compliant [SD-JWT (Selective Disclosure JSON Web Token) library](https://github.com/Eengineer1/sd-jwt-ts).\n\n[![Apache 2.0 License](https://img.shields.io/badge/License-Apache_2.0-green.svg)](https://choosealicense.com/licenses/mit/)\n\n> ⚠️ This plugin is strictly an ESM module and requires Node.js >= 18.17.0.\n\n## Overview\n\nThe Veramo SD-JWT plugin allows for privacy-preserving data sharing by enabling selective disclosure of data fields in a JWT credential payload. This is achieved by using the SD-JWT aforementioned library, which allows each field in the JWT payload to be individually disclosed.\n\n## Installation\n\nTo install the Veramo SD-JWT plugin, use the following command:\n\n```bash\nnpm install @eengineer1/veramo-credential-sd-jwt\n```\n\n## Usage\n\nAfter installation, you can use the plugin in your Veramo agent as follows:\n\n```typescript\nimport { createAgent, ... } from '@veramo/core'\nimport { CredentialSDJwt } from '@eengineer1/veramo-credential-sd-jwt'\n\nconst agent = new Agent({\n    plugins: [\n        ..., // other required plugins\n        new CredentialSDJwt()\n    ]\n})\n```\n\nWith the agent instantiated, you can now use the plugin to issue and / or verify SD-JWT credentials and presentations as follows:\n\n```typescript\nimport { type CredentialPayload } from '@veramo/core-types'\nimport { type JSONObject } from '@eengineer1/sd-jwt-ts-node'\n\n// original claimset\nconst claimset = {\n    id: '7aea4ed3-9b02-4f64-8f05-aeb59899c8a2',\n    '@context': ['https://www.w3.org/2018/credentials/v1'],\n    type: ['VerifiableCredential'],\n    issuer: 'did:cheqd:testnet:09b20561-7339-40ea-a377-05ea35a0e82a',\n    credentialSubject: {\n        id: 'did:jwk:eyJhbGciOiJFUzI1NksiLCJjcnYiOiJzZWNwMjU2azEiLCJrdHkiOiJFQyIsInVzZSI6InNpZyIsIngiOiJmMmF2aHdTcTlNVGg4c0x0ZnBDZU1udnllSzdzVjIyRUtNZ2IzS1hOWXJZIiwieSI6ImFUUEY0OFZ5d0tKOFpJeEYzU0NweEtkNUhPeUt2cUZPWUcxQWc2Sm1qeVEifQ',\n        nestedSimple: 'information',\n        nestedObject: {\n            nested: 'information',\n        },\n        nestedArray: ['information1', 'information2'],\n    },\n}\n\n// non-selectively disclosable claimset\nconst undisclosedClaimset = {\n    '@context': claimset['@context'],\n    type: claimset.type,\n    issuanceDate: 'anything-truthy',\n    credentialSubject: {\n        id: claimset.credentialSubject.id,\n        nestedSimple: claimset.credentialSubject.nestedSimple,\n    },\n} satisfies JSONObject\n\n// create + sign SD-JWT credential\nconst { sdJwt, normalisedCredential } = await agent.createVerifiableCredentialSDJwt({\n    credential: claimset,\n    undisclosedFields: undisclosedClaimset,\n    removeOriginalFields: true,\n    returnNormalisedCredential: true,\n})\n\n// verify SD-JWT credential\nconst { verified, message } = await agent.verifyVerifiableCredentialSDJwt({\n    credential: sdJwt.jwt,\n})\n\n// create + sign SD-JWT presentation\nconst { sdJwtPresentation, normalisedPresentation } = await agent.createVerifiablePresentationSDJwt({\n    presentation: {\n    verifiableCredential: [sdJwt.jwt],\n        holder: holder.didDocument.id,\n    },\n    removeOriginalFields: true,\n    returnNormalisedPresentation: true,\n})\n\n// verify SD-JWT presentation\nconst { verified, message } = await agent.verifyVerifiablePresentationSDJwt({\n    presentation: sdJwtPresentation,\n})\n```\n\n## License\n\nThis project is licensed under the Apache 2.0 License. See the [LICENSE](./LICENSE) file for details.\n","readmeFilename":"README.md"}