/** * Cryptographic operations for IoTeX SDK */ /** * Generate a new ECDSA key pair */ export declare function generateKeyPair(): { privateKey: string; publicKey: string; address: string; }; /** * Get public key from private key */ export declare function getPublicKey(privateKey: string): string; /** * Get IoTeX address from private key */ export declare function getAddress(privateKey: string): string; /** * Get Ethereum address from private key */ export declare function getEthAddress(privateKey: string): string; /** * Convert IoTeX address to Ethereum address */ export declare function toEthAddress(ioAddress: string): string; /** * Convert Ethereum address to IoTeX address */ export declare function toIoAddress(ethAddress: string): string; /** * Sign a message with Ethereum-style prefix */ export declare function signMessage(privateKey: string, message: string): Promise; /** * Verify a signature */ export declare function verifyMessage(message: string, signature: string, address: string): boolean; /** * Hash data using SHA256 */ export declare function hashSHA256(data: Buffer | string): Buffer; /** * Hash data using Keccak256 */ export declare function hashKeccak256(data: string | Uint8Array): string; /** * Encrypt data using AES-256-CFB */ export declare function encrypt(data: Buffer, key: Buffer): Buffer; /** * Decrypt data using AES-256-CFB */ export declare function decrypt(data: Buffer, key: Buffer): Buffer; /** * Derive encryption key from password using SHA256 */ export declare function deriveKeyFromPassword(password: string): Buffer; /** * Sign action (transaction) with private key */ export declare function signAction(serializedAction: Buffer, privateKey: string): string; //# sourceMappingURL=crypto.d.ts.map