#Bitcoin C#:Creating Bitcoin address using NBitCoin

1.Get NBitcoin from Nuget package.

Bitcoin Address : 

It is payment address which either begins with 1 or 3 ,its more of a combination of secure private and public key hash that is generated using cryptographic algorithm.To end user,its simply an address which is useful for sending/receiving bitcoins.

Generating Bitcoin using NBitcoin :


 Key bitcoin = new Key();
 var bitcoinaddress=bitcoin.PubKey.GetAddress(Network.TestNet);
 Console.WriteLine(bitcoinaddress);

Its as simple as that, you create a key and decide which network to generate bitcoin address.There are two networks MainNet(Real world) and TestNet(Test Environment).

 

#Bitcoins-Programming Bitcoins in C#-Resources.

I have started using Bitcoins and Block Chain technologies and with the .NET Stack had found the following libraries quite useful.

What is Bitcoins ?

 

They are nothing more than virtual currencies which are accepted worldwide.They use the Block Chain technology which holds the transaction in distributed servers.

Libraries in C# :

Bitcoin itself is in the initial phase of evolution,there are only few libraries and I am listing the one which was pretty useful for me,

Nicolas Dorier- BitCoin libraries:

BitCoin-Client   : https://github.com/NicolasDorier/BlockchainProgramming

BitCoin-Server :  https://github.com/NicolasDorier/BlockchainProgramming

GeorgeKimionis-Bitcoin libraries:

https://github.com/GeorgeKimionis/BitcoinLib

They both are transaction oriented.