import { Address, PrivKey } from './internal.js'; import { Point } from './support/ed25519.js'; /** * Aldea public key * * A public key is the X and Y coordinates of a point on Ed25519 curve. It is * serialized as the 32 byte Y coordinate, with the last byte encoding the sign * of X. */ export declare class PubKey { readonly point: Point; constructor(point: Point); /** * Returns a PubKey from the given bytes. */ static fromBytes(bytes: Uint8Array): PubKey; /** * Returns a PubKey from the given hex-encoded string. */ static fromHex(str: string): PubKey; /** * Returns a PubKey from the given bech32m-encoded string. */ static fromString(str: string): PubKey; /** * Returns a the giveb PrivKey's corresponding PubKey. */ static fromPrivKey(privKey: PrivKey): PubKey; /** * Point X coordiante */ get x(): bigint; /** * Point Y coordiante */ get y(): bigint; /** * checks if 2 pubkey objects represent the same point */ equals(another: PubKey): boolean; /** * Returns the PubKey's Address. */ toAddress(): Address; /** * Returns the PubKey as bytes. */ toBytes(): Uint8Array; /** * Returns the PubKey as hex-encoded string. */ toHex(): string; /** * Returns the PubKey as bech32m-encoded string. */ toString(): string; } //# sourceMappingURL=pubkey.d.ts.map