eccVerify
函数ECDSA 验签(SHA-256)。
签名
function eccVerify(message: string, signature: string, publicKey: string, curve?: ECCCurve): Promise<boolean>参数
| 名称 | 类型 | 描述 |
|---|---|---|
| message | string | 原始消息 |
| signature | string | Base64 编码的签名 |
| publicKey | string | Base64 编码的 SPKI 公钥 |
| curve可选 | ECCCurve 默认值:'P-256' | 椭圆曲线,默认 P-256 |
返回值
Promise<boolean>
签名是否有效
源码
packages/encryptor/src/ECCHelper.ts:91