From c9d66a77b17dc574e29e29bfaaad532ec5e370df Mon Sep 17 00:00:00 2001 From: cheney Date: Sat, 18 Apr 2026 13:34:02 +0800 Subject: [PATCH] fix build bug --- src/types/sm-crypto.d.ts | 4 ++-- src/version.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/types/sm-crypto.d.ts b/src/types/sm-crypto.d.ts index c9c399a..1662553 100644 --- a/src/types/sm-crypto.d.ts +++ b/src/types/sm-crypto.d.ts @@ -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: { diff --git a/src/version.js b/src/version.js index 70841ac..3feece3 100644 --- a/src/version.js +++ b/src/version.js @@ -1 +1 @@ -export const VERSION = "V1.0-20260418023820"; \ No newline at end of file +export const VERSION = "V1.0-20260418053331"; \ No newline at end of file