destroy method

  1. @mustCallSuper
void destroy()

Overwrites sensitive parts of the private key data with zeroes and prevents the private key from being used anymore.

The method extractPublicKey should still work after calling this method.

Implementation

@mustCallSuper
void destroy() {
  _hasBeenDestroyed = true;
}