
Security News
ESLint Adds Official Support for Linting HTML
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
pkh-did-resolver
Advanced tools
This package contains did:pkh method resolver implementation. Please refer to the specification for details about how this DID method works.
This package is used as a plugin to the did-resolver
library, which is the primary interface for resolving DIDs.
$ npm install pkh-did-resolver
import { Resolver } from 'did-resolver'
import { getResolver } from 'pkh-did-resolver'
const pkhResolver = getResolver()
const resolver = new Resolver(pkhResolver)
const didResolutionResult = await resolver.resolve('did:pkh:eip155:1:0xab16a96d359ec26a11e2c2b3d8f8b8942d5bfcdb')
Result:
{
"didDocument": {
"assertionMethod": [
"did:pkh:eip155:1:0xab16a96d359ec26a11e2c2b3d8f8b8942d5bfcdb#blockchainAccountId",
],
"authentication": [
"did:pkh:eip155:1:0xab16a96d359ec26a11e2c2b3d8f8b8942d5bfcdb#blockchainAccountId",
],
"id": "did:pkh:eip155:1:0xab16a96d359ec26a11e2c2b3d8f8b8942d5bfcdb",
"verificationMethod": [{
"blockchainAccountId": "eip155:1:0xab16a96d359ec26a11e2c2b3d8f8b8942d5bfcdb",
"controller": "did:pkh:eip155:1:0xab16a96d359ec26a11e2c2b3d8f8b8942d5bfcdb",
"id": "did:pkh:eip155:1:0xab16a96d359ec26a11e2c2b3d8f8b8942d5bfcdb#blockchainAccountId",
"type": "EcdsaSecp256k1RecoveryMethod2020",
}],
},
"didDocumentMetadata": {},
"didResolutionMetadata": {
"contentType": "application/did+json",
},
}
See the dids developer site for more details about how to use this package.
We are happy to accept small and large contributions
Apache-2.0 OR MIT
FAQs
did:pkh method resolver
The npm package pkh-did-resolver receives a total of 2,396 weekly downloads. As such, pkh-did-resolver popularity was classified as popular.
We found that pkh-did-resolver demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.