{"_id":"https-did-resolver","_rev":"19-24b97a18ebefbe7d0c18c180eab32d30","name":"https-did-resolver","dist-tags":{"latest":"1.0.0","alpha":"0.1.0-alpha1"},"versions":{"0.0.1":{"name":"https-did-resolver","version":"0.0.1","description":"Resolve DID documents from an https domain","main":"lib/register.js","author":{"name":"Mike Xu","email":"mike.xu@consensys.net"},"license":"Apache-2.0","dependencies":{"did-resolver":"^0.0.4","xmlhttprequest":"^1.8.0"},"scripts":{"type-check":"tsc --noEmit","type-check:watch":"npm run type-check -- --watch","build":"npm run build:types && npm run build:js","build:types":"tsc --emitDeclarationOnly","build:js":"babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps inline","test":"jest"},"devDependencies":{"@babel/cli":"^7.0.0","@babel/core":"^7.0.1","@babel/plugin-proposal-class-properties":"^7.0.0","@babel/plugin-proposal-object-rest-spread":"^7.0.0","@babel/plugin-transform-runtime":"^7.1.0","@babel/preset-env":"^7.0.0","@babel/preset-typescript":"^7.0.0","@types/jest":"^23.3.2","babel-core":"7.0.0-bridge.0","babel-jest":"^23.6.0","jest":"^23.6.0","prettier":"^1.14.2","regenerator-runtime":"^0.12.1","ts-jest":"^23.1.4","typescript":"^3.0.3","xhr-mock":"^2.4.1"},"jest":{"coverateDirectory":"./coverage/","collectCoverage":true},"gitHead":"f2a40d43840939ae9a1721eb50501764e37739b1","_id":"https-did-resolver@0.0.1","_npmVersion":"6.0.1","_nodeVersion":"8.4.0","_npmUser":{"name":"mike.xu","email":"mike.xu@consensys.net"},"dist":{"integrity":"sha512-VpXbmC7M+1apGr080QQP98NdiH4rh/ecZc+DW358ktJVpy+LvkOPT7AF0AMO7mIp9+y/UFRkFPIDeBs5MAdU9A==","shasum":"509940d713683762f73308d482ad4c8d92d35508","tarball":"https://registry.npmjs.org/https-did-resolver/-/https-did-resolver-0.0.1.tgz","fileCount":18,"unpackedSize":37138,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbu10rCRA9TVsSAnZWagAA0HoP+wUhiawr05vRzxVDB303\nr8KXJ+JwBqn3Pdv8mIoWumhoeOFUcUHG4O6luECfs403HTlQ6jIM/8dZ1973\nY/K2qjOMT6Hcrpg4/TXdpBmO2PT2yBXl2eDdj+jPLZK8ItwB+sNISPR4gAVa\nPio1tOwWhqhCf4rdoNRQyc+1ys4wDosiVMVfxA3lJZ5pLxTBq1S6sGZM5NwB\n8DHMAH+bou24GejNH4fuo40mUzbAdtAXzuizkCMIMU+QT+Sew90sIf6g9+4G\nbbvQKWeCEmysyvws8dfdy4+EdmeabzIXKEvr6Lby9xh68BxwwTLvzF64F6ea\nEC2XqXRXGQQBQSO0pQHOQ5/tGPszLtHrxTBTo6Us2yj49K2E3063eWaPEuyA\n1Jiwb9ISrk7zVzSiKF6NXGkP2qh9Zdl2z+VmmFOqpyqL4/Q34IjaZHjLfET7\n3BajAfR+YV9/F8JCZyc5yA/I1L0k/UM1Sw7/xg9ZP3eOlUksNjqfUcKCgTrT\nEzIv67FQFkOuzHVTaBJWdckbPMnco9UX7q0l17EY7xHlVQVErnlhHafPS2sZ\nIZB54bJrQAJC5RAea3TJNJXwfGbXI16rfPcs8BwycwlCxJTrLFWtee45cjan\n/xwxlHcvaE6iFyRpMb+M2or5JLceuTmFJuEnN9sHU6euxFL8xf27scpfGOn7\nVTug\r\n=OHqV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEQj9AwaBZ/um+m6/G+l0sEPzjV9OEqSpZi/f7aDCMn8AiEArgasO3ee8R1EoOEC51mS3A07b5jLS4GeLPloQmdqKcc="}]},"maintainers":[{"name":"mike.xu","email":"mike.xu@consensys.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/https-did-resolver_0.0.1_1539005738393_0.6566679754867262"},"_hasShrinkwrap":false},"0.0.2":{"name":"https-did-resolver","version":"0.0.2","description":"Resolve DID documents from an https domain","main":"lib/register.js","types":"lib/register.d.ts","author":{"name":"Mike Xu","email":"mike.xu@consensys.net"},"license":"Apache-2.0","dependencies":{"did-resolver":"^0.0.4","xmlhttprequest":"^1.8.0"},"scripts":{"build":"tsc","test":"jest","dev":"tsc --watch","format":"prettier"},"browser":{"xmlhttprequest":false},"devDependencies":{"@types/jest":"^23.1.1","jest":"^23.6.0","prettier":"^1.14.2","regenerator-runtime":"^0.12.1","ts-jest":"^23.1.4","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-eslint-rules":"^5.4.0","typescript":"^3.0.3","xhr-mock":"^2.4.1"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","moduleFileExtensions":["ts","tsx","js","jsx","json"],"coverageDirectory":"./coverage/","collectCoverageFrom":["src/**/*.{ts,tsx}","!src/**/*.d.ts","!**/node_modules/**"]},"gitHead":"f1c4b1a25b05eb8be0061c734e5c758e4ebdff9b","_id":"https-did-resolver@0.0.2","_npmVersion":"6.0.1","_nodeVersion":"8.4.0","_npmUser":{"name":"mike.xu","email":"mike.xu@consensys.net"},"dist":{"integrity":"sha512-qqN+TEB3s3Vwq5QKOtFkZH9xb5QN0D9v6IeoJeCT6rGfnW10CDrGhiMN7flBs0qrOXu0pINmxEFJ3gX+/bKcxA==","shasum":"e3c5a699b114de293eba200af3da880c6e6eb370","tarball":"https://registry.npmjs.org/https-did-resolver/-/https-did-resolver-0.0.2.tgz","fileCount":6,"unpackedSize":11674,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbvlvHCRA9TVsSAnZWagAAuQYP/2Vz24MeGcffj5Ft0AYC\nLTbBYXWO0sP7f5DdT6wQiKW9Nl84O2DWfA12h7AbR/4zzusN9UjuYF8xZezM\nusOHyIuic4H1b9ffgP8lyGnvounnUKx3QH6EMKi7JLGjjzRtuMYl9iWaUo33\nELhCekhJIV/DzyHl9JQKVCGENSxucySSp/XGb13G/B/79V8EImmF5LLCcE84\nyTI8/K+CtTWY+yDYYTwiiZ4lbyvqBb6G6dZAgDMOv1+1IJ8v4kqL2VZXjW0p\n+zRNMWuWae3YEKwCv3PV6LJ1RWUHwnziGPpr/2eTCVnaOIGYtuR/ezNGexAu\njL+THEsDAcD+GYLlAh0GHDg0oEYoqmG/1JLDv4zPuOLA+6zz7833fgPpbJxH\n/0zSnKWCfiqz7DQiibr8vh/Dgi0HRfD/NKhA88J2c35AxqCYzTes3mHWPbcC\nIZJ8N+HUvGAs54CCXotCCEVrjxwq20uz3XWmkOXCH4ikjUkf032HSpKS39hh\n8QUqg14EYGOrhUs5KAq/xvee0jcNVXO0GgYNQMR0x3hgCI6wnrzZgDwydstM\nos88+gRLT5hQkVo59Zag7weGCab9xJoRNhatulUar6g1nJGWdXoQbHYFQXJa\nLaojqERmIG4wpl7RxQLm6JMRSDXSrUkFYF2WO8slILxanHxY8Ecqkydj2ifu\n/lkD\r\n=htht\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCkRRo3UtCrbYvZCD2kUX+fU1YlPK0xwo2o7KBzRPLVUwIgaTQ8PISqopRR9hOg1rCL7Y13j5OUE4GiTjsDg7UqwJ8="}]},"maintainers":[{"name":"mike.xu","email":"mike.xu@consensys.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/https-did-resolver_0.0.2_1539201990864_0.23614297633869774"},"_hasShrinkwrap":false},"0.0.3":{"name":"https-did-resolver","version":"0.0.3","description":"Resolve DID documents from an https domain","main":"lib/register.js","types":"lib/register.d.ts","author":{"name":"Mike Xu","email":"mike.xu@consensys.net"},"license":"Apache-2.0","dependencies":{"did-resolver":"^0.0.4","xmlhttprequest":"^1.8.0"},"scripts":{"build":"tsc","test":"jest","dev":"tsc --watch","format":"prettier"},"browser":{"xmlhttprequest":false},"devDependencies":{"@types/jest":"^23.1.1","jest":"^23.6.0","prettier":"^1.14.2","regenerator-runtime":"^0.12.1","ts-jest":"^23.1.4","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-eslint-rules":"^5.4.0","typescript":"^3.0.3","xhr-mock":"^2.4.1"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","moduleFileExtensions":["ts","tsx","js","jsx","json"],"coverageDirectory":"./coverage/","collectCoverageFrom":["src/**/*.{ts,tsx}","!src/**/*.d.ts","!**/node_modules/**"]},"gitHead":"8cd2529c5577977ff4ad69b53434d27cffcfa3a1","_id":"https-did-resolver@0.0.3","_npmVersion":"6.0.1","_nodeVersion":"8.4.0","_npmUser":{"name":"mike.xu","email":"mike.xu@consensys.net"},"dist":{"integrity":"sha512-Cne1BMKMKGR0F6hMJqanybLCQ8J4RZ1rvIpWazzt8BYxKYEsAc/qpGyIV+8hsGvA8x3qof15GrLatrf59fsV4w==","shasum":"00fd634042cebf468fe45ecec2a45c1b85a9263a","tarball":"https://registry.npmjs.org/https-did-resolver/-/https-did-resolver-0.0.3.tgz","fileCount":6,"unpackedSize":11678,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbxjaHCRA9TVsSAnZWagAA0z4QAIfRbI55S0h1WVZPIir1\nvwNlFdbOZUXoqC7VLERK5OrVdYCu9BbBQEsdYTeNGJzI1UtZXQ8HYCEp5EV+\nl92rm/qdR5HLtn3IlAGEqZq2DlPP8D6d+16STbJ3gUGp86JRQMeDibeK0lgU\nteFGXM51E3iEM4raBJbEapBJ+FHEUeugEuo06udF9mpZLSOzyJKHHU6KGv6T\nq2hrlgafUFkk7weacVA17G+0JhmChM3HVeLc1e9ha6r7vStBpyswXaObOExa\n8Nu4oS2eX+f/KDMPAxUm5EiQ+13V8d2gPHFC9nX7nqR4Hn1zkbPwbPCh/fK1\npHCNqAjaeWF9a3ZqLAMMOhMO1eNBQAdblEPohc3zcl3Y+5uQZTFFTA7DemGd\n0cguvHwZCgvnax/oQRRh9wdwQz2GWZ3pXLiihzJ6417Gd8H1O3njNRVvrqX3\n/2BoKS29vO9puauPDbLkXf84ehCScLWESJvdMbk8YjQjVlasR2kj5MQNfzkJ\nRhODBxuRL+yqoGdhlMclApXBZGDYdhuM20PMH1QCJdTHOmg9ilfBL7dMm0hh\nKCCAVnErDDgEr/Ag3jHOhh4yFlrua50kdNWee1fXi0/2X0GoVB1JT9PJkmJG\nS4hmUzkduJjHHfIjJCioRYrfaPNYq/SblfCx5smB93HmESA+Ay2ttJjl/roS\nBDUz\r\n=ZSll\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD73gtryQGWn8VJ9xyRs5sSLVEjXST1hl+fT0XkRw1kCgIgb81VLPW6kAhPJmqy8ovKW1WCTgShhuWka9cT74AQ2JY="}]},"maintainers":[{"name":"mike.xu","email":"mike.xu@consensys.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/https-did-resolver_0.0.3_1539716742222_0.1526888276296987"},"_hasShrinkwrap":false},"0.1.0-alpha1":{"name":"https-did-resolver","version":"0.1.0-alpha1","description":"Resolve DID documents from an https domain","main":"lib/register.js","types":"lib/register.d.ts","author":{"name":"Mike Xu","email":"mike.xu@consensys.net"},"license":"Apache-2.0","dependencies":{"did-resolver":"0.0.6-alpha5","xmlhttprequest":"^1.8.0"},"scripts":{"build":"tsc","test":"jest","dev":"tsc --watch","format":"prettier"},"browser":{"xmlhttprequest":false},"devDependencies":{"@types/jest":"^23.3.10","jest":"^23.6.0","prettier":"^1.15.3","regenerator-runtime":"^0.12.1","ts-jest":"^23.10.5","tslint":"^5.12.0","tslint-config-prettier":"^1.17.0","tslint-eslint-rules":"^5.4.0","typescript":"^3.2.2","xhr-mock":"^2.4.1"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","moduleFileExtensions":["ts","tsx","js","jsx","json"],"coverageDirectory":"./coverage/","collectCoverageFrom":["src/**/*.{ts,tsx}","!src/**/*.d.ts","!**/node_modules/**"]},"readme":"---\ntitle: \"HTTPS DID Resolver\"\nindex: 0\ncategory: \"https-did-resolver\"\ntype: \"reference\"\nsource: \"https://github.com/uport-project/https-did-resolver/blob/develop/README.md\"\n---\n\n# HTTPS DID Resolver\n\nThis library is intended to use domains accessed through https as [Decentralized Identifiers](https://w3c-ccg.github.io/did-spec/#decentralized-identifiers-dids) and retrieve an associated [DID Document](https://w3c-ccg.github.io/did-spec/#did-documents)\n\nIt supports the proposed [Decentralized Identifiers](https://w3c-ccg.github.io/did-spec/) spec from the [W3C Credentials Community Group](https://w3c-ccg.github.io).\n\nIt requires the `did-resolver` library, which is the primary interface for resolving DIDs.\n\n## DID method\n\nTo encode a DID for an HTTPS domain, simply prepend `did:https:` to domain name.\n\neg: `https://example.com -> did:https:example.com`\n\n## DID Document\n\nThe DID resolver takes the domain and forms a [well-known URI](https://tools.ietf.org/html/rfc5785) to access the DID Document.\n\nFor a did `did:https:example.com`, the resolver will attempt to access the document at `https://example.com/.well-known/did.json`\n\nA minimal DID Document might contain the following information:\n\n```js\n{\n  '@context': 'https://w3id.org/did/v1',\n  id: 'did:https:example.com',\n  publicKey: [{\n       id: 'did:https:example.com#owner',\n       type: 'Secp256k1VerificationKey2018',\n       owner: 'did:https:example.com',\n       ethereumAddress: '0xb9c5714089478a327f09197987f16f9e5d936e8a'}],\n  authentication: [{\n       type: 'Secp256k1SignatureAuthentication2018',\n       publicKey: 'did:https:example.com#owner'}]\n}\n```\n\nNote this uses the `Secp256k1VerificationKey2018` type and an `ethereumAddress` instead of a `publicKeyHex`, meaning that this DID is owned by an entity that controls the private key associated with that address.\n\n## Resolving a DID document\n\nThe resolver presents a simple `resolver()` function that returns a ES6 Promise returning the DID document.\n\n```js\nimport resolve from 'did-resolver'\nimport registerResolver from 'https-did-resolver'\n\nregisterResolver()\n\nresolve('did:https:example.com').then(doc => console.log)\n\n// You can also use ES7 async/await syntax\nconst doc = await resolve('did:https:example.com')\n```\n","readmeFilename":"README.md","gitHead":"1ff3dacb8b6d8414cf747810657d6e01a1530fcd","_id":"https-did-resolver@0.1.0-alpha1","_npmVersion":"6.4.1","_nodeVersion":"11.5.0","_npmUser":{"name":"pelleb","email":"pelleb@gmail.com"},"dist":{"integrity":"sha512-mXwb7BpGpY5UqRtzRqgYp0By301McUKftPzPXEX0n8QLnipjO//Jui+1tSsEbPqkHHSrmS0EQwAlguQ5dIHIZQ==","shasum":"868669073de6e837cf072c91d3979f7967cc8599","tarball":"https://registry.npmjs.org/https-did-resolver/-/https-did-resolver-0.1.0-alpha1.tgz","fileCount":5,"unpackedSize":10983,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcN+JhCRA9TVsSAnZWagAAKoEP/AtLzj9FvcXf+h+Qc0HJ\ncbBhfhNtetLu1J4Uu5ZGe6JMgCWmXDL0gzfbnD3xHgNl3WPIy1ByvH//Kptg\nWvS7VMTDPz0g3roB3HwaCPodWiwcYSjjGnifvKH9xaqsO1E+u5KaDGCp2ju/\nT03DdRWZkcq9ryn3RFB0AJxK9SOq8K3++CT/ZU7nRon9YnJopaiK1fECaEO/\nilkp6slForwtXGOOIDAM9tzijGovPELKT3Iz4pbR8EefMvqBDjYQ/emHAgNi\nXxnDCt36S7O6Vq0zC0G+uSlEfIB5/MNbBiihj0UvL+264R1ORW278sLDrtES\nN4/W6ZStURqwRu72uHW6KdFeyR/G1kYKw3mYoZnaSafZHKc4yXkFrHfVdtyP\nInX/vafEiToCGX/p4HzQTOVQReJz6Sy9eAJ8K2EIwIPREDF2Z0KSeXEWrNpL\niVyFHZK0Hqc1YN/VFUO74XoKnCFZVT2E4DRJmpGw57FMis3Ivcr2p7fm2lGo\ntW6H1KgE0C0T7C1/pxL4XaXB4z/Ww8t6eG6So2tWVjIYxG1Y2FcqTi7Hqagb\n3Jt7qDDmNBF6g3YH7rp0pQiRWEw8uosrKHDLfTA75XNjtjoFvnZpE8rC3bBg\nMpspI1vtgN0Xv+Y+AxKqgU25apLtMWL6XO64N3+SSX7zkcd17jgqjaUrWBrY\nlr4y\r\n=ELnF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMM8ujSdbQLJZOCzx8Q/W6TUTlwFemNOWUfNDyru2EIAIgVg42iLSfubxg23CiqsUzgHjVNMnUEjHnmLi3mUtDIVE="}]},"maintainers":[{"email":"mike.xu@consensys.net","name":"mike.xu"},{"email":"pelleb@gmail.com","name":"pelleb"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/https-did-resolver_0.1.0-alpha1_1547166304194_0.11385499968325918"},"_hasShrinkwrap":false},"0.1.0":{"name":"https-did-resolver","version":"0.1.0","description":"Resolve DID documents from an https domain","main":"lib/register.js","types":"lib/register.d.ts","author":{"name":"Mike Xu","email":"mike.xu@consensys.net"},"license":"Apache-2.0","dependencies":{"did-resolver":"0.0.6","xmlhttprequest":"^1.8.0"},"scripts":{"build":"tsc","test":"jest","dev":"tsc --watch","format":"prettier"},"browser":{"xmlhttprequest":false},"devDependencies":{"@types/jest":"^23.3.10","jest":"^23.6.0","prettier":"^1.15.3","regenerator-runtime":"^0.12.1","ts-jest":"^23.10.5","tslint":"^5.12.0","tslint-config-prettier":"^1.17.0","tslint-eslint-rules":"^5.4.0","typescript":"^3.2.2","xhr-mock":"^2.4.1"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","moduleFileExtensions":["ts","tsx","js","jsx","json"],"coverageDirectory":"./coverage/","collectCoverageFrom":["src/**/*.{ts,tsx}","!src/**/*.d.ts","!**/node_modules/**"]},"gitHead":"d6d9fcf4d3db06fbd2388beb2a45921e178ffa26","_id":"https-did-resolver@0.1.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"mike.xu","email":"mike.xu@consensys.net"},"dist":{"integrity":"sha512-3vAJJ8XN1UTHf5MnaaWdP6F8R8vKYwjawZY1PQljxqRBJ2ISYstg/R8Y0ta8O6z1I+6u005KofZZm05E4kpCEQ==","shasum":"d55fa1d165a717c0cba8385e0b7a7af87d411c85","tarball":"https://registry.npmjs.org/https-did-resolver/-/https-did-resolver-0.1.0.tgz","fileCount":5,"unpackedSize":10969,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcPPRmCRA9TVsSAnZWagAA4RgQAIi00dLWTF0UL2q/aVg6\nHW8yvpe3s2vuL97bseNtvkVdDEoPwHrUfX3SC5dibSqUNYlTINLqtjNZHDlE\nTxm8lRzo5ouwzpD+/Xo+1wc5otVZMbdeu5SBPWKSCkP4aJgcMyXDihFoN717\nkXho/T5GQT4+rLPBbgDC0TkVEWClj/Ib42n2vikDwEJH1lav7ycnFu2Jjcb/\nMPI+gXDz/APlkTnrFJOxS4s2kTi040wTXISteSMZy16QwlHU1n0u/wjPte4z\nAvEzFjT12ylWWFxbfjMOXFpnd3pCZ6lWJmLfUGG4JXrF9EoBPXhjddcqxbz8\nQk4uFE5PO7auoj6uiPHd7gRNqz6H0S+sADsSSlovGBLeNII/90Jskyg5dnHT\nJRAuvZ5U7oNd7A7saXEpmp7przXfM11hmrGQrZBEFZKoCTL51G0VTF7m2xyI\nBBXkMfeQENUDewYv7p8bH9OYvuoRFws9cCPc6lPqjEvKcuEWVJrbg4nfkahm\njDGzbOSNZrUsVayo8yTJwNqp1LuD2+hk6vmRB8YALgCuSxdRR1SZDFJECYi6\n0XnIQAGlvVTf76BlTW9+oXSCY/3H8XySe0xtXGtd6+FfBeZAOfsJHcn+fKFd\ncr/xENKI/bKKGhtVfEcocGY/SasCkD5vSwfrJXwZsLyBT59/lIZ2DsUBIc/j\nYY02\r\n=BVml\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDOMGY3F7DUf8EER8plCj2aYZz/iB4cQMvnuhiG4SFRRAiAA/jykipYTsEJ65lNQ6vITk2jH3BUw2s51aTMuH0M+2g=="}]},"maintainers":[{"email":"levi.strope@gmail.com","name":"localredhead"},{"email":"mike.xu@consensys.net","name":"mike.xu"},{"email":"pelleb@gmail.com","name":"pelleb"},{"email":"rob.whitaker.18@gmail.com","name":"rmw2"},{"email":"simonas@not.cat","name":"simonas-notcat"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/https-did-resolver_0.1.0_1547498597568_0.2888451677301973"},"_hasShrinkwrap":false},"1.0.0":{"name":"https-did-resolver","version":"1.0.0","description":"Resolve DID documents from an https domain","main":"lib/resolver.js","types":"lib/resolver.d.ts","author":{"name":"Mike Xu","email":"mike.xu@consensys.net"},"license":"Apache-2.0","dependencies":{"did-resolver":"1.0.0","xmlhttprequest":"^1.8.0"},"scripts":{"build":"tsc","test":"jest","dev":"tsc --watch","format":"prettier"},"browser":{"xmlhttprequest":false},"devDependencies":{"@types/jest":"^23.3.10","jest":"^23.6.0","prettier":"^1.15.3","regenerator-runtime":"^0.12.1","ts-jest":"^23.10.5","tslint":"^5.12.0","tslint-config-prettier":"^1.17.0","tslint-eslint-rules":"^5.4.0","typescript":"^3.2.2","xhr-mock":"^2.4.1"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","moduleFileExtensions":["ts","tsx","js","jsx","json"],"coverageDirectory":"./coverage/","collectCoverageFrom":["src/**/*.{ts,tsx}","!src/**/*.d.ts","!**/node_modules/**"]},"gitHead":"8a06fe89182ab60ea248be63983d900b2eb92d06","_id":"https-did-resolver@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"mike.xu","email":"mike.xu@consensys.net"},"dist":{"integrity":"sha512-JdD4s17hwW8XdPf5L0yiSsuNBdBFSqxoP9hCZkxykrIANiXeBiAb2AwyiahhxiOiUdr5vU56djGMq2Yd1ehNrQ==","shasum":"ec4614e3b87c84d5de3505bc030300417779c16d","tarball":"https://registry.npmjs.org/https-did-resolver/-/https-did-resolver-1.0.0.tgz","fileCount":8,"unpackedSize":18606,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdWscVCRA9TVsSAnZWagAA2EwP/3vjKz2iwcTewv3bGRhl\nS33Kvhxui36q6BeTeDJ/vEXZ6yxWQ3easF2TFaoqtnx37xg0CNihBYCnfQzO\nozgUUrV+LLlgL44Zq49HUUV+eBSSOQGZ0R5f8OfCBuU+UAAkf6JnUiEZlgUz\nFMm8Ojqgt+jLeh1B6nvgRZ+hJqciRn2sCXm+iSmjpdvoMlhzH8hBNDZQFH6m\nioyzQiB12aIcK/FyreOjI4jJcn0TQykm9RxA2AW/NJRuZxfunmm2hl2oafkm\ndPrS89vYVSDaiCOxuU/aKy/TRg0GYQupJu06lkpjfbAa/3xgIdiko8R9p9K2\nJtxNf5yxOaLgG+50HtSJxh+qjvA+xSdh2LV390kh0z/l6YAUSXDYivMpsgQO\nH329vzKrZdrgUF0122AUa+x8HdnyWAYmviuOKGldLTIb5TqCUqivs4gfCdpf\nyJmceY5AY7jQbQOj8xB5WJ3JGNfYqhuZF8nbkjOGms2fWMSjrjvi4rtrFrhb\ntvIRnmxk5InXJSi0GvuqV7i6zH81hwBx5NNKg6s1v1CpQXWoiqyQX9L/yxG5\nw2TKHL7/jlpCUDUaIRClWckr9noq952brlk0ifdVg1ddTcjjWN0AC015mM8a\nifaa0dV+R1vILsgfXI5oj8zx6+wlZeOwgHh1tPj+XgbELWd5VUeX34flaF0R\n/ZhV\r\n=tJbS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICakUdImuUOW0nQrIdLApmZ5Jlsd5khMOAu0UL9psM0JAiB+UATCSEt8S4PA8gcGCd5JCo9Ci62AqhvZsrv9HGbVTA=="}]},"maintainers":[{"email":"aldigjo@gmail.com","name":"aldigjo"},{"email":"levi.strope@gmail.com","name":"localredhead"},{"email":"mike.xu@consensys.net","name":"mike.xu"},{"email":"pelleb@gmail.com","name":"pelleb"},{"email":"rob.whitaker.18@gmail.com","name":"rmw2"},{"email":"simonas@not.cat","name":"simonas-notcat"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/https-did-resolver_1.0.0_1566230292568_0.8381249416768779"},"_hasShrinkwrap":false}},"time":{"created":"2018-10-08T13:35:38.392Z","0.0.1":"2018-10-08T13:35:38.548Z","modified":"2022-07-07T12:05:44.220Z","0.0.2":"2018-10-10T20:06:30.982Z","0.0.3":"2018-10-16T19:05:42.366Z","0.1.0-alpha1":"2019-01-11T00:25:04.397Z","0.1.0":"2019-01-14T20:43:17.712Z","1.0.0":"2019-08-19T15:58:12.689Z"},"maintainers":[{"email":"simonas@not.cat","name":"simonas-notcat"},{"email":"mirceanis@gmail.com","name":"mirceanis"},{"email":"devops@uport.me","name":"uport-automation-bot"},{"email":"pelleb@gmail.com","name":"pelleb"},{"email":"mike.xu@consensys.net","name":"mike.xu"}],"description":"Resolve DID documents from an https domain","author":{"name":"Mike Xu","email":"mike.xu@consensys.net"},"license":"Apache-2.0","readme":"---\ntitle: \"HTTPS DID Resolver\"\nindex: 0\ncategory: \"https-did-resolver\"\ntype: \"reference\"\nsource: \"https://github.com/uport-project/https-did-resolver/blob/develop/README.md\"\n---\n\n# HTTPS DID Resolver\n\nThis library is intended to use domains accessed through https as [Decentralized Identifiers](https://w3c-ccg.github.io/did-spec/#decentralized-identifiers-dids) and retrieve an associated [DID Document](https://w3c-ccg.github.io/did-spec/#did-documents)\n\nIt supports the proposed [Decentralized Identifiers](https://w3c-ccg.github.io/did-spec/) spec from the [W3C Credentials Community Group](https://w3c-ccg.github.io).\n\nIt requires the `did-resolver` library, which is the primary interface for resolving DIDs.\n\n## DID method\n\nTo encode a DID for an HTTPS domain, simply prepend `did:https:` to domain name.\n\neg: `https://example.com -> did:https:example.com`\n\n## DID Document\n\nThe DID resolver takes the domain and forms a [well-known URI](https://tools.ietf.org/html/rfc5785) to access the DID Document.\n\nFor a did `did:https:example.com`, the resolver will attempt to access the document at `https://example.com/.well-known/did.json`\n\nA minimal DID Document might contain the following information:\n\n```js\n{\n  '@context': 'https://w3id.org/did/v1',\n  id: 'did:https:example.com',\n  publicKey: [{\n       id: 'did:https:example.com#owner',\n       type: 'Secp256k1VerificationKey2018',\n       owner: 'did:https:example.com',\n       ethereumAddress: '0xb9c5714089478a327f09197987f16f9e5d936e8a'}],\n  authentication: [{\n       type: 'Secp256k1SignatureAuthentication2018',\n       publicKey: 'did:https:example.com#owner'}]\n}\n```\n\nNote this uses the `Secp256k1VerificationKey2018` type and an `ethereumAddress` instead of a `publicKeyHex`, meaning that this DID is owned by an entity that controls the private key associated with that address.\n\n## Resolving a DID document\n\nThe resolver presents a simple `resolver()` function that returns a ES6 Promise returning the DID document.\n\n```js\nimport { Resolver } from 'did-resolver'\nimport getResolver from 'https-did-resolver'\n\nconst httpsResolver = getResolver()\nconst didResolver = new Resolver(httpsResolver)\ndidResolver.resolve('did:https:example.com').then(doc => console.log)\n\n// You can also use ES7 async/await syntax\nconst doc = await didResolver.resolve('did:https:example.com')\n```\n","readmeFilename":"README.md"}