generatePrivateKey static method
Generates a new private key by first generating a new BIP-39 mnemonic and then deriving the private key from it.
Returns a future containing a string representing the new private key.
Implementation
static Future<String> generatePrivateKey() async {
final String mnemonic = generate();
final privateKey = await compute(
privateKeyFromMnemonic,
mnemonic,
);
return privateKey;
}