package
Version:
v2.0.10
Opens a new window with list of versions in this module.
Published: Jan 11, 2025
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
SignData 使用ECDSA私钥为数据签名
参数:
- privateKey: ECDSA私钥
- data: 待签名的数据
返回值:
- []byte: ASN.1格式的签名
- error: 错误信息
VerifySignature 使用ECDSA公钥验证数据的签名
参数:
- publicKey: ECDSA公钥
- data: 原始数据
- signature: ASN.1格式的签名
返回值:
Source Files
¶
Click to show internal directories.
Click to hide internal directories.