extractPublicKey static method
Extract a public key byte from a privateKeySeed
.
Implementation
static Future<Uint8List> extractPublicKey(final List<int> privateKeySeed) async {
if (privateKeySeed.isEmpty) {
return throw ArgumentError('Must not be empty');
}
final _keyPair = await _algorithm.newKeyPairFromSeed(privateKeySeed);
return Uint8List.fromList((await _keyPair.extractPublicKey()).bytes);
}