{"_id":"@caelum-tech/caelum-diddoc-nodejs","_rev":"7-5bf7c6de06875edb43d107efb5675194","name":"@caelum-tech/caelum-diddoc-nodejs","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.0":{"name":"@caelum-tech/caelum-diddoc-nodejs","collaborators":["Caelum-Labs <alex@caelumlabs.com>"],"version":"0.1.0","main":"caelum_diddoc.js","types":"caelum_diddoc.d.ts","description":"The `diddoc` crate is aimed to help `javascript` and `rust` developers manage `DID docs`  (**D**ecentralized **Id**entity **Doc**uments) in an easy manner. Following [w3's specifications](https://w3c-ccg.github.io/did-spec/#did-documents) on DID Documents","_id":"@caelum-tech/caelum-diddoc-nodejs@0.1.0","_nodeVersion":"12.13.0","_npmVersion":"6.12.1","dist":{"integrity":"sha512-7Zn5U4DmsKhfc0xFKasgWqztSTNfs/yechcWQIn4mnEC7fdgXQMrz2861CriltiIyab3Qm5wKblcUK4Esy+fQQ==","shasum":"3e1a5bb74708fec235d14da4df600d6636cd1e34","tarball":"https://registry.npmjs.org/@caelum-tech/caelum-diddoc-nodejs/-/caelum-diddoc-nodejs-0.1.0.tgz","fileCount":6,"unpackedSize":235441,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd4PrICRA9TVsSAnZWagAAGOUP/2YqJcoRWxTvl3++lDta\nPoPlsORNdbLHkez0UgkvosK3IBM4bwnq2RfIkUq8SAslWyDDYb54fdPfdvI8\nCp8+XhXbGGucWgydnpAZNL37DdakZta0RxapfN8SSLbRFaKTyeEuRhFaEmW1\n4wD4YEstSn8ZjL11exrk+nidIDcbYYgnaoIH9CXWqiDTC6D4IFCubAwEFRQp\nd4Yrth8mWktd3WQ70OSdWBR2vakZ/pPSdOKA+9jwUnMjm8iuoUh5rEztzIY6\npdbR1+qrnINAb94hjZ5Zs6/mCVTI40WLE8/LlyCbqIJLy3GoAUJNGoQ09Td+\niy6Cr/lKy8KRHbHiJcfs1Q7hBOw7OxPkDcuInrNqripBWwvgsM0a5u7Hx9oc\nI1xHW9xiySZ5FlmDsPvNFi+yrgA7yBZnX0HIb1gAajcv1LrS2nb0Uc7s7m+F\n/h8B5pgrQzSr2zzQ+5+pe3ADJEoh0dRCR9U0zbWRdrVvPuA1pl0RAv+8s08a\nUkkyqnJx0g/H2qrstJJvHgTCfD4/SDY3396D4Y40OcfuPQvXRcpcf3NpCBSY\nCg3qDKWrdMJ3W1pvM2DYVrmz8U5H/i0wJzdtQv0/xaGckajuo50BmGeVjvcl\nA3F0pyyQ3+fytjNr3tyhoT3PkMu50GtRSm9xE7fQ9daAZvppfl08xKgtvMGF\nEFmG\r\n=jIgY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBIV85i0o7WxYN06Y12VUDs+qj9UysALMgFeEsSvVBMaAiAMVWaDriaH46ztMvdaBSR373CZ8li+2pdqDQHNbaesJA=="}]},"maintainers":[{"name":"crossi704","email":"caio@caelumlabs.com"},{"name":"tomas_caelum","email":"tomas@caelumlabs.com"},{"name":"alexpuig","email":"alex@caelumlabs.com"},{"name":"jordicaelum","email":"jordi@caelumlabs.com"},{"name":"chuck-caelum","email":"chuck@caelumlabs.com"}],"_npmUser":{"name":"tomas_caelum","email":"tomas@caelumlabs.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/caelum-diddoc-nodejs_0.1.0_1575025352538_0.5137842389390166"},"_hasShrinkwrap":false},"0.1.1":{"name":"@caelum-tech/caelum-diddoc-nodejs","collaborators":["Tomas <tomas@caelumlabs.com>"],"description":"Self-Sovereign Identity rust/wasm crate","version":"0.1.1","license":"MIT/Apache-2.0","module":"caelum_diddoc.js","types":"caelum_diddoc.d.ts","sideEffects":"false","_id":"@caelum-tech/caelum-diddoc-nodejs@0.1.1","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-sOZCA07ebgIu2rfZIrR5Nv53EAMUI69d0FBoweQz4NZHKz6ihRghThR6puqH9fYmf2dkVNQntIsEqcORvZ7uWw==","shasum":"bcd57a73ee25c3424d87144079eab6ce271fb25b","tarball":"https://registry.npmjs.org/@caelum-tech/caelum-diddoc-nodejs/-/caelum-diddoc-nodejs-0.1.1.tgz","fileCount":7,"unpackedSize":241270,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd74FBCRA9TVsSAnZWagAA1UoP/RhH0gcDnXHT72nFeGQm\nu2bHB4Ry6yeKUsFdCj4SdeiZFyWNZhunIa0Q1LnbWCjUwcFHQd8mNZxIs8nh\nuE+z58jnQmohX8gDqlRYl4ElyJZsiCJu9psmQMsfbyU8Q4lnHMUDY/BMOW1E\nGswL81W8CY8/n7PXcZD+PUDRsbs1SRKuoz0twytsZXC4RWAQc3HD5rJpSg9j\neN2xS5lWr3DsXLlHkkjmuccprBrijm6L3AL8gMEWaz+SKXRmkXaFDCsMPnl2\nd7pblnecqRf0CGplmACUnHcJbEwil0fki/Rz9RDLJYiwQwX4L6P6U4n0ywXA\n7p8mUMF2I37FIIQloK5kOB/Ao4vYwtgtCqtflRiHnQ+q1N71Exquue2GINre\niAM6yg3TWLzJ879gCq3y1e4UdAbrjd1I8Apy+S5UWntEISJf7+KpMk797BUb\nfBCNo6pdOHO2Km3qTC/ocI6PUFyGCXanVFfMGc4+jnM7NUoiLWKyWZEBQk/p\nio+pFCP/Gi0vBeFTQwxSatXu5162T6aUK0V9RhVvWyjdUOQXl6jDY0ZSuH6A\nBsvbRWeSPD4G0Sod1328Dzxfc7xPyD8F2XSHQdAMSWdgkKyuByr6ZjtKG2h9\n2f5DhJS2HvSvgjLlO4Jljd5fU+UMiAtCQ5+7KvQ9rahWHzt721b52C78YiLw\nSUaA\r\n=2IRg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICgv5f7dVjGOJ5neXtElsWKjKQBSOurBkCUZCOiZwZ7mAiEAtNjUvanPPKnIq+aL+5sLx/J1V7Yyb0IdqIEFWL+B1VM="}]},"maintainers":[{"name":"alexpuig","email":"alex@caelumlabs.com"},{"name":"chuck-caelum","email":"chuck@caelumlabs.com"},{"name":"crossi704","email":"caio@caelumlabs.com"},{"name":"jordicaelum","email":"jordi@caelumlabs.com"},{"name":"tomas_caelum","email":"tomas@caelumlabs.com"}],"_npmUser":{"name":"tomas_caelum","email":"tomas@caelumlabs.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/caelum-diddoc-nodejs_0.1.1_1575977280659_0.4892309650191067"},"_hasShrinkwrap":false},"0.1.2":{"name":"@caelum-tech/caelum-diddoc-nodejs","collaborators":["Caelum-Labs <alex@caelumlabs.com>","Tomas <tomas@caelumlabs.com>"],"description":"Self-Sovereign Identity rust/wasm crate","version":"0.1.2","license":"MIT/Apache-2.0","main":"caelum_diddoc.js","types":"caelum_diddoc.d.ts","_id":"@caelum-tech/caelum-diddoc-nodejs@0.1.2","_nodeVersion":"13.3.0","_npmVersion":"6.12.1","dist":{"integrity":"sha512-73QIoPuFLX1i/OQLQvVn2wmEMLD+6AnWoakEj9X+hepWLVZ0St9NFGxsefQ89ZylXE0+n0QgEoBasbMWm5dTpg==","shasum":"af1535122f698ffe3340c8577da27af4c76cb9c0","tarball":"https://registry.npmjs.org/@caelum-tech/caelum-diddoc-nodejs/-/caelum-diddoc-nodejs-0.1.2.tgz","fileCount":8,"unpackedSize":246193,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+kLlCRA9TVsSAnZWagAAev0P/Azt4FrYeq6tlqviUEZD\nDpRYbPu4j9T2D6D/lV7k2hKOlpnu0MRPdfs74ODJKF5RfY565tRzF92o6wHR\nsTAymseDUhOlJKUVENiLqbPZMcK+clTvBD5kG6XKmMnDJ3u7Isn5Aa2EWifH\nd1JD3vDjVFsqIyij7qOmIy4Wv+FYA47Rve9UfbUITVBZ+1JnvwQhBlMBVNsh\nxYhM7eNGNDFXy1q7kiuqtGTE/uQ7OKsMb/20CHhY57wZLV7FgwtR2muXHKsn\nLdelOGslFD6BRwtZkPB4QnRLB113QUrbgh2T9elt94O+V6p7GMwDTocabImS\n1SYDzb3++dc8OkAdZydQDmQO3m1LVR55JxKzcZjQVre8NOvMFVRBZvBdrFNc\niYvf6H1igB+40HeRMpm+h/dgST3uw6Zth1+YLcRL+rYIyYdZ5gZLQ1a8SO9z\nKfEDSzO2B299Bbn4sO0lNbvddw/JZNejaQv8Mv7bSIne2uvVGOtARQpCdJun\nhu5JLzTkbTiDeGBas4sVjkbpXbqpe+fI+yX4w7QVq7z08sz4nm91nf5xmLZP\nKL3DiPXjeyL6TjH1yMJjrZCjw/2gu7h+zSJD9fxqrXfDOfrinGmclDHtopmE\nxQa7/5zUJ3xYZtn3MA5Sf0rE/TvcFuyc94dkiLleLhn1bBPt/cPJ1i+jeD0C\noro9\r\n=ufmB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGdQpE6J5BrQIyPOmKlQgjJQBmSjJ5PVytYxp0E70kuyAiAPdFAFaxP7BCdmEbdMo/BSe8kmaXCakikvbqKt0iaH6g=="}]},"maintainers":[{"name":"alexpuig","email":"alex@caelumlabs.com"},{"name":"chuck-caelum","email":"chuck@caelumlabs.com"},{"name":"crossi704","email":"caio@caelumlabs.com"},{"name":"jordicaelum","email":"jordi@caelumlabs.com"},{"name":"tomas_caelum","email":"tomas@caelumlabs.com"}],"_npmUser":{"name":"tomas_caelum","email":"tomas@caelumlabs.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/caelum-diddoc-nodejs_0.1.2_1576682213498_0.23505774688400205"},"_hasShrinkwrap":false},"0.1.3":{"name":"@caelum-tech/caelum-diddoc-nodejs","collaborators":["Caelum-Labs <alex@caelumlabs.com>","Tomas <tomas@caelumlabs.com>"],"description":"Self-Sovereign Identity rust/wasm crate","version":"0.1.3","license":"MIT/Apache-2.0","main":"caelum_diddoc.js","types":"caelum_diddoc.d.ts","_id":"@caelum-tech/caelum-diddoc-nodejs@0.1.3","_nodeVersion":"13.3.0","_npmVersion":"6.12.1","dist":{"integrity":"sha512-H66PYCybrgWZH+/ngml0zbTnkezVxXsBGd0wwalCpcl+PWJGaR54GWyHmoPUdiCHIJVWowyax9zuUySqOnVD9g==","shasum":"def61ca42529b736b004888e05f7e579f14b9235","tarball":"https://registry.npmjs.org/@caelum-tech/caelum-diddoc-nodejs/-/caelum-diddoc-nodejs-0.1.3.tgz","fileCount":8,"unpackedSize":246193,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+kXeCRA9TVsSAnZWagAAPD4P/jIfsSLlVdxbpeybqwhZ\nCusPEdx+qAg6GFOUykAm+iWSCjnGSDEomXZUdu/pBmZanHqUoP0c53FlFJSD\nQLf9QssnycM4BexIMMhBfF+JpeB70ouUe4UUUQ9lHjFJYBNfGmE5lhi8ROJp\ncBESMRN6IK9KPwnpQlVMfB9bPTQ9tQCVIiGkkvAjTo89vbTnRKwj1hOvqZXc\nf1aSOAll/ooJ3dkCmuF0aWgLN+h1284tMl0ge4RrLaHA2FCGpsgboAQedlsb\nXg3vHZ5kk/Up35kz7gpapvZKzjRYyCaIblzHRWxhlsz4/YyK9N4XEz9mKSvn\nCJ3mWmaaUeFb/FJA1ft5/pCJadYflUa8q6bK6WLdcHRfMVcfcwoOqjxHUyDD\njd+7KOgedZXsZvl/LfUWwVVZRI4sY2Tur+ok7LUxlvHUc7F9E67jg1CP8K7/\nhsBESMzXDhiVP024ghAgiP3siTSUoht/L8oLsxSOTGrSRjoEOFXobMsNkKKZ\ng0118vm3akoEetBG81uFKNTsZbVF8nm4LK63rYgNWEDIhicW1o6X8xXI2SiJ\nob1IAeQ+GzB/9FkI5OcUdwd8e2pUcM3c+dJhb5ge5uApePr0y7R0YqBbFxm1\nucEgueTcLaiBqr3Wdy+ypKy53ECRHw78PCd4adyEnuBrn4sa74GZc5MWO21f\ndsZm\r\n=/o7L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC5bzo2Cu0MgueJVmf2sZUr/wV3BgY757f1xdwRejuH2AiB3GHi3POA6sdfcknf+6ogCB6W+W5C/6i6Z8QkQ4e9KDQ=="}]},"maintainers":[{"name":"alexpuig","email":"alex@caelumlabs.com"},{"name":"chuck-caelum","email":"chuck@caelumlabs.com"},{"name":"crossi704","email":"caio@caelumlabs.com"},{"name":"jordicaelum","email":"jordi@caelumlabs.com"},{"name":"tomas_caelum","email":"tomas@caelumlabs.com"}],"_npmUser":{"name":"tomas_caelum","email":"tomas@caelumlabs.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/caelum-diddoc-nodejs_0.1.3_1576682974160_0.1614213271924807"},"_hasShrinkwrap":false}},"time":{"created":"2019-11-29T11:02:32.340Z","0.1.0":"2019-11-29T11:02:32.672Z","modified":"2022-04-04T21:29:59.106Z","0.1.1":"2019-12-10T11:28:00.881Z","0.1.2":"2019-12-18T15:16:53.610Z","0.1.3":"2019-12-18T15:29:34.272Z"},"maintainers":[{"email":"alex@caelumlabs.com","name":"alexpuig"},{"email":"chuck@caelumlabs.com","name":"chuck-caelum"}],"description":"Self-Sovereign Identity rust/wasm crate","readme":"# **D**ecentralized **Id**entity **Doc**uments\n\nThe `diddoc` crate is aimed to help `javascript` and `rust` developers manage `DID docs` \n(**D**ecentralized **Id**entity **Doc**uments) in an easy manner.\nFollowing [w3's specifications](https://w3c-ccg.github.io/did-spec/#did-documents) on DID\nDocuments this crate aims to be a [Resolver](https://w3c-ccg.github.io/did-spec/#did-resolvers).\nThis means it will create, read, update and delete all properties of a DID document. As well as\ninteracting with other DIDs and DID document, using proof verification.\nAlso, it will be able to interact with others on other Decentralized Identifier Registry.\nThis will can effectively be used to perform all the operations required of a CKMS\n(cryptographic key management system), such as key registration, replacement, rotation,\nrecovery, and expiration.\nMore details in [w3's method specifications](https://w3c-ccg.github.io/did-spec/#did-methods).\n\n## Documentation\n\nYou can read [our code documentation](https://docs.rs/crate/caelum-diddoc), which makes reference to usage with javascript and rust as well as the actual implementation of the library.\n\nFor more details you can take a look at our book.\n\n### Book\n\nClone repository and go to the `book` directory:\n\n```sh\ngit clone https://gitlab.com/caelum-tech/caelum-diddoc.git\ncd caelum-diddoc/book\n```\n\nDownload `mdbook` and build the documentation:\n\n```sh\ncargo install mdbook\nmdbook build\n```\n\nOpen the book `/your/relative/path/caelum-diddoc/book/book/index.html` on your favorite browser.\n\n## Installing `DidDoc` for `JavaScript`\n\n### From `npm`\n\nAdd it to your package.json:\n\n```json\n\"devDependencies\": {\n    \"@caelum-tech/caelum-diddoc-nodejs\": \"^0.1.2\",\n   ...\n  }\n```\n\nImported in your code:\n\n```javascript\nconst diddoc = require('@caelum-tech/caelum-diddoc-nodejs')\n```\n\nFinally you can use it as any other package:\n\n```javascript\nconst d = new diddoc.DidDoc('https://www.w3.org/ns/did/v1', 'did:lor:cat:lab:root')\nconsole.log(d.toJSON())\n```\n\n### From gitlab\n\nClone or download `diddoc` repository\n\n```sh\ngit clone ...\n```\n\nGo to `diddoc` directory and build the package using `wasm-pack` (make sure wasm-pack is installed)\n\n```sh\ncd diddoc\n\nwasm-pack build\n```\n\nThis will generate a directory called `pkg` inside `diddoc`  directory.\n\nAdd the generated package to your `package.json`;\n\n```json\n\"devDependencies\": {\n    \"diddoc\": \"file:../diddoc/pkg\",\n    ...\n}\n```\n\nNow your ready to import it in your `JavaScript` code as usual:\n\n```javascript\nconst diddoc = require('diddoc')\n```\n\nFinally you can use it as any other package:\n\n```javascript\nconst d = new diddoc.DidDoc('https://www.w3.org/ns/did/v1', 'did:lor:cat:lab:root')\nconsole.log(d.toJSON())\n```\n\n### From npm\n\nInstalled as a normal npm package:\n\n```sh\nnpm i @caelum-tech/caelum-diddoc-nodejs\n```\n\n## Resolvers\n\n> A DID resolver is a software component with an API designed to accept requests for DID lookups and execute the\n> corresponding DID method to retrieve the authoritative DID Document. To be conformant with this specification, a DID\n> resolver:\n>\n> SHOULD validate that a DID is valid according to its DID method specification, otherwise it should produce an error.\n>\n> MUST conform to the requirements of the applicable DID method specification when performing DID resolution\n> operations.\n>\n> SHOULD offer the service of verifying the integrity of the DID Document if it is signed.\n>\n> MAY offer the service of returning requested properties of the DID Document.\n\n## Roadmap\n\n- [ x ] Basic CRUD implementation on properties.\n- [ x ] Basic CRUD implementation on Optional properties.\n- [ ] Basic interaction with IPFS.\n- [ ] Verifying cryptographic proofs.\n- [ ] Implementing important DID methods such as `did-erc725`, `did-btcr`, `did-sov`, and others.\n- [ ] Helper to implement DID for own methods.\n\n## Contributing\n\nPlease, contribute to `diddoc`! The more the better! Feel free to to open an issue and/or contacting directly with the\nowner for any request or suggestion.\n\n## Acknowledgment\n\nThis library is created to satisfy w3's specifications.\n\n## Code of conduct\n\nThis Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at\n[http://contributor-covenant.org/version/1/4][version]\n\n[homepage]: http://contributor-covenant.org\n[version]: http://contributor-covenant.org/version/1/4/\n\n## License\n\nThis project is distributed under the terms of both the Apache License (Version 2.0) and the MIT license, specified in\n[LICENSE-APACHE](LICENSE-APACHE) and [LICENSE-MIT](LICENSE-MIT) respectively.\n","readmeFilename":"README.md","license":"MIT/Apache-2.0"}