import { ec } from 'elliptic'; import type { curve } from 'elliptic'; export declare const secp256k1: ec; /** * Get a Uint8Array for a public key. * * @param {ec.KeyPair} keyPair * @param {boolean} compact * @return {Uint8Array} */ export declare const publicToBuffer: (keyPair: ec.KeyPair, compact: boolean) => Uint8Array; /** * Get a Uint8Array for a private key. * * @param {ec.KeyPair} keyPair * @return {Uint8Array} */ export declare const privateToBuffer: (keyPair: ec.KeyPair) => Uint8Array; /** * Get a Uint8Array for a point. * * @param {curve.base.BasePoint} point * @param {boolean} compact * @return {Uint8Array} */ export declare const pointToBuffer: (point: curve.base.BasePoint, compact: boolean) => Uint8Array; /** * Compress a public key. This function takes both compressed and uncompressed public keys, and always returns the * compressed variant. * * @param publicKey */ export declare const compressPublicKey: (publicKey: Uint8Array) => Uint8Array; /** * Decompress a public key. This function takes both compressed and uncompressed public keys, and always returns the * decompressed variant. * * @param {Uint8Array} publicKey * @return {Uint8Array} */ export declare const decompressPublicKey: (publicKey: Uint8Array) => Uint8Array; /** * Get the public key for a private key. * * @param {Uint8Array} privateKey * @return {Uint8Array} */ export declare const getPublicKey: (privateKey: Uint8Array) => Uint8Array; /** * Get the fingerprint from a public key. * * @param {Uint8Array} publicKey * @return {number} */ export declare const getFingerprint: (publicKey: Uint8Array) => number; /** * Add a tweak to a private key. This function throws if the result is invalid. * * @param {Uint8Array} privateKey * @param {Uint8Array} tweak * @return {Uint8Array} */ export declare const privateAdd: (privateKey: Uint8Array, tweak: Uint8Array) => Uint8Array; /** * Add a point to a public key. This function throws if the result is invalid. * * @param {Uint8Array} publicKey * @param {Uint8Array} tweak * @return {Uint8Array} */ export declare const publicAdd: (publicKey: Uint8Array, tweak: Uint8Array) => Uint8Array;