{"dist":{"shasum":"868669073de6e837cf072c91d3979f7967cc8599","tarball":"https://registry.npmjs.org/https-did-resolver/-/https-did-resolver-0.1.0-alpha1.tgz","fileCount":5,"integrity":"sha512-mXwb7BpGpY5UqRtzRqgYp0By301McUKftPzPXEX0n8QLnipjO//Jui+1tSsEbPqkHHSrmS0EQwAlguQ5dIHIZQ==","signatures":[{"sig":"MEUCIQCMM8ujSdbQLJZOCzx8Q/W6TUTlwFemNOWUfNDyru2EIAIgVg42iLSfubxg23CiqsUzgHjVNMnUEjHnmLi3mUtDIVE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"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"},"jest":{"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","transform":{"^.+\\.tsx?$":"ts-jest"},"coverageDirectory":"./coverage/","collectCoverageFrom":["src/**/*.{ts,tsx}","!src/**/*.d.ts","!**/node_modules/**"],"moduleFileExtensions":["ts","tsx","js","jsx","json"]},"main":"lib/register.js","name":"https-did-resolver","types":"lib/register.d.ts","author":{"name":"Mike Xu","email":"mike.xu@consensys.net"},"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","browser":{"xmlhttprequest":false},"gitHead":"1ff3dacb8b6d8414cf747810657d6e01a1530fcd","license":"Apache-2.0","scripts":{"dev":"tsc --watch","test":"jest","build":"tsc","format":"prettier"},"_npmUser":{"name":"pelleb","email":"pelleb@gmail.com"},"_npmVersion":"6.4.1","description":"Resolve DID documents from an https domain","directories":{},"maintainers":[{"name":"mike.xu","email":"mike.xu@consensys.net"},{"name":"pelleb","email":"pelleb@gmail.com"}],"_nodeVersion":"11.5.0","dependencies":{"did-resolver":"0.0.6-alpha5","xmlhttprequest":"^1.8.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","tslint":"^5.12.0","ts-jest":"^23.10.5","prettier":"^1.15.3","xhr-mock":"^2.4.1","typescript":"^3.2.2","@types/jest":"^23.3.10","regenerator-runtime":"^0.12.1","tslint-eslint-rules":"^5.4.0","tslint-config-prettier":"^1.17.0"},"_npmOperationalInternal":{"tmp":"tmp/https-did-resolver_0.1.0-alpha1_1547166304194_0.11385499968325918","host":"s3://npm-registry-packages"},"_id":"https-did-resolver@0.1.0-alpha1","version":"0.1.0-alpha1"}