keyPairFromSeed method
- Uint8List seed
Creates a key pair from a 32-byte seed.
Useful for deterministic key recovery from encrypted storage.
Throws ArgumentError if seed is not 32 bytes.
Implementation
Future<SimpleKeyPair> keyPairFromSeed(Uint8List seed) async {
if (seed.length != 32) {
throw ArgumentError('Seed must be exactly 32 bytes for Ed25519');
}
return _algorithm.newKeyPairFromSeed(seed);
}