lock method

Future<void> lock(
  1. String? passphrase
)

Implementation

Future<void> lock(String? passphrase) async {
  _keystore = await encodePhrase(_phrase!, passphrase ?? "");
  _phrase = null;
  _ecKeys = null;
  _identity = null;
  _ecIdentity = null;
  isLocked = true;
}