{"_id":"@digitalbazaar/eddsa-rdfc-2022-cryptosuite","_rev":"6-6f46c73297706719e8de86a36a7461f9","name":"@digitalbazaar/eddsa-rdfc-2022-cryptosuite","dist-tags":{"latest":"1.3.0"},"versions":{"0.0.0":{"name":"@digitalbazaar/eddsa-rdfc-2022-cryptosuite","version":"0.0.0","license":"BSD-3-Clause","_id":"@digitalbazaar/eddsa-rdfc-2022-cryptosuite@0.0.0","maintainers":[{"name":"dlongley","email":"dlongley@digitalbazaar.com"},{"name":"msporny","email":"msporny@digitalbazaar.com"},{"name":"davidlehn","email":"dil@lehn.org"},{"name":"mattcollier","email":"mcollier@digitalbazaar.com"},{"name":"gannan","email":"gannan@digitalbazaar.com"}],"homepage":"https://github.com/digitalbazaar/eddsa-rdfc-2022-cryptosuite","bugs":{"url":"https://github.com/digitalbazaar/eddsa-rdfc-2022-cryptosuite/issues"},"c8":{"reporter":["lcov","text-summary","text"]},"dist":{"shasum":"b8d4b8283d2a74eda317d724766e0370148d27a4","tarball":"https://registry.npmjs.org/@digitalbazaar/eddsa-rdfc-2022-cryptosuite/-/eddsa-rdfc-2022-cryptosuite-0.0.0.tgz","fileCount":8,"integrity":"sha512-9nWQCAuP/gpcTXrWAQiN6BHNQKu/03eHGu/pHRz2knsi5oiO23GSFEn4BLA2UBrjUE8QtfIhpA8k5/F+zlMgAQ==","signatures":[{"sig":"MEYCIQCwSfm3LrRgELTfYPxINf2tXO3aFqWW3gcKyvUoTA8RCgIhAP+H3Hxsji7aZaKG1qThpff46gfMVsxtWOSIB8clb3ka","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10095},"type":"module","engines":{"node":">=18"},"exports":"./lib/index.js","gitHead":"a95bec254ea98fc657cd93afdc75c45430ad149d","scripts":{"lint":"eslint .","test":"npm run test-node","coverage":"cross-env NODE_ENV=test c8 npm run test-node","test-node":"cross-env NODE_ENV=test mocha --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require test/test-mocha.js test/*.spec.js","test-karma":"karma start karma.conf.cjs","coverage-ci":"cross-env NODE_ENV=test c8 --reporter=lcovonly --reporter=text-summary --reporter=text npm run test-node","coverage-report":"c8 report"},"_npmUser":{"name":"davidlehn","email":"dil@lehn.org"},"repository":{"url":"git+https://github.com/digitalbazaar/eddsa-rdfc-2022-cryptosuite.git","type":"git"},"_npmVersion":"10.2.0","description":"An EdDSA-RDFC-2022 Data Integrity cryptosuite for use with jsonld-signatures.","directories":{},"_nodeVersion":"20.8.0","dependencies":{"jsonld":"^8.1.0","@digitalbazaar/ed25519-multikey":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.11.3","chai":"^4.3.6","karma":"^6.3.20","mocha":"^10.0.0","eslint":"^8.53.0","webpack":"^5.73.0","cross-env":"^7.0.3","karma-chai":"^0.1.0","karma-mocha":"^2.0.1","karma-webpack":"^5.0.0","jsonld-signatures":"^11.2.1","eslint-plugin-jsdoc":"^46.8.2","mocha-lcov-reporter":"^1.3.0","karma-mocha-reporter":"^2.2.5","eslint-plugin-unicorn":"^49.0.0","karma-chrome-launcher":"^3.1.1","karma-sourcemap-loader":"^0.3.8","eslint-config-digitalbazaar":"^5.0.1","@digitalbazaar/data-integrity":"^2.0.0","@digitalbazaar/ed25519-multikey":"^1.0.0","@digitalbazaar/multikey-context":"^1.0.0","@digitalbazaar/data-integrity-context":"^2.0.0","@digitalbazaar/security-document-loader":"^2.0.0","@digitalbazaar/ed25519-verification-key-2018":"^4.0.0","@digitalbazaar/ed25519-verification-key-2020":"^4.1.0"},"_npmOperationalInternal":{"tmp":"tmp/eddsa-rdfc-2022-cryptosuite_0.0.0_1699916462607_0.420156611811612","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@digitalbazaar/eddsa-rdfc-2022-cryptosuite","version":"1.0.1","license":"BSD-3-Clause","_id":"@digitalbazaar/eddsa-rdfc-2022-cryptosuite@1.0.1","maintainers":[{"name":"dlongley","email":"dlongley@digitalbazaar.com"},{"name":"msporny","email":"msporny@digitalbazaar.com"},{"name":"davidlehn","email":"dil@lehn.org"},{"name":"mattcollier","email":"mcollier@digitalbazaar.com"},{"name":"gannan","email":"gannan@digitalbazaar.com"}],"homepage":"https://github.com/digitalbazaar/eddsa-rdfc-2022-cryptosuite","bugs":{"url":"https://github.com/digitalbazaar/eddsa-rdfc-2022-cryptosuite/issues"},"c8":{"reporter":["lcov","text-summary","text"]},"dist":{"shasum":"bf676c5958db7ecee73bff7cb5833aa05a003eb5","tarball":"https://registry.npmjs.org/@digitalbazaar/eddsa-rdfc-2022-cryptosuite/-/eddsa-rdfc-2022-cryptosuite-1.0.1.tgz","fileCount":8,"integrity":"sha512-oodqLUYMvvV9/w0H7cMZjUrbEn/MwPKy3lS47rcRV/8aGd3v+W5nv5fj7lph8A6dLAC/JezovsrxxYkRoy159Q==","signatures":[{"sig":"MEYCIQC0GG0wKqr/Ci37c457jXXyzADABwZAFxI3/rMNnXtRBAIhANs9SZCrltEHzvFozL4i/YMtGwTVxHBHBwFAwH/2MhTw","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10095},"type":"module","engines":{"node":">=18"},"exports":"./lib/index.js","gitHead":"ee5ffdde66964181a89985de8ac2cea758008c76","scripts":{"lint":"eslint .","test":"npm run test-node","coverage":"cross-env NODE_ENV=test c8 npm run test-node","test-node":"cross-env NODE_ENV=test mocha --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require test/test-mocha.js test/*.spec.js","test-karma":"karma start karma.conf.cjs","coverage-ci":"cross-env NODE_ENV=test c8 --reporter=lcovonly --reporter=text-summary --reporter=text npm run test-node","coverage-report":"c8 report"},"_npmUser":{"name":"davidlehn","email":"dil@lehn.org"},"repository":{"url":"git+https://github.com/digitalbazaar/eddsa-rdfc-2022-cryptosuite.git","type":"git"},"_npmVersion":"10.2.0","description":"An EdDSA-RDFC-2022 Data Integrity cryptosuite for use with jsonld-signatures.","directories":{},"_nodeVersion":"20.8.0","dependencies":{"jsonld":"^8.1.0","@digitalbazaar/ed25519-multikey":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.11.3","chai":"^4.3.6","karma":"^6.3.20","mocha":"^10.0.0","eslint":"^8.53.0","webpack":"^5.73.0","cross-env":"^7.0.3","karma-chai":"^0.1.0","karma-mocha":"^2.0.1","karma-webpack":"^5.0.0","jsonld-signatures":"^11.2.1","eslint-plugin-jsdoc":"^46.8.2","mocha-lcov-reporter":"^1.3.0","karma-mocha-reporter":"^2.2.5","eslint-plugin-unicorn":"^49.0.0","karma-chrome-launcher":"^3.1.1","karma-sourcemap-loader":"^0.3.8","eslint-config-digitalbazaar":"^5.0.1","@digitalbazaar/data-integrity":"^2.0.0","@digitalbazaar/ed25519-multikey":"^1.0.0","@digitalbazaar/multikey-context":"^1.0.0","@digitalbazaar/data-integrity-context":"^2.0.0","@digitalbazaar/security-document-loader":"^2.0.0","@digitalbazaar/ed25519-verification-key-2018":"^4.0.0","@digitalbazaar/ed25519-verification-key-2020":"^4.1.0"},"_npmOperationalInternal":{"tmp":"tmp/eddsa-rdfc-2022-cryptosuite_1.0.1_1699917987191_0.04912798305265875","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@digitalbazaar/eddsa-rdfc-2022-cryptosuite","version":"1.1.0","license":"BSD-3-Clause","_id":"@digitalbazaar/eddsa-rdfc-2022-cryptosuite@1.1.0","maintainers":[{"name":"dlongley","email":"dlongley@digitalbazaar.com"},{"name":"msporny","email":"msporny@digitalbazaar.com"},{"name":"davidlehn","email":"dil@lehn.org"},{"name":"mattcollier","email":"mcollier@digitalbazaar.com"},{"name":"gannan","email":"gannan@digitalbazaar.com"}],"homepage":"https://github.com/digitalbazaar/eddsa-rdfc-2022-cryptosuite","bugs":{"url":"https://github.com/digitalbazaar/eddsa-rdfc-2022-cryptosuite/issues"},"c8":{"reporter":["lcov","text-summary","text"]},"dist":{"shasum":"bda0820775df8c07aa887bf14bd1e04132b7f76d","tarball":"https://registry.npmjs.org/@digitalbazaar/eddsa-rdfc-2022-cryptosuite/-/eddsa-rdfc-2022-cryptosuite-1.1.0.tgz","fileCount":8,"integrity":"sha512-yQArs97y7BJegWEzV2NJWA658WSYST5RNn9jDpUXT4sGi8jk4ojXuCV3veXTc2YxGflz0cpUkIydtZR640kMbw==","signatures":[{"sig":"MEUCIBRgMl+JKsr+ktSf7Ch2/Q6OD+XnOhlPf72/h2+6wzKeAiEAzkd3llK//VKq3RCCoia+EgAULQuk/QfpMiT6f+l9rM4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10462},"type":"module","engines":{"node":">=18"},"exports":"./lib/index.js","gitHead":"cf28f2c2ef67b52a788837f1a92aa5bd81fc410e","scripts":{"lint":"eslint .","test":"npm run test-node","coverage":"cross-env NODE_ENV=test c8 npm run test-node","test-node":"cross-env NODE_ENV=test mocha --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require test/test-mocha.js test/*.spec.js","test-karma":"karma start karma.conf.cjs","coverage-ci":"cross-env NODE_ENV=test c8 --reporter=lcovonly --reporter=text-summary --reporter=text npm run test-node","coverage-report":"c8 report"},"_npmUser":{"name":"dlongley","email":"dlongley@digitalbazaar.com"},"repository":{"url":"git+https://github.com/digitalbazaar/eddsa-rdfc-2022-cryptosuite.git","type":"git"},"_npmVersion":"10.5.0","description":"An EdDSA-RDFC-2022 Data Integrity cryptosuite for use with jsonld-signatures.","directories":{},"_nodeVersion":"20.12.1","dependencies":{"jsonld":"^8.1.0","rdf-canonize":"^4.0.1","@digitalbazaar/ed25519-multikey":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.11.3","chai":"^4.3.6","karma":"^6.3.20","mocha":"^10.0.0","eslint":"^8.53.0","webpack":"^5.73.0","cross-env":"^7.0.3","karma-chai":"^0.1.0","karma-mocha":"^2.0.1","karma-webpack":"^5.0.0","jsonld-signatures":"^11.2.1","eslint-plugin-jsdoc":"^46.8.2","mocha-lcov-reporter":"^1.3.0","karma-mocha-reporter":"^2.2.5","eslint-plugin-unicorn":"^49.0.0","karma-chrome-launcher":"^3.1.1","karma-sourcemap-loader":"^0.3.8","eslint-config-digitalbazaar":"^5.0.1","@digitalbazaar/data-integrity":"^2.0.0","@digitalbazaar/ed25519-multikey":"^1.0.0","@digitalbazaar/multikey-context":"^2.0.1","@digitalbazaar/data-integrity-context":"^2.0.0","@digitalbazaar/security-document-loader":"^2.0.0","@digitalbazaar/ed25519-verification-key-2018":"^4.0.0","@digitalbazaar/ed25519-verification-key-2020":"^4.1.0"},"_npmOperationalInternal":{"tmp":"tmp/eddsa-rdfc-2022-cryptosuite_1.1.0_1722534580769_0.594074630967623","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@digitalbazaar/eddsa-rdfc-2022-cryptosuite","version":"1.2.0","license":"BSD-3-Clause","_id":"@digitalbazaar/eddsa-rdfc-2022-cryptosuite@1.2.0","maintainers":[{"name":"dlongley","email":"dlongley@digitalbazaar.com"},{"name":"msporny","email":"msporny@digitalbazaar.com"},{"name":"davidlehn","email":"dil@lehn.org"},{"name":"mattcollier","email":"mcollier@digitalbazaar.com"},{"name":"gannan","email":"gannan@digitalbazaar.com"}],"homepage":"https://github.com/digitalbazaar/eddsa-rdfc-2022-cryptosuite","bugs":{"url":"https://github.com/digitalbazaar/eddsa-rdfc-2022-cryptosuite/issues"},"c8":{"reporter":["lcov","text-summary","text"]},"dist":{"shasum":"9c282d5f558ecce4d336e9947b06d45c58615cc9","tarball":"https://registry.npmjs.org/@digitalbazaar/eddsa-rdfc-2022-cryptosuite/-/eddsa-rdfc-2022-cryptosuite-1.2.0.tgz","fileCount":8,"integrity":"sha512-a3PyICe1SI55SgHXgtPRYpzmZ2FMtloQDkVcbhUZ9dpoLcZg5TqsS4U7ap2ggCD4MUXz7uz6ErikJf76Iwyd0g==","signatures":[{"sig":"MEUCIQCXG4yiJW0s5K7ZvFJVFYZPjhSOpEwdQhNQWEhw885zZgIgUpvwrWkO2u+Hl1XjbjcHKUz3NMI+VWZ/+byhIxAM5cs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10464},"type":"module","engines":{"node":">=18"},"exports":"./lib/index.js","gitHead":"4618950f88e57725b9765203c7ab5b74f7a823e3","scripts":{"lint":"eslint .","test":"npm run test-node","coverage":"cross-env NODE_ENV=test c8 npm run test-node","test-node":"cross-env NODE_ENV=test mocha --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require test/test-mocha.js test/*.spec.js","test-karma":"karma start karma.conf.cjs","coverage-ci":"cross-env NODE_ENV=test c8 --reporter=lcovonly --reporter=text-summary --reporter=text npm run test-node","coverage-report":"c8 report"},"_npmUser":{"name":"gannan","email":"gannan@digitalbazaar.com"},"repository":{"url":"git+https://github.com/digitalbazaar/eddsa-rdfc-2022-cryptosuite.git","type":"git"},"_npmVersion":"10.2.3","description":"An EdDSA-RDFC-2022 Data Integrity cryptosuite for use with jsonld-signatures.","directories":{},"_nodeVersion":"21.2.0","dependencies":{"jsonld":"^8.1.0","rdf-canonize":"^4.0.1","@digitalbazaar/ed25519-multikey":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.11.3","chai":"^4.3.6","karma":"^6.3.20","mocha":"^10.0.0","eslint":"^8.53.0","webpack":"^5.73.0","cross-env":"^7.0.3","karma-chai":"^0.1.0","karma-mocha":"^2.0.1","karma-webpack":"^5.0.0","jsonld-signatures":"^11.2.1","eslint-plugin-jsdoc":"^46.8.2","mocha-lcov-reporter":"^1.3.0","karma-mocha-reporter":"^2.2.5","eslint-plugin-unicorn":"^49.0.0","karma-chrome-launcher":"^3.1.1","karma-sourcemap-loader":"^0.3.8","eslint-config-digitalbazaar":"^5.0.1","@digitalbazaar/data-integrity":"^2.0.0","@digitalbazaar/ed25519-multikey":"^1.0.0","@digitalbazaar/multikey-context":"^2.0.1","@digitalbazaar/data-integrity-context":"^2.0.0","@digitalbazaar/security-document-loader":"^3.0.0","@digitalbazaar/ed25519-verification-key-2018":"^4.0.0","@digitalbazaar/ed25519-verification-key-2020":"^4.1.0"},"_npmOperationalInternal":{"tmp":"tmp/eddsa-rdfc-2022-cryptosuite_1.2.0_1732557189897_0.7253016701462127","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"@digitalbazaar/eddsa-rdfc-2022-cryptosuite","version":"1.3.0","description":"An EdDSA-RDFC-2022 Data Integrity cryptosuite for use with jsonld-signatures.","homepage":"https://github.com/digitalbazaar/eddsa-rdfc-2022-cryptosuite","repository":{"type":"git","url":"git+https://github.com/digitalbazaar/eddsa-rdfc-2022-cryptosuite.git"},"license":"BSD-3-Clause","type":"module","exports":"./lib/index.js","dependencies":{"@digitalbazaar/ed25519-multikey":"^1.0.0","jsonld":"^9.0.0","rdf-canonize":"^5.0.0"},"devDependencies":{"@digitalbazaar/data-integrity":"^2.0.0","@digitalbazaar/data-integrity-context":"^2.0.0","@digitalbazaar/ed25519-multikey":"^1.0.0","@digitalbazaar/ed25519-verification-key-2018":"^4.0.0","@digitalbazaar/ed25519-verification-key-2020":"^4.1.0","@digitalbazaar/multikey-context":"^2.0.1","@digitalbazaar/security-document-loader":"^3.0.0","c8":"^7.11.3","chai":"^4.3.6","cross-env":"^7.0.3","eslint":"^8.53.0","eslint-config-digitalbazaar":"^5.0.1","eslint-plugin-jsdoc":"^46.8.2","eslint-plugin-unicorn":"^49.0.0","jsonld-signatures":"^11.6.0","karma":"^6.3.20","karma-chai":"^0.1.0","karma-chrome-launcher":"^3.1.1","karma-mocha":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^5.0.0","mocha":"^10.0.0","mocha-lcov-reporter":"^1.3.0","webpack":"^5.73.0"},"engines":{"node":">=18"},"scripts":{"test":"npm run test-node","test-karma":"karma start karma.conf.cjs","test-node":"cross-env NODE_ENV=test mocha --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require test/test-mocha.js test/*.spec.js","coverage":"cross-env NODE_ENV=test c8 npm run test-node","coverage-ci":"cross-env NODE_ENV=test c8 --reporter=lcovonly --reporter=text-summary --reporter=text npm run test-node","coverage-report":"c8 report","lint":"eslint ."},"c8":{"reporter":["lcov","text-summary","text"]},"gitHead":"38ba7a789a1e69eb780ace526d43f1deb1135076","_id":"@digitalbazaar/eddsa-rdfc-2022-cryptosuite@1.3.0","bugs":{"url":"https://github.com/digitalbazaar/eddsa-rdfc-2022-cryptosuite/issues"},"_nodeVersion":"22.22.0","_npmVersion":"11.7.0","dist":{"integrity":"sha512-IcxYKnxYEaJ1xLEcsddIYb+ooQPQ8pM54NKDDH5eDpF8pEY5E/dqrkJv+o6yHUuoXDjwjhvPQSj6nE0rF32Q/w==","shasum":"6c406554e2056d7a78ce06248f0efc6c3419071a","tarball":"https://registry.npmjs.org/@digitalbazaar/eddsa-rdfc-2022-cryptosuite/-/eddsa-rdfc-2022-cryptosuite-1.3.0.tgz","fileCount":8,"unpackedSize":10464,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDSz+ZNwy3J6LHY/yUQ8/PoeoRnx4i1QT8H5WIN9xVOVAIhAP4per0vwE823JtYH0ICCEUXxWgDLtZcD3zmzCObVdnw"}]},"_npmUser":{"name":"davidlehn","email":"dil@lehn.org"},"directories":{},"maintainers":[{"name":"dlongley","email":"dlongley@digitalbazaar.com"},{"name":"msporny","email":"msporny@digitalbazaar.com"},{"name":"davidlehn","email":"dil@lehn.org"},{"name":"gannan","email":"gannan@digitalbazaar.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eddsa-rdfc-2022-cryptosuite_1.3.0_1770333745248_0.9910656085102802"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-13T23:01:02.420Z","modified":"2026-02-05T23:22:25.603Z","0.0.0":"2023-11-13T23:01:02.812Z","1.0.1":"2023-11-13T23:26:27.366Z","1.1.0":"2024-08-01T17:49:40.939Z","1.2.0":"2024-11-25T17:53:10.087Z","1.3.0":"2026-02-05T23:22:25.398Z"},"bugs":{"url":"https://github.com/digitalbazaar/eddsa-rdfc-2022-cryptosuite/issues"},"license":"BSD-3-Clause","homepage":"https://github.com/digitalbazaar/eddsa-rdfc-2022-cryptosuite","repository":{"type":"git","url":"git+https://github.com/digitalbazaar/eddsa-rdfc-2022-cryptosuite.git"},"description":"An EdDSA-RDFC-2022 Data Integrity cryptosuite for use with jsonld-signatures.","maintainers":[{"name":"dlongley","email":"dlongley@digitalbazaar.com"},{"name":"msporny","email":"msporny@digitalbazaar.com"},{"name":"davidlehn","email":"dil@lehn.org"},{"name":"gannan","email":"gannan@digitalbazaar.com"}],"readme":"# EdDSA RDFC 2022 Data Integrity Cryptosuite _(@digitalbazaar/eddsa-rdfc-2022-cryptosuite)_\n\n[![Build status](https://img.shields.io/github/actions/workflow/status/digitalbazaar/eddsa-rdfc-2022-cryptosuite/main.yml)](https://github.com/digitalbazaar/eddsa-rdfc-2022-cryptosuite/actions?query=workflow%3A%22Node.js+CI%22)\n[![Coverage status](https://img.shields.io/codecov/c/github/digitalbazaar/eddsa-rdfc-2022-cryptosuite)](https://codecov.io/gh/digitalbazaar/eddsa-rdfc-2022-cryptosuite)\n[![NPM Version](https://img.shields.io/npm/v/@digitalbazaar/eddsa-rdfc-2022-cryptosuite.svg)](https://npm.im/@digitalbazaar/eddsa-rdfc-2022-cryptosuite)\n\n> EdDSA 2022 Data Integrity Cryptosuite for use with jsonld-signatures.\n\n## Table of Contents\n\n- [Background](#background)\n- [Security](#security)\n- [Install](#install)\n- [Usage](#usage)\n- [Contribute](#contribute)\n- [Commercial Support](#commercial-support)\n- [License](#license)\n\n## Background\n\nFor use with https://github.com/digitalbazaar/jsonld-signatures v11.0 and above.\n\nSee also related specs:\n\n* [Verifiable Credential Data Integrity](https://w3c.github.io/vc-data-integrity/)\n\n## Security\n\nTBD\n\n## Install\n\n- Browsers and Node.js 18+ are supported.\n\nTo install from NPM:\n\n```\nnpm install @digitalbazaar/eddsa-rdfc-2022-cryptosuite\n```\n\nTo install locally (for development):\n\n```\ngit clone https://github.com/digitalbazaar/eddsa-rdfc-2022-cryptosuite.git\ncd eddsa-rdfc-2022-cryptosuite\nnpm install\n```\n\n## Usage\n\nThe following code snippet provides a complete example of digitally signing\na verifiable credential using this library:\n\n```javascript\nimport * as Ed25519Multikey from '@digitalbazaar/ed25519-multikey';\nimport {DataIntegrityProof} from '@digitalbazaar/data-integrity';\nimport {cryptosuite as eddsaRdfc2022CryptoSuite} from\n  '@digitalbazaar/eddsa-rdfc-2022-cryptosuite';\nimport jsigs from 'jsonld-signatures';\nconst {purposes: {AssertionProofPurpose}} = jsigs;\n\n\n// create the unsigned credential\nconst unsignedCredential = {\n  '@context': [\n    'https://www.w3.org/2018/credentials/v1',\n    {\n      AlumniCredential: 'https://schema.org#AlumniCredential',\n      alumniOf: 'https://schema.org#alumniOf'\n    }\n  ],\n  id: 'http://example.edu/credentials/1872',\n  type: [ 'VerifiableCredential', 'AlumniCredential' ],\n  issuer: 'https://example.edu/issuers/565049',\n  issuanceDate: '2010-01-01T19:23:24Z',\n  credentialSubject: {\n    id: 'https://example.edu/students/alice',\n    alumniOf: 'Example University'\n  }\n};\n\n// create the keypair to use when signing\nconst controller = 'https://example.edu/issuers/565049';\nconst keyPair = await Ed25519Multikey.from({\n  '@context': 'https://w3id.org/security/multikey/v1',\n  type: 'Multikey',\n  controller,\n  id: controller + '#z6MkwXG2WjeQnNxSoynSGYU8V9j3QzP3JSqhdmkHc6SaVWoT',\n  publicKeyMultibase: 'z6MkwXG2WjeQnNxSoynSGYU8V9j3QzP3JSqhdmkHc6SaVWoT',\n  secretKeyMultibase: 'zrv3rbPamVDGvrm7LkYPLWYJ35P9audujKKsWn3x29EUiGwwhdZQd' +\n    '1iHhrsmZidtVALBQmhX3j9E5Fvx6Kr29DPt6LH'\n});\n\n// export public key and add to document loader\nconst publicKey = await keyPair.export({publicKey: true, includeContext: true});\naddDocumentToLoader({url: publicKey.id, document: publicKey});\n\n// create key's controller document\nconst controllerDoc = {\n  '@context': [\n    'https://www.w3.org/ns/did/v1',\n    'https://w3id.org/security/multikey/v1'\n  ],\n  id: controller,\n  assertionMethod: [publicKey]\n};\naddDocumentToLoader({url: controllerDoc.id, document: controllerDoc});\n\n// create suite\nconst suite = new DataIntegrityProof({\n  signer: keyPair.signer(), cryptosuite: eddsaRdfc2022CryptoSuite\n});\n\n// create signed credential\nconst signedCredential = await jsigs.sign(unsignedCredential, {\n  suite,\n  purpose: new AssertionProofPurpose(),\n  documentLoader\n});\n\n// results in the following signed VC\n{\n  \"@context\": [\n    \"https://www.w3.org/2018/credentials/v1\",\n    {\n      \"AlumniCredential\": \"https://schema.org#AlumniCredential\",\n      \"alumniOf\": \"https://schema.org#alumniOf\"\n    },\n    \"https://w3id.org/security/data-integrity/v2\"\n  ],\n  \"id\": \"http://example.edu/credentials/1872\",\n  \"type\": [\n    \"VerifiableCredential\",\n    \"AlumniCredential\"\n  ],\n  \"issuer\": \"https://example.edu/issuers/565049\",\n  \"issuanceDate\": \"2010-01-01T19:23:24Z\",\n  \"credentialSubject\": {\n    \"id\": \"https://example.edu/students/alice\",\n    \"alumniOf\": \"Example University\"\n  },\n  \"proof\": {\n    \"type\": \"DataIntegrityProof\",\n    \"created\": \"2022-09-06T21:29:24Z\",\n    \"verificationMethod\": \"https://example.edu/issuers/565049#z6MkwXG2WjeQnNxSoynSGYU8V9j3QzP3JSqhdmkHc6SaVWoT\",\n    \"cryptosuite\": \"eddsa-rdfc-2022\",\n    \"proofPurpose\": \"assertionMethod\",\n    \"proofValue\": \"z4uwHCobmxKqQfZb7i8QRnNR9J4TR6u4Wkm4DB3ms337gfSpL4UwhTD7KKdPjyAaVJQ4y896FEnB1Vz3uEz14jWoC\"\n  }\n}\n```\n\n## Contribute\n\nSee [the contribute file](https://github.com/digitalbazaar/bedrock/blob/master/CONTRIBUTING.md)!\n\nPRs accepted.\n\nIf editing the Readme, please conform to the\n[standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## Commercial Support\n\nCommercial support for this library is available upon request from\nDigital Bazaar: support@digitalbazaar.com\n\n## License\n\n[New BSD License (3-clause)](LICENSE) © 2023 Digital Bazaar\n","readmeFilename":"README.md"}