Wallet.fromSeedPhrase constructor

Wallet.fromSeedPhrase(
  1. DatabaseFactory databaseFactory,
  2. FileSystem fileSystem,
  3. String filename,
  4. String name,
  5. PeerNetwork network,
  6. String seedPhrase,
  7. [CruzawlPreferences prefileSystem,
  8. StringCallback debug,
  9. WalletCallback loaded]
)

Generate HD Wallet from BIP-0039 mnemonic code.

Implementation

Wallet.fromSeedPhrase(
    sembast.DatabaseFactory databaseFactory,
    FileSystem fileSystem,
    String filename,
    String name,
    PeerNetwork network,
    String seedPhrase,
    [CruzawlPreferences prefileSystem,
    StringCallback debug,
    WalletCallback loaded])
    : this.fromSeed(
          databaseFactory,
          fileSystem,
          filename,
          name,
          network,
          Seed(mnemonicToSeed(seedPhrase)),
          seedPhrase,
          prefileSystem,
          debug,
          loaded);