/// import { AddressFormat, DefaultKeys, KeyPairOptions, Secp256k1ExtendedKeyPair } from '@aloe2/sdk-core'; /** * Tron keys and address management. */ export declare class KeyPair extends Secp256k1ExtendedKeyPair { /** * Public constructor. By default, creates a key pair with a random master seed. * * @param {KeyPairOptions} source Either a master seed, a private key (extended or raw), or a public key * (extended, compressed, or uncompressed) */ constructor(source?: KeyPairOptions); /** * Tron default keys format is raw private and uncompressed public key * * @returns {DefaultKeys} The keys in the protocol default key format */ getKeys(): DefaultKeys; /** * Get a public address in the specified format, or in base58 if none is provided. * * @param {AddressFormat} format The address specified format * @returns {string} The public address in the specified format */ getAddress(format?: AddressFormat): string; /** * Generates a signature for an arbitrary string with the current private key using keccak256 * hashing algorithm. Throws if there is no private key. * * @param {string} message to produce a signature for * @returns {Buffer} The signature as a buffer */ signMessage(message: string): Buffer; /** * Verifies a message signature using the current public key. * * @param {string} message signed * @param {Buffer} signature to verify * @returns {boolean} True if the message was signed with the current key pair */ verifySignature(message: string, signature: Buffer): boolean; } //# sourceMappingURL=keyPair.d.ts.map