UNPKG

@beraji/wallet-sdk

Version:

Beraji: Distributed Secret Sharing.

22 lines (21 loc) 612 B
import { IApplication, IPlatform, ISession, IUser } from '../types'; import { BAuth, BNet } from './constants'; import { BWallet } from '../bwallet'; export declare class BDevice extends BAuth { signer: BWallet; constructor(params: { divicePriv?: string; net: BNet; }); createSession(app_id: string): Promise<ISession>; signInBySession(): Promise<{ token: string; platform: IPlatform; user: IUser; }>; waitSessionApproved(): Promise<{ application: IApplication; session: ISession; }>; getLoginLink(): Promise<string>; }