A Tutorial On Creating a Blockchain and Cryptocurrency with Consensus Protocol in Python

Iqra Khalil, Omer Aziz, Muhammad Shoaib Farooq, Adnan Abid

Abstract


The concept of decentralization has gained a lot of focus when it comes to Blockchain. The Blockchain technology is a decentralized peer to peer distributed ledger. Many industries have been using Distributed Ledgers (DTL) before the blockchain technology. But the state of the art technology has overshadow the use of all DTLs due to its immutable nature. With the use of this technology new horizons of innovation has been explored. Bitcoin, the first cyrptocurrency, has used the blockchain technology which has received extensive attentions. In this paper, we have addressed the mechanism of the blockchain technology and a detailed tutorial of how to implement it practically. Specifically we have focused on the practical implementation of how to create a blockchain, mine a block and create a cryptocurrency. Secondly, there is detailed discussion on major platform i.e. bitcoin in which blockchain has been explored a lot. Finally towards the end, the Proof of Work Consensus algorithm is elaborated in detail. Our goal is to help readers easily understand the mechanism along with the important features of the blockchain without having to read all the blockchain specifications and application or the state-of-the-art papers that generally describe the system.


Full Text:

PDF

References


Andreas M Antonopoulos. Mastering Bitcoin: Programming the open blockchain. " O’Reilly Media, Inc.", 2017.

LM Bach, Branko Mihaljevic, and Mario Za- gar. “Comparative analysis of blockchain consensus algorithms”. In: 2018 41st International Convention on Information and Communication Technology, Electronics and Microelectronics (MIPRO). IEEE. 2018, pp. 1545–1550.

Sudipta Basu et al. “Recordkeeping alters economic history by promoting reciprocity”. In: Proceedings of the National Academy of Sciences 106.4 (2009), pp. 1009–1014.

Chris Berg, Sinclair Davidson, and Jason Potts. “The Blockchain Economy: A begin- ner’s guide to institutional cryptoeconomics”. In: Medium (27 September 2017) https://medium. com/@ cryptoeconomics/the-blockchain- economy-a-beginners-guide-to-institutional- cryptoeconomics-64bf2f2beec4 (2017).

Consensus Algorithms in Blockchain. url: https : / / www . geeksforgeeks . org / consensus-algorithms-in-blockchain/.

Vitalik Buterin. “The meaning of decentralization”. In: Medium. (2017).

N. Chalaemwongwan and W. Kurutach. “Notice of Violation of IEEE Publication Principles: State of the art and challenges facing consensus protocols on blockchain”. In: 2018 International Conference on Information Networking (ICOIN). Los Alamitos, CA, USA: IEEE Computer Society, Jan. 2018, pp. 957–962. doi: 10. 1109 / ICOIN . 2018 . 8343266. url: https : / / doi . ieeecomputersociety . org / 10 . 1109 / ICOIN.2018.8343266.

Stuart Haber and W Scott Stornetta. “How to time-stamp a digital document”. In: Conference on the Theory and Application of Cryptography. Springer. 1990, pp. 437–455.

Shihab Shahriar Hazari and Qusay H Mahmoud. “A parallel proof of work to improve transaction speed and scalability in blockchain systems”. In: 2019 IEEE 9th Annual Computing and Communication Workshop and Conference (CCWC). IEEE. 2019, pp. 0916–0921.

Danushka Jayasinghe et al. “Philanthropy on the Blockchain”. In: Information Security The- ory and Practice. Ed. by Gerhard P. Hancke and ErnestoDamiani. Springer International Pub- lishing, 2018.

Leslie Lamport, Robert Shostak, and Marshall Pease. “The Byzantine generals problem”. In: ACM Transactions on Programming Languages and Systems (TOPLAS) 4.3 (1982), pp. 382–401.

Zhi Li, Ali Vatankhah Barenji, and George Q Huang. “Toward a blockchain cloud manufactur- ing system as a peer to peer distributed network platform”. In: Robotics and Computer-Integrated Manufacturing 54 (2018), pp. 133–144.

Satoshi Nakamoto. “Bitcoin P2P e-cash paper”. In: publicly available email thread, November (2008).

Svein Ølnes. “Beyond bitcoin enabling smart government using blockchain technology”. In: In- ternational conference on electronic government. Springer. 2016, pp. 253–264.

Wouter Penard and Tim van Werkhoven. “On the secure hash algorithm family”. In: Cryptog- raphy in Context (2008), pp. 1–18.

G Prisco. “Bitnation Pangea releases alpha of governance system based on the blockchain”. In: Bitcoin Magazine (2015).

Sandi Rahmadika et al. “The dilemma of param- eterizing propagation time in blockchain P2P network”. In: Journal of Information Processing Systems 16.3 (2020), pp. 699–717.

Sarwar Sayeed and Hector Marco-Gisbert. “As- sessing blockchain consensus and security mech- anisms against the 51% attack”. In: Applied Sci- ences 9.9 (2019), p. 1788.

The Blockchain Scalability. url: https : / / towardsdatascience. com/ the- blockchain- scalability- problem- the- race- for- visa- like-transaction-speed-5cce48f9d44.

Isabel Schnabel and Hyun Song Shin. “Money and trust: lessons from the 1620s for money in the digital age”. In: (2018).

Brett Scott, John Loonam, and Vikas Kumar. “Exploring the rise of blockchain technology: To- wards distributed collaborative organizations”. In: Strategic Change 26.5 (2017), pp. 423–428.

Abdullah Al-Shehabi. “Bitcoin Transaction Fee Estimation Using Mempool State and Linear Perceptron Machine Learning Algorithm”. In: (2018).

Ning Shi. “A new proof-of-work mechanism for bitcoin”. In: Financial Innovation 2.1 (2016), p. 31.

Melanie Swan. “Anticipating the economic ben- efits of blockchain”. In: Technology innovation management review 7.10 (2017), pp. 6–13.

Dejan Vujičić, Dijana Jagodić, and Siniša Ranđić. “Blockchain technology, bitcoin, and Ethereum: A brief overview”. In: 2018 17th inter national symposium infoteh-jahorina (infoteh). IEEE. 2018, pp. 1–6.

Joseph M Woodside, Fred K Augustine Jr, and Will Giberson. “Blockchain technology adoption status and strategies”. In: Journal of Interna- tional Technology and Information Management 26.2 (2017), pp. 65–93.

Proof of Work. url: https : / / academy . binance.com/en/articles/proof- of- work- explained.

Proof of Work (PoW) Consensus. url: https://www.geeksforgeeks.org/proof- of- work- pow-consensus/?ref=rp.

Dylan Yaga et al. “Blockchain technology overview”. In: arXiv preprint arXiv:1906.11078 (2019).

Zibin Zheng et al. “An overview of blockchain technology: Architecture, consensus, and future trends”. In: 2017 IEEE international congress on big data (BigData congress). IEEE. 2017, pp. 557–564.




DOI: http://dx.doi.org/10.21015/vtse.v9i4.827

Refbacks

  • There are currently no refbacks.


Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 License.