Options
All
  • Public
  • Public/Protected
  • All
Menu

Using the this in the browser is not secure and should only be used for development purposes. Use a secure vault outside of the context of the webpage to ensure security when signing transactions in production.

Hierarchy

  • LocalWalletProvider

Implements

Index

Constructors

constructor

  • new LocalWalletProvider(mnemonic?: string, account?: number, index?: number, rng?: RNG): LocalWalletProvider

Methods

enable

  • enable(context: Context): Promise<void>

getKeys

sign

  • sign(context: Context, bech32Address: string, message: Uint8Array): Promise<Uint8Array>

Static generateMnemonic

  • generateMnemonic(rng?: RNG): string

Static getPrivKeyFromMnemonic

  • getPrivKeyFromMnemonic(bip44: BIP44, mnemonic: string, account?: number, index?: number): PrivKey

Generated using TypeDoc