UNPKG

did-sdk-dev

Version:
14 lines (13 loc) 612 B
import { Numeric } from 'icbsc.js'; export declare class crypto { newKey: () => { type: Numeric.KeyType; priKey: string; pubKey: string; }; sign: (msgStr: string, hexPriKey: string, type?: Numeric.KeyType) => string; verify: (msgStr: string, signHex: string, hexPubKey: string, type?: Numeric.KeyType) => boolean; keyToChainKey: (hexKey: string, isPrivate: boolean, type?: Numeric.KeyType) => string; encrypt: (msgStr: string, hexPubKey: string, type?: Numeric.KeyType) => string; decrypt: (msg: string, hexPriKey: string, type?: Numeric.KeyType) => string; }