chaingate
Version:
Multi-chain cryptocurrency SDK for TypeScript — unified API for Bitcoin, Ethereum, Litecoin, Dogecoin, Bitcoin Cash, Polygon, Arbitrum, and any EVM-compatible chain. Create wallets, query balances, send transactions, and manage tokens and NFTs across UTXO
22 lines (21 loc) • 570 B
TypeScript
/**
* A public key. Accepts both compressed and uncompressed formats (hex or bytes).
*
* @example
* ```ts
* const pk = new PublicKey('02deadbeef...');
* console.log(pk.hex);
* ```
*/
export declare class PublicKey {
private readonly _data;
/**
* @param source - Hex string or `Uint8Array`.
* @throws {@link InvalidPublicKeyError} if invalid.
*/
constructor(source: string | Uint8Array);
/** The compressed public key as raw bytes. */
get raw(): Uint8Array;
/** The compressed public key as hex. */
get hex(): string;
}