seedPhrase property
Get the 25-word seed phrase/mnemonic.
This converts the private 32-byte key into a 25 word mnemonic. The generated mnemonic includes a checksum. Each word in the mnemonic represents 11 bits of data, and the last 11 bits are reserved for the checksum.
Throws MnemonicException when unable to create the seed phrase. Returns the seed phrase which is a list containing 25 words.
Implementation
Future<List<String>> get seedPhrase async {
// Get seed from private key
final privateKeyBytes = await keyPair.extractPrivateKeyBytes();
// Generate mnemonic from seed
return await Mnemonic.generate(privateKeyBytes);
}