private bool OnCreateWalletCommand(string[] args) { if (args.Length < 3) { Console.WriteLine("error"); return(true); } using (SecureString password = ReadSecureString("password")) using (SecureString password2 = ReadSecureString("password")) { if (!password.CompareTo(password2)) { Console.WriteLine("error"); return(true); } wallet = MinerWallet.Create(args[2], password); foreach (Account account in wallet.GetAccounts()) { Console.WriteLine(account.PublicKey.EncodePoint(true).ToHexString()); } } return(true); }