This commit is contained in:
parent
cd5fe4cee5
commit
c9d66a77b1
4
src/types/sm-crypto.d.ts
vendored
4
src/types/sm-crypto.d.ts
vendored
@ -8,8 +8,8 @@ declare module 'sm-crypto' {
|
||||
generateKeyPairHex: (privateKey?: string) => SM2KeyPair;
|
||||
doEncrypt: (message: string, publicKey: string) => string;
|
||||
doDecrypt: (ciphertext: string, privateKey: string) => string;
|
||||
doSignature: (message: string, privateKey: string, options?: { hash?: boolean, der?: boolean, userId?: string, publicKey?: string, pointPool?: any[] }) => string;
|
||||
doVerifySignature: (message: string, signature: string, publicKey: string, options?: { hash?: boolean, der?: boolean, userId?: string }) => boolean;
|
||||
doSignature: (message: string | Uint8Array, privateKey: string, options?: { hash?: boolean, der?: boolean, userId?: string, publicKey?: string, pointPool?: any[] }) => string;
|
||||
doVerifySignature: (message: string | Uint8Array, signature: string, publicKey: string, options?: { hash?: boolean, der?: boolean, userId?: string }) => boolean;
|
||||
};
|
||||
|
||||
export const sm3: {
|
||||
|
||||
@ -1 +1 @@
|
||||
export const VERSION = "V1.0-20260418023820";
|
||||
export const VERSION = "V1.0-20260418053331";
|
||||
Loading…
Reference in New Issue
Block a user