Wallet.fromSeed constructor

Wallet.fromSeed(
  1. DatabaseFactory databaseFactory,
  2. FileSystem fileSystem,
  3. String filename,
  4. String name,
  5. PeerNetwork network,
  6. Seed seed,
  7. [String seedPhrase,
  8. CruzawlPreferences preferences,
  9. StringCallback debugPrint,
  10. WalletCallback loaded]
)

Generate HD Wallet from SLIP-0010 seed.

Implementation

Wallet.fromSeed(
    sembast.DatabaseFactory databaseFactory,
    FileSystem fileSystem,
    String filename,
    String name,
    this.network,
    Seed seed,
    [String seedPhrase,
    this.preferences,
    this.debugPrint,
    WalletCallback loaded])
    : super(name, network.currency, seed, seedPhrase) {
  if (filename != null) {
    _openWalletStorage(databaseFactory, fileSystem, filename, true, loaded);
  }
}