extract method

  1. @override
Future<EcKeyPairData> extract()
override

Reads the private key into memory.

Throws UnsupportedError if extraction is not possible.

Implementation

@override
Future<EcKeyPairData> extract() async {
  if (hasBeenDestroyed) {
    throw StateError('Private key has been destroyed');
  }
  return this;
}