UNPKG

@atproto/did

Version:

DID resolution and verification library

14 lines 647 B
import { Did } from '../did.js'; export declare const DID_WEB_PREFIX = "did:web:"; /** * This function checks if the input is a valid Web DID, as per DID spec. */ export declare function isDidWeb(input: unknown): input is Did<'web'>; export declare function asDidWeb<T>(input: T): T & `did:web:${string}`; export declare function assertDidWeb(input: unknown): asserts input is Did<'web'>; export declare function didWebToUrl(did: Did<'web'>): URL & { protocol: "http:" | "https:"; }; export declare function urlToDidWeb(url: URL): Did<'web'>; export declare function buildDidWebUrl(did: Did<'web'>): string; //# sourceMappingURL=web.d.ts.map