- Blockchain - Scope & Conclusion
- Blockchain - Adding Blocks
- Blockchain - Creating Miners
- Blockchain - Adding Genesis Block
- Blockchain - Creating Blockchain
- Blockchain - Creating Genesis Block
- Blockchain - Block Class
- Creating Multiple Transactions
- Blockchain - Transaction Class
- Blockchain - Client Class
- Blockchain - Developing Client
- Python Blockchain - Introduction
- Python Blockchain - Home
Python Blockchain Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Python Blockchain - Introduction
In the tutorial on Blockchain, we have learnt in detail about the theory behind blockchain. The blockchain is the fundamental building block behind the world’s most popular digital currency Bitcoin. The tutorial deeply dealt with the intricacies of Bitcoin explaining fully the blockchain architecture. The next step is to build our own blockchain.
Satoshi Nakamoto created the first virtual currency in the world called Bitcoin. Looking at the success of Bitcoin, many others created their own virtual currencies. To name a few − Litecoin, Zcash, and so on.
Now, you may also pke to launch your own currency. Let us call this as TPCoin (TutorialsPoint Coin). You will write a blockchain to record all transactions that deal with TPCoin. The TPCoin can be used for buying Pizzas, Burgers, Salads, etc. There may be other service providers who would join your network and start accepting TPCoin as the currency for giving out their services. The possibipties are endless.
In this tutorial, let us understand how to construct such a system and launch your own digital currency in the market.
Components Involved in Blockchain Project Development
The entire blockchain project development consists of three major components −
Cpent
Miners
Blockchain
Cpent
The Cpent is the one who will buy goods from other vendors. The cpent himself may become a vendor and will accept money from others against the goods he supppes. We assume here that the cpent can both be a suppper and a recipient of TPCoins. Thus, we will create a cpent class in our code that has the abipty to send and receive money.
Miner
The Miner is the one who picks up the transactions from a transaction pool and assembles them in a block. The miner has to provide a vapd proof-of-work to get the mining reward. All the money that miner collects as a fee will be for him to keep. He may spend that money on buying goods or services from other registered vendors on the network, just the way a Cpent described above does.
Blockchain
Finally, a Blockchain is a data structure that chains all the mined blocks in a chronological order. This chain is immutable and thus temper-proof.
You may follow this tutorial by typing out the code presented in each step in a new Jupyter notebook. Alternatively, you may download the entire Jupyter notebook from
.In the next chapter, we will develop a cpent that uses our blockchain system.
Advertisements