UNPKG

@planetarium/account

Version:
22 lines (21 loc) 710 B
import Address from "./Address.js"; import { Message } from "./Message.js"; import PublicKey from "./PublicKey.js"; import Signature from "./Signature.js"; export declare class RawPrivateKey { #private; private constructor(); static fromBytes(bytes: Uint8Array): RawPrivateKey; static fromHex(hex: string): RawPrivateKey; static generate(): RawPrivateKey; getAddress(): Promise<Address>; /** * @deprecated Use {@link getPublicKey()} instead. */ get publicKey(): PublicKey; getPublicKey(): Promise<PublicKey>; sign(message: Message): Promise<Signature>; exportPrivateKey(): Promise<RawPrivateKey>; toBytes(): Uint8Array; } export default RawPrivateKey;