UNPKG

@ew-did-registry/did

Version:
17 lines (16 loc) 467 B
import { ChainInfo } from '../models'; export declare const didPattern = "^did:[a-z0-9]+?:?[a-z0-9]+?:(0x[A-Fa-f0-9]{40})$"; /** * Checks if did is valid and returns the did method * * @param did * @returns {string} */ export declare function getDIDMethod(did: string): string; /** * Checks if did is valid and returns the chain did is associated with it * * @param did * @returns {ChainInfo} */ export declare function getDIDChain(did: string): ChainInfo;