UNPKG

@beraji/wallet-sdk

Version:

Beraji: Distributed Secret Sharing.

28 lines (27 loc) 955 B
import { FiniteField } from './sss/ff'; import { SecretSharing } from './sss/sss'; export declare class BWallet { static FF: FiniteField; static SSS: SecretSharing; static _0: Uint8Array<ArrayBuffer>; static _1: Uint8Array<ArrayBuffer>; static _2: Uint8Array<ArrayBuffer>; static _3: Uint8Array<ArrayBuffer>; privateKey: Uint8Array; constructor(priv?: string | Uint8Array); get privateKeyHex(): string; static deriveMindShare: (password: string) => Uint8Array; static fromShares: (params: { password?: string; localS?: Uint8Array; cloudS?: Uint8Array; }) => BWallet; sharePrivkey: (password: string) => { mindS: Uint8Array<ArrayBufferLike>; localS: Uint8Array<ArrayBufferLike>; cloudS: Uint8Array<ArrayBufferLike>; }; signMessageEVM(message: string): Promise<string>; get publicKey(): Uint8Array<ArrayBufferLike>; get address(): string; }