【发布时间】:2020-06-06 05:00:33
【问题描述】:
using System;
using NBitcoin;
namespace RSA
{
public class RSA
{
public static Wallet KeyGenerate()
{
Key privateKey = new Key();
var v = privateKey.GetBitcoinSecret(Network.Main).GetAddress();
var address = BitcoinAddress.Create(v.ToString(), Network.Main);
return new Wallet { PublicKey = v.ToString(), PrivateKey = privateKey.GetBitcoinSecret(Network.Main).ToString() };
}
}
}
我收到这种警告,请任何人帮忙解决它?
【问题讨论】:
-
有什么问题?只需使用警告提供的代码?
-
你能告诉我应该从警告代码中使用什么吗,谢谢
-
GetAddress(ScriptPublicKeyType.Legacy),它在警告中。
标签: asp.net-core asp.net-core-mvc nbitcoin