秘密鍵

Key privateKey = new Key(); // ランダムな秘密鍵の生成
BitcoinSecret mainNetPrivateKey = privateKey.GetBitcoinSecret(Network.Main); // メインネット用のビットコインシークレットを取得
BitcoinSecret testNetPrivateKey = privateKey.GetBitcoinSecret(Network.TestNet); // テストネット用のビットコインシークレットを取得
Console.WriteLine(mainNetPrivateKey); // L5B67zvrndS5c71EjkrTJZ99UaoVbMUAK58GKdQUfYCpAa6jypvn
Console.WriteLine(testNetPrivateKey); // cVY5auviDh8LmYUW8AfafseD6p6uFoZrP7GjS3rzAerpRKE9Wmuz
bool WifIsBitcoinSecret = mainNetPrivateKey == privateKey.GetWif(Network.Main);
Console.WriteLine(WifIsBitcoinSecret); // 正練習 :
Last updated