extract method

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

Reads the private key into memory.

Throws UnsupportedError if extraction is not possible.

Implementation

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