public Task <bool> LoginWithUsername(string username, string password) { AuthenticatedUser = new User(); var pk = PasswordUtils.DeriveKey(username, password); var account = AuthenticatedUser.InitializeUserWallet(pk); if (account == null) { throw new WalletException(AppResource.Alert_Wallet); } IsAuthenticated = true; return(Task.FromResult(true)); }