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