@beraji/wallet-sdk
Version:
Beraji: Distributed Secret Sharing.
19 lines (18 loc) • 673 B
TypeScript
import { BWallet } from '../bwallet';
import { IUser } from '../types';
import { BAuth, BNet } from './constants';
export declare class BUser extends BAuth {
constructor(params: {
net: BNet;
token: string;
});
static fromSigner(net: BNet, signer: BWallet): Promise<BUser>;
backupWallet(signer: BWallet, password: string): Promise<import("axios").AxiosResponse<{
user: IUser;
}, any>>;
recoverPrivateKey(password: string): Promise<BWallet>;
approveSession(sessionId: string): Promise<import("axios").AxiosResponse<any, any>>;
getUserInfo(): Promise<import("axios").AxiosResponse<{
user: IUser;
}, any>>;
}