-
Notifications
You must be signed in to change notification settings - Fork 857
Closed
Description
I run the following code from the blockchain book:
var privateKey = new Key(); // generate a random private key
var publicKey = privateKey.PubKey;
return publicKey.GetAddress(ScriptPubKeyType.Legacy, Network.Main).ToString();
And i get the following exception:
at NBitcoin.Bitcoin.InitSignet() in NBitcoin.dll:token 0x60002fa+0x0
at NBitcoin.Network..cctor() in NBitcoin.dll:token 0x60006be+0x108
--- End of inner exception stack trace ---
at NBitcoin.Network.get_Main() in NBitcoin.dll:token 0x60006bf+0x0
I tried 5.x.x
and 6.x.x
versions of the library and i get the same results.
Metadata
Metadata
Assignees
Labels
No labels