Blockchain Primer: Introduction to Blockchain Foundations and Implementation

Blockchain Primer: Introduction to Blockchain Foundations and Implementation

Mohammad Amin Kuhail, Sujith S. Mathew, Rawad Hammad, Mohamed Bahja
Copyright: © 2022 |Pages: 20
DOI: 10.4018/978-1-7998-8382-1.ch003
OnDemand:
(Individual Chapters)
Available
$37.50
No Current Special Offers
TOTAL SAVINGS: $37.50

Abstract

Blockchain technology has the potential to revolutionize several industries including finance, supply chain and logistics, healthcare, and more. This primer introduces readers to basic development skills to blockchain foundations including blockchain cryptography, the consensus algorithm, and smart contracts. Further, this primer explains stepwise how to implement and deploy basic data stores using blockchain with Python. The primer serves as a succinct introductory guide to blockchain foundations by relying on a case study illustrated with visuals together with instructions on implementation. This primer is intended for educators, students, and technology enthusiasts with foundational computer science and Python development skills.
Chapter Preview
Top

Introduction

Blockchain technology has rapidly become a disruptive technology for a host of industries including finance, healthcare, real estate, and more, thanks to its ability to assure data privacy, ownership protection, and manage huge volumes of data.

The first realization of blockchain began in 2009 with cryptocurrencies, particularly, the Bitcoin blockchain, a secure, peer-to-peer digital monetary system (Wallac, 2011). Since then, numerous other manifestations of blockchain technology have emerged ranging from securely transferring medical data (Burstiq, 2021) to automating and securing real estate transaction (Propy, 2021) and to identity and credential management (Evernym, 2021).

Simply put, a blockchain is a distributed growing network of data records, called blocks (Narayanan et al., 2016). Figure 1 shows a simplified version of a chain of blocks. Each block consists of the stored data as well as the data and time the data was stored (timestamp). Further, a block is uniquely identified by a hash code. Moreover, a block refers to the previous block using the previous hash code. The first block, also called the Genesis block, has no predecessor, and thus, it does not contain a previous hash attribute.

Figure 1.

An illustration of a chain of blocks

978-1-7998-8382-1.ch003.f01

The purpose of this chapter is to introduce the reader to the foundations of the blockchain technology by answering the following research questions (RQ) using the literature:

  • 1.

    RQ1: What type of cryptography does the blockchain technology use to protect data?

  • 2.

    RQ2: How does the blockchain technology manage and tamperproof distributed data?

  • 3.

    RQ3: How does the blockchain technology facilitate transactional contracts?

  • 4.

    RQ4: How can we present a minimal case study that explains the implementation of a blockchain?

To answer the first question, we identified literature presenting foundational cryptography used by the blockchain technology. In short, blockchain uses an algorithm to calculate the hash codes. The value of the code depends on the data in the block (timestamp, data, etc.). As such, the generated code varies from block to block. Blockchain uses this mechanism to prevent data tampering (Al-Kuwari et al., 2011). For instance, assuming an attacker could change the data in Block 2. Accordingly, the hash of the block would also change. However, Block 3 would still refer to the old hash code of Block 2. As a result, this would make Block 3, and all succeeding blocks invalid since they do not contain the correct hash of the previous block. This concept is discussed in more detail in the section titled as “Cryptography in Blockchain”.

Key Terms in this Chapter

Hashing: The process of converting plaintext into a unique string of letters and numbers. It is not possible to reconstitute your original data from the output it produces.

Smart Contract: A self-executing program or protocol which is controlled by explicit terms and conditions, which stores and carries out contractual clauses.

Proof of Work: A mechanism that requires nodes of a network to solve an arbitrary mathematical puzzle to prevent anybody from gaming the system.

Cryptography: The practice of developing techniques and protocols preventing third parties from accessing private data.

Blockchain: A distributed growing network of data records which are connected using cryptography.

Encryption: The process of converting normal text (plaintext) into unrecognizable random sequences of bit (ciphertext).

Decryption: The inverse process of encryption, i.e., to convert ciphertext to plaintext.

Consensus Algorithm: A procedure used to reach agreement on a single data value among distributed systems or processes.

Complete Chapter List

Search this Book:
Reset