Beispiel #1
0
        public static void PrintInformation(Safe safe, string filePath, Mnemonic mnemonic, string password)
        {
            Console.WriteLine("Wallet file location: {0}\n", filePath);
            Console.WriteLine("Password: {0}\n", password);
            Console.WriteLine("Please write down the mnemonic phrases!If you lose your .json file\nthe only way to recover it is mnemonic + password!");
            Console.WriteLine("Mnemonic: {0}\n", mnemonic);
            var address    = CommonWalletHelper.GenerateBitcointAddress(safe);
            var privateKey = CommonWalletHelper.GetPrivateKey(safe, address);

            Console.WriteLine("IMPORTANT! This is your private key! Do not lose it\nand do not show it to anyone!If your private key\nis compromised, you will lose all of your bitcoins!\n");
            Console.WriteLine("PRIVATE KEY: {0}\n", privateKey);
            Console.WriteLine("This is your first bitcoin address! : {0}\n", address);
            Console.WriteLine("Network : {0}\n", safe.Network);
            var publicKey = safe.GetBitcoinExtPubKey();

            Console.WriteLine("This is your public key: {0}", publicKey);
        }