@nekoproject/wallets
Version:
Cross-chain Wallet
23 lines • 822 B
TypeScript
/// <reference types="node" />
export declare abstract class Wallet {
private _wallet;
constructor(wallet: any);
get address(): string;
get signer(): any;
getPrivateKey(): string;
getSeedsPhrase(): {
phrase: string;
path?: string;
locale?: string;
};
getSecretKey(): Uint8Array;
static validate(privateKey: string): boolean;
static generateWallet(): Wallet;
static fromSeed(seed: Uint8Array): Wallet;
static fromSecretKey(secretKey: Uint8Array): Wallet;
static fromPrivateKey(secretKey: string): Wallet;
static mnemonicToSeed(mnemonic: string): Promise<Buffer>;
static fromMnemonic(mnemonic: string): Promise<Wallet>;
static generateWalletWithIndex(seed: Buffer, index: number): Promise<Wallet>;
}
//# sourceMappingURL=Wallet.d.ts.map