Wallet.fromPrivateKeyList constructor

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

Create non-HD Wallet from private key list.

Implementation

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