fromMnemonicSet static method
Implementation
static Future<List<Keypair>> fromMnemonicSet(String mnemonic, [int? from = 0, to = 10]) async {
// Always start with zero as minimum
if (from == null || from < 0) {
from = 0;
}
// Always generate at least 1
if (to == null || to <= from) {
to = 1;
}
// loop over the range 'to' to 'from'
List<Keypair> keys = [];
for (var i = from; i < to; i++) {
Keypair kp = await _fromEd25519HDKeyPair(await Ed25519HDKeyPair.fromMnemonic(mnemonic, account: i));
keys.add(await _create(kp.secretKey, mnemonic));
}
return keys;
}