UNPKG

@paragon-wallet/novo-simple-keyring

Version:

A simple standard interface for a series of Novo private keys.

22 lines (21 loc) 886 B
/// <reference types="node" /> import * as novo from "@paragon-wallet/novocore-lib"; import { EventEmitter } from "events"; export declare class SimpleKeyring extends EventEmitter { static type: string; type: string; network: "mainnet" | "testnet"; wallets: novo.PrivateKey[]; constructor(opts: any); serialize(): Promise<any>; deserialize(opts: any): Promise<void>; addAccounts(n?: number): Promise<string[]>; getAccounts(): Promise<string[]>; signTransaction(address: string, tx: novo.Transaction): Promise<novo.Transaction>; signMessage(address: string, message: string): Promise<string>; verifyMessage(withAccount: string, message: string, sig: string): Promise<boolean>; private _getPrivateKeyFor; exportAccount(address: string): Promise<string>; removeAccount(address: string): void; private _getWalletForAccount; }