@ew-did-registry/did
Version:
The interface of a Decentralised Identity
27 lines (26 loc) • 670 B
TypeScript
export interface IDidStore {
[key: string]: string;
}
export declare enum Methods {
Erc725 = "erc725",
Erc1056 = "ethr",
Jolocom = "jolo"
}
export declare enum Chain {
EWC = "ewc",
VOLTA = "volta"
}
export declare const DID_SCHEME_PATTERNS: {
NETWORK: RegExp;
/**
* DID specification rule for method-specific-id
* DID specification rule for method-name
* The pattern allows an empty identifier to identify a method or did-registry
* See [Issue 34] {@link https://github.com/w3c/did-core/issues/34}
*/
ID: RegExp;
};
export type ChainInfo = {
foundChainInfo: boolean;
chainInfo: string | undefined;
};