UNPKG

lotus-sdk

Version:

Central repository for several classes of tools for integrating with, and building for, the Lotusia ecosystem

23 lines 779 B
import { PrivateKey } from './privatekey.js'; import { Address } from './address.js'; export declare class Message { private _message; error?: string; static readonly MAGIC_BYTES: Buffer<ArrayBuffer>; constructor(message: string); magicHash(): Buffer; private _sign; sign(privateKey: PrivateKey): string; private _verify; verify(bitcoinAddress: Address | string, signatureString: string): boolean; recoverPublicKey(bitcoinAddress: Address | string, signatureString: string): string; static fromString(str: string): Message; static fromJSON(json: string | object): Message; toObject(): { message: string; }; toJSON(): string; toString(): string; inspect(): string; } //# sourceMappingURL=message.d.ts.map