{"_id":"@civic/pkh-did-resolver","_rev":"17-ad8d98e0a1047df1e040ea2c283ac921","name":"@civic/pkh-did-resolver","dist-tags":{"latest":"1.2.0"},"versions":{"1.2.0":{"name":"@civic/pkh-did-resolver","version":"1.2.0","keywords":["ceramic","did:pkh","did","pkh"],"author":{"name":"Joel Thorstensson","email":"oed@3box.io"},"license":"(Apache-2.0 OR MIT)","_id":"@civic/pkh-did-resolver@1.2.0","maintainers":[{"name":"ndrabins","email":"noah.drabinsky1@gmail.com"},{"name":"dmelosantos","email":"danielmelos@gmail.com"},{"name":"jp-civic","email":"jp@civic.com"},{"name":"chriteixeira","email":"chriteixeira@gmail.com"},{"name":"daneel","email":"daneel@civic.com"},{"name":"leolangen","email":"leo@civic.com"},{"name":"mitchcivic","email":"mitch@civic.com"},{"name":"dankelleher","email":"dankelleher@yahoo.com"},{"name":"jonthepilot","email":"jonathan@civic.com"},{"name":"rado0x54","email":"web@riedel-it.de"},{"name":"araptarchis","email":"alexis.raptarchis@googlemail.com"},{"name":"civicfinance","email":"camille@civic.com"},{"name":"kevinhcolgan","email":"kevin@civic.com"},{"name":"flippiescholtz","email":"flippie@civic.com"},{"name":"tyronemichael","email":"tyronemichael@gmail.com"},{"name":"lucmir","email":"luccmir@gmail.com"},{"name":"william-identity","email":"william@identity.org"}],"homepage":"https://3boxlabs.com","dist":{"shasum":"c3b396913ed19446c248c847ee42b0e3e4607f0b","tarball":"https://registry.npmjs.org/@civic/pkh-did-resolver/-/pkh-did-resolver-1.2.0.tgz","fileCount":4,"integrity":"sha512-UVZHrEDeVg4c/fVNGtvHZhty6ab24WzaCFwfuFXvsg94jN9qDKFrAyuKudfc2Ner12CVbpbOXAKscbcHvEJVMg==","signatures":[{"sig":"MEQCIDvKsyrmAzQUsotYfzwk5ETjrfzFc9Wc7rET4LqNNhf1AiAtz8fPI+fPira/DYbsv0dpapHKwClhUpf0C67ahY0TwQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10274,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj09ReACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrzPA//adRSxyOTK9KuqjC65B1zh+7OipkWPPFA0QkoKowLGyF9Hay3\r\niKiJCWDQ6h9zVKVy9Jfuw+NzenIJYwcmOwGTHWdXunN43HrLIrk10/1favTB\r\nGqIngBd3zkx+YgZCPMuXD9ROe2zsoNR7hQt3c2OdjHNYAua46yzaK8cEIWV9\r\n5bkIi7b70RkgYzn3XxnFnj0yqtPxgJkIRb9MNBGFql9Di65E+LSVwJejG2jj\r\nB29mur4JnJbqQl1DzWTAbnIrpr3nJJ/vOI5vCzP4WBHTk+i0cAhXEXY34hdT\r\nAqNY/4RLHTxXXVbe+r8N9otArbD+j1QTz6KfyLd3sBMJ5FnyNRYQxGYHN/oC\r\nMkiKd88KpacPzT0JPkf/R3uphShecaIYLBmGVoL7wpsmQUgrBAXcgL0cZSva\r\n37hZ4gU0uNd/kSzOQOAu2gaHFeNkRLZxxpLtvLcwzzIkhfQCmOiKDBUWpM6/\r\ntnG5tcmG58946R05wRUeNejRWz3ylr034IBCiKl9qHSHC30lawsGy6gAoclB\r\nVfGxF2UXbhXL8PdINpNrVxzKzw/NvZSm9VttfRJ3oSMUxY4i/qrBce3SytqL\r\nsCVDJUOd19JkOcX4d4AoT8zxtpjnZo7NrB/LwQgJ5HO5AEJN1XNPkCBnXpBW\r\nHiuuew6ot8nOkzBRCcnVqTy18RonZkjIzKg=\r\n=mD8R\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:civic-pkh-did-resolver-1.2.0.tgz","types":"dist/index.d.ts","engines":{"node":">=14.14"},"scripts":{"lint":"eslint src --fix","size":"size-limit","test":"node --experimental-vm-modules ../../node_modules/jest/bin/jest.js","build":"pnpm run build:clean && pnpm run build:types && pnpm run build:js","analyze":"size-limit --why","test:ci":"pnpm run test --ci --coverage","build:js":"swc src -d ./dist --config-file ../../.swcrc","build:clean":"del dist","build:types":"tsc --emitDeclarationOnly --skipLibCheck"},"_npmUser":{"name":"dankelleher","email":"dankelleher@yahoo.com"},"_resolved":"/private/var/folders/f5/jkflt8nd0pj9h2l2l_yv_3c80000gn/T/d0aa8f9fb7ccc927f4a24817567c52b4/civic-pkh-did-resolver-1.2.0.tgz","_integrity":"sha512-UVZHrEDeVg4c/fVNGtvHZhty6ab24WzaCFwfuFXvsg94jN9qDKFrAyuKudfc2Ner12CVbpbOXAKscbcHvEJVMg==","_npmVersion":"8.15.0","description":"did:pkh method resolver","directories":{},"sideEffects":false,"_nodeVersion":"16.17.1","dependencies":{"caip":"~1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"did-resolver":"^3.1.5"},"_npmOperationalInternal":{"tmp":"tmp/pkh-did-resolver_1.2.0_1674826846572_0.8138198012171316","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-01-27T13:40:46.512Z","modified":"2026-05-10T06:05:31.164Z","1.2.0":"2023-01-27T13:40:46.722Z"},"author":{"name":"Joel Thorstensson","email":"oed@3box.io"},"license":"(Apache-2.0 OR MIT)","homepage":"https://3boxlabs.com","keywords":["ceramic","did:pkh","did","pkh"],"description":"did:pkh method resolver","maintainers":[{"email":"dankelleher@yahoo.com","name":"dankelleher"},{"email":"jonathan@civic.com","name":"jonthepilot"},{"email":"camille@civic.com","name":"civicfinance"},{"email":"kevin@civic.com","name":"kevinhcolgan"},{"email":"flippie@civic.com","name":"flippiescholtz"},{"email":"luccmir@gmail.com","name":"lucmir"},{"email":"chriteixeira@gmail.com","name":"chriteixeira"},{"email":"web@riedel-it.de","name":"rado0x54"}],"readme":"# PKH DID Method Resolver\n[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)\n[![](https://img.shields.io/badge/Chat%20on-Discord-orange.svg?style=flat)](https://discord.gg/6VRZpGP)\n[![npm](https://img.shields.io/npm/dt/pkh-did-resolver.svg)](https://www.npmjs.com/package/pkh-did-resolver)\n[![npm](https://img.shields.io/npm/v/pkh-did-resolver.svg)](https://www.npmjs.com/package/pkh-did-resolver)\n\nThis package contains did:pkh method resolver implementation. Please refer to the [specification](https://github.com/w3c-ccg/did-pkh/blob/main/did-pkh-method-draft.md) for details about how this DID method works.\n\n## Usage\nThis package is used as a plugin to the [`did-resolver`](https://github.com/decentralized-identity/did-resolver) library, which is the primary interface for resolving DIDs.\n\n### Installation\n```\n$ npm install pkh-did-resolver\n```\n\n### Resolving a PKH DID\n\n```js\nimport { Resolver } from 'did-resolver'\nimport { getResolver } from 'pkh-did-resolver'\n\nconst pkhResolver = getResolver()\nconst resolver = new Resolver(pkhResolver)\n\nconst didResolutionResult = await resolver.resolve('did:pkh:eip155:1:0xab16a96d359ec26a11e2c2b3d8f8b8942d5bfcdb')\n```\n\nResult:\n```js\n{\n  \"didDocument\": {\n    \"assertionMethod\": [\n      \"did:pkh:eip155:1:0xab16a96d359ec26a11e2c2b3d8f8b8942d5bfcdb#blockchainAccountId\",\n    ],\n    \"authentication\": [\n      \"did:pkh:eip155:1:0xab16a96d359ec26a11e2c2b3d8f8b8942d5bfcdb#blockchainAccountId\",\n    ],\n    \"id\": \"did:pkh:eip155:1:0xab16a96d359ec26a11e2c2b3d8f8b8942d5bfcdb\",\n    \"verificationMethod\": [{\n      \"blockchainAccountId\": \"eip155:1:0xab16a96d359ec26a11e2c2b3d8f8b8942d5bfcdb\",\n      \"controller\": \"did:pkh:eip155:1:0xab16a96d359ec26a11e2c2b3d8f8b8942d5bfcdb\",\n      \"id\": \"did:pkh:eip155:1:0xab16a96d359ec26a11e2c2b3d8f8b8942d5bfcdb#blockchainAccountId\",\n      \"type\": \"EcdsaSecp256k1RecoveryMethod2020\",\n    }],\n  },\n  \"didDocumentMetadata\": {},\n  \"didResolutionMetadata\": {\n    \"contentType\": \"application/did+json\",\n  },\n}\n```\n\n## Additional Usage Notes\nSee the [dids developer site](https://did.js.org/) for more details about how to use this package.\n\n## Contributing\nWe are happy to accept small and large contributions\n\n## License\nApache-2.0 OR MIT\n","readmeFilename":"README.md"}