did-sdk-dev
Version:
SAN did sdk
15 lines (14 loc) • 477 B
TypeScript
export declare class utils {
newDid: () => string;
newAccount: () => string;
getAccount: (did: string) => string;
getDocumentKey: (publicKey: any[], id: string) => any;
getDidByKeyId: (keyId: string) => string;
setDocumentKey: (publicKey: any[], key: any, keyId: string) => any[];
proof: (msg: any, creator: string, hexPriKey: string) => TProof;
}
export declare type TProof = {
type: string;
creator: string;
signatureValue: string;
};