import { ECCurveFp } from './ec'; /** * 获取公共椭圆曲线 */ declare function getGlobalCurve(): ECCurveFp; /** * 生成ecparam */ declare function generateEcparam(): { curve: ECCurveFp; G: any; n: any; }; /** * 生成密钥对:publicKey = privateKey * G */ declare function generateKeyPairHex(a: any, b: any, c: any): { privateKey: any; publicKey: string; }; /** * 生成压缩公钥 */ declare function compressPublicKeyHex(s: any): string; /** * utf8串转16进制串 */ declare function utf8ToHex(input: any): string; /** * 补全16进制字符串 */ declare function leftPad(input: any, num: any): any; /** * 转成16进制串 */ declare function arrayToHex(arr: any): any; /** * 转成utf8串 */ declare function arrayToUtf8(arr: any): string; /** * 转成字节数组 */ declare function hexToArray(hexStr: any): never[]; /** * 验证公钥是否为椭圆曲线上的点 */ declare function verifyPublicKey(publicKey: any): any; /** * 验证公钥是否等价,等价返回true */ declare function comparePublicKeyHex(publicKey1: any, publicKey2: any): any; declare const _default: { getGlobalCurve: typeof getGlobalCurve; generateEcparam: typeof generateEcparam; generateKeyPairHex: typeof generateKeyPairHex; compressPublicKeyHex: typeof compressPublicKeyHex; utf8ToHex: typeof utf8ToHex; leftPad: typeof leftPad; arrayToHex: typeof arrayToHex; arrayToUtf8: typeof arrayToUtf8; hexToArray: typeof hexToArray; verifyPublicKey: typeof verifyPublicKey; comparePublicKeyHex: typeof comparePublicKeyHex; }; export default _default;