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