chaingate
Version:
A complete TypeScript library for connecting to and making transactions on different blockchains
14 lines (13 loc) • 1.06 kB
TypeScript
import { Seed } from '../../entities/Secret/implementations/Seed';
import { SerializedWallet } from '../../Wallet';
import { SeedableWallet, SerializedSeedableWallet } from '../../abstract/SeedableWallet';
import { Encrypted } from '../../entities/WalletEncryption/Encrypted';
import { Encrypt } from '../../entities/WalletEncryption/WalletEncryption';
import { ChainGateContext } from '../../../Currencies/CurrencyUtils/ChainGateContext';
export declare class SeedWallet extends SeedableWallet {
constructor(context: ChainGateContext, secret: Seed | Encrypted, askForPassword?: (attempts: number, reject: () => void) => Promise<string>);
protected serializeInternal(): Promise<SerializedWallet>;
getSeed(): Promise<Seed>;
static new(context: ChainGateContext, seed: string | Uint8Array, warnAboutUnencrypted: boolean, encrypt?: Encrypt): Promise<SeedWallet>;
static import(context: ChainGateContext, exported: SerializedSeedableWallet, askForPassword: (attempts: number, reject: () => void) => Promise<string>): Promise<SeedWallet>;
}