/// import { Curve } from './curve'; /** * All parameters defined by the Secp256k1 curve. */ export declare const secp256k1: Curve; /** * Derive the public key from a private key. Returns the public key in compressed form. * * @param {Buffer} privateKey * @return {Buffer} */ export declare const getPublicKey: (privateKey: Buffer) => Buffer; export declare const getAddress: (publicKey: Buffer) => string; /** * Add a tweak to the private key. Will throw an error if the resulting key is invalid, e.g. when the tweak is larger * than n, or if Ki = 0. * * @param {Buffer} privateKey * @param {Buffer} tweakBuffer * @return {Buffer} */ export declare const privateAdd: (privateKey: Buffer, tweakBuffer: Buffer) => Buffer; /** * Add a tweak to the public key. Will throw an error if the resulting key is invalid, e.g. when the tweak is larger * than n, or if Ki is the point at infinity. * * @param {Buffer} publicKey * @param {Buffer} tweakBuffer * @return {Buffer} */ export declare const publicAdd: (publicKey: Buffer, tweakBuffer: Buffer) => Buffer; /** * Get the compressed public key from a decompressed public key. Throws if the key is invalid. * * @param {Buffer} publicKey * @return {Buffer} */ export declare const compressPublicKey: (publicKey: Buffer) => Buffer; /** * Get the decompressed public key from a compressed public key. Throws if the public key is invalid. * * @param {Buffer} publicKey * @return {Buffer} */ export declare const decompressPublicKey: (publicKey: Buffer) => Buffer;