UNPKG

iso-did

Version:

Isomorphic did core and did key tooling

42 lines 1.21 kB
export * from "./common.js"; /** * did:pkh Method * * @see https://github.com/w3c-ccg/did-pkh/blob/main/did-pkh-method-draft.md * * @implements {T.VerifiableDID} */ export class DIDPkh extends DIDCore implements T.VerifiableDID { /** * Create a DIDKey from a DID string * * @param {string} didString */ static fromString(didString: string): DIDPkh; /** * Create a DIDPkh from an address * * @param {`0x${string}`} address * @param {number | `0x${string}`} [chainId] * @param {string} namespace */ static fromAddress(address: `0x${string}`, chainId?: number | `0x${string}`, namespace?: string): DIDPkh; namespace: string; chainId: string; address: `0x${string}`; /** @type {T.KeyType} */ type: T.KeyType; publicKey: Uint8Array<ArrayBuffer>; didObject: T.DIDURLObject; verifiableDid: this; /** * * @returns {T.DIDDocument} */ get document(): T.DIDDocument; } /** @type {import('did-resolver').ResolverRegistry} */ export const resolver: import("did-resolver").ResolverRegistry; import * as T from './types.js'; import { DIDCore } from './core.js'; //# sourceMappingURL=pkh.d.ts.map