/** * forked from https://github.com/EOSIO/eosjs/blob/master/src/eosjs-key-conversions.ts * * rewrite curves */ import { Key, KeyType } from "./eosjs-numeric"; import { ProjPointType, CurveFn } from "@noble/curves/abstract/weierstrass.js"; import { PublicKey, Signature } from "./eosjs-key-conversions"; /** Represents/stores a private key and provides easy conversion for use with `elliptic` lib */ export declare class PrivateKey { private key; private ec; constructor(key: Key, ec: CurveFn); /** Instantiate private key from an EOSIO-format private key */ static fromString(keyString: string, ec?: CurveFn): PrivateKey; /** Export private key as `elliptic`-format private key */ toPoint(): ProjPointType; /** Get key type from key */ getType(): KeyType; /** Retrieve the public key from a private key */ getPublicKey(): PublicKey; /** Sign a message or hashed message digest with private key */ sign(data: string | Uint8Array, shouldHash?: boolean, encoding?: BufferEncoding): Signature; /** Validate a private key */ isValid(): boolean; }