/// import { Point } from './point'; /** * Minimal secp256k1 elliptic curve implementation. Thanks to the following projects: * - https://github.com/Azero123/simple-js-ec-math * - https://github.com/indutny/elliptic */ export interface Curve { readonly g: Point; readonly a: bigint; readonly b: bigint; readonly n: bigint; readonly p: bigint; } /** * Get a point from an x and y coordinate. * * @param {Buffer | bigint} x * @param {Buffer | bigint} y * @return {Point} */ export declare const getPoint: (x: Buffer | bigint, y: Buffer | bigint) => Point; /** * Get a point from an x coordinate. * * @param {Curve} curve * @param {Buffer | bigint} xBuffer * @param {boolean} isOdd * @return {Point} */ export declare const getPointFromX: (curve: Curve, xBuffer: Buffer | bigint, isOdd: boolean) => Point; /** * Decode a point from a SEC1 encoded Buffer. Throws if the format is unknown. * * @param {Curve} curve * @param {Buffer} bytes * @return {Point} */ export declare const decodePoint: (curve: Curve, bytes: Buffer) => Point;