






























































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!































































20CS BLOCK CHAIN TECHNOLOGIES UNIT 1 Department:CSE Batch/Year:2022-2023/IV Created by: Dr.P.Kavitha Dr P.R. Therasa Date:7/8/
1 Contents 2 Course objectives 3 Pre Requisites (Course Names with Code) 4 Syllabus (With Subject Code, Name, LTPC details) 5 Course outcomes 6 CO- PO/PSO Mapping 7 Lecture Plan 8 Activity based learning 9 Lecture Notes 10 Assignments 11 Part A Q & A 12 Part B Qs 13 Supportive online Certification courses 14 Real time Applications in day to day life and to Industry 15 Contents beyond the Syllabus
SYLLABUS . UNIT I INTRODUCTION TO BLOCKCHAIN 9 History of Blockchain – Types of Blockchain – Consensus – Decentralization using Blockchain –Blockchain and Full Ecosystem Decentralization – Platforms for Decentralization – Symmetric Cryptography - Mathematics – Asymmetric Cryptography – public and private keys – Elliptic curve cryptography – Discrete logarithm problem in ECC. UNIT II INTRODUCTION TO CRYPTOCURRENCY 9 Bitcoin – Digital Keys and Addresses – Transactions – Mining – Bitcoin Networks and Payments Wallets – innovation in Bitcoin – Alternative Coins – Theoretical Foundations – Bitcoin. UNIT III ETHEREUM 9 The Ethereum Network – Components of Ethereum Ecosystem – Ethereum Programming Languages: Runtime Byte Code – Blocks and Blockchain – Fee Schedule – Supporting Protocols – Solidity Language. UNIT IV WEB3 AND HYPERLEDGER 9 Introduction to Web3 – Contract Deployment – POST Requests – Development frameworks Hyperledger as a protocol – The Reference Architecture – Hyperledger Fabric – Distributed Ledger – Corda. UNIT V ALTERNATIVE BLOCKCHAINS AND NEXT EMERGING TRENDS 9 Kadena – Ripple- Rootstock – Quorum – Tendermint – Scalability – Privacy – Other Challenges –Blockchain Research. TOTAL: 45 PERIODS TEXT BOOKS: ● 1. Imran Bashir, “Mastering Blockchain: Distributed Ledger Technology, Decentralization, and Smart Contracts Explained”, Second Edition, Packt Publishing,
● 2. ArshdeepBahga, Vijay Madisetti, “Blockchain Applications: A Hands-On Approach”, VPT, 2017. REFERENCES: ● 1. Andreas Antonopoulos, Satoshi Nakamoto, “Mastering Bitcoin”, O’Reilly Publishing,
● 2. Roger Wattenhofer, “The Science of the Blockchain” CreateSpace Independent Publishing Platform, 2016.
● 3. A. Narayanan, J. Bonneau, E. Felten, A. Miller, S. Goldfeder, “Bitcoin and Cryptocurrency Technologies: A Comprehensive Introduction”, Princeton University Press, 2016. ● 4. Alex Leverington, “Ethereum Programming”, Packt Publishing, 2017. ● 5. Antony Lewis “The Basics of Bitcoins and Blockchains: An Introduction to Cryptocurrencies and the Technology that Powers Them”, Mango Publishing 2018. ● 6. Andreas M. Antonopoulos, “Mastering Bitcoin: Programming the Open Block chain”, O’ReillyPublishing, 2017. ● 7. Massimo Ragnedda, Giuseppe Destefanis, “Blockchain and Web 3.0: Social, Economic, and Technological Challenges”, Routledge, 2019.
COs PO’s/PSO’s PO 1
1 – Low, 2 – Medium, 3 – Strong
No Topics (^) No of period Proposed date Actual Lecture Date Pertaining CO Taxonomy level Mode of delivery 1 Historyf of Blockchain – Types of Blockchain 1
Consensus – Decentralization using Blockchain 1
Blockchain and Full Ecosystem Decentralization
Tools 4 Platforms for Decentralization 1
Tools 5 Symmetric Cryptography - Mathematics –
Tools 6 Asymmetric Cryptography – 1
Tools 7 public and private keys – 1
Tools 8 Elliptic curve cryptography – 1
Tools 9 Discrete logarithm problem in ECC
Tools
History of Blockchain The history of blockchain Blockchain was introduced with the invention of bitcoin in 2008 and then with its practical implementation in 2009. For this chapter, it is sufficient to introduce bitcoin very briefly as there is a full chapter on bitcoin later on but it is also essential to refer to bitcoin because without it, the history of blockchain is not complete. The concept of electronic cash or digital currency is not new. Since the 1980s, e-cash protocols have existed that are based on a model proposed by David Chaum. Electronic cash Just as understanding the concepts of distributed systems is necessary in order to understand blockchain technology, the idea of electronic cash is also essential to appreciate the first and astonishingly successful application of blockchain: the bitcoin, or broadly cryptocurrencies. Theoretical concepts in distributed systems such as consensus algorithms provided the basis of the practical implementation of Proof of Work algorithms in bitcoin; moreover, ideas from different electronic cash schemes also paved the way for the invention of cryptocurrencies, specifically bitcoin. In this section, the reader will be introduced to the idea of electronic cash and then various other concepts that existed before cryptocurrencies that led to the development of bitcoin are presented. The concept of electronic cash Fundamental issues that need to be addressed in e-cash systems are accountability and anonymity. David Chaum addressed both of these issues introducing two cryptographic operations, namely blind signatures and secret sharing.The blind signatures allow signing a document without actually seeing it and secret sharing is a concept that allows the detection of using the same e-cash token twice (double spending). After this other protocols emerged such as Chaum, Fiat, and Naor (CFN), e-cash schemes that introduced anonymity and double spending detection. Brand's ecash is another system that improved on CFN, made it more efficient, and introduced the concept of security reduction to prove statements about the e-cash scheme. Security reduction is a technique used in cryptography to prove that a certain algorithm is secure by using another problem as a comparison. A different but relevant concept called hashcash was introduced by Adam Back in 1997 as a PoW system to control e-mail spam. The idea is quite simple: if legitimate users want to send e-mails then they are required to compute a hash as a proof that they have spent a reasonable amount of computing resources
Public blockchains As the name suggests, these blockchains are open to the public and anyone can participate as a node in the decision-making process. Users may or may not be rewarded for their participation. These ledgers are not owned by anyone and are publicly open for anyone to participate in. All users of the permission-less ledger maintain a copy of the ledger on their local nodes and use a distributed consensus mechanism in order to reach a decision about the eventual state of the ledger. These blockchains are also known as permission-less ledgers. Private blockchains Private blockchains as the name implies are private and are open only to a consortium or group of individuals or organizations that has decided to share the ledger among themselves. Semi-private blockchains Here part of the blockchain is private and part of it is public. The private part is controlled by a group of individuals whereas the public part is open for participation by anyone. Sidechains More precisely known as pegged sidechains, this is a concept whereby coins can be moved from one blockchain to another and moved back. Common uses include the creation of new altcoins (alternative cryptocurrencies) whereby coins are burnt as a proof of adequate stake. There are two types of sidechain. The example provided above for burning coins is applicable to a one-way pegged sidechain. The second type is called a two-way pegged sidechain, which allows the movement of coins from the main chain to the sidechain and back to the main chain when required. Permissioned ledger A permissioned ledger is a blockchain whereby the participants of the network are known and already trusted. Permissioned ledgers do not need to use a distributed consensus mechanism, instead an agreement protocol can be used to maintain a shared version of truth about the state of the records on the blockchain. There is also no requirement for a permissioned blockchain to be private as it can be a public blockchain but with regulated access control. Distributed ledger As the name suggests, this ledger is distributed among its participants and spread across multiple sites or organizations. This type can either be private or public. The key idea is that, unlike many other blockchains, the records are stored contiguously instead of sorted into blocks. This concept is used in Ripple. Shared ledger This is generic term that is used to describe any application or database that is shared by the public or a consortium.
Fully private and proprietary blockchains These blockchains perhaps have no mainstream application as they deviate from the core idea of decentralization in blockchain technology. Nonetheless in specific private settings within an organization there might be a need to share data and provide some level of guarantee of the authenticity of the data. These blockchains could be useful in that scenario. For example, for collaboration and sharing data between various government departments. Tokenized blockchains These blockchains are standard blockchains that generate cryptocurrency as a result of a consensus process via mining or via initial distribution. Tokenless blockchains These are probably not real blockchains because they lack the basic unit of transfer of value but are still valuable in situations where there is no need to transfer value between nodes and only sharing some data among various already trusted parties is required. Consensus Consensus is the backbone of a blockchain and provides decentralization of control as a result through an optional process known as mining. The choice of consensus algorithm is also governed by the type of blockchain in use. Not all consensus mechanisms are suitable for all types of blockchains. For example, in public permissionless blockchains it would make sense to use PoW instead of some basic agreement mechanism that perhaps is based on proof of authority. Therefore it is essential to choose a consensus algorithm appropriately for a blockchain project. Consensus in blockchain Consensus is basically a distributed computing concept that has been used in blockchain in order to provide a means of agreeing to a single version of truth by all peers on the blockchain network. Roughly, the following two categories of consensus mechanism exist:
Reputation-based mechanisms As the name suggests, a leader is elected on the basis of the reputation it has built over time on the network.This can be based on the voting from other members. Practical byzantine fault tolerance Practical Byzantine Fault Tolerance (PBFT) achieves state machine replication, which provides tolerance against Byzantine nodes. Various other protocols, including but are not limited to PBFT, PAXOS, RAFT, and Federated Byzantine Agreement (FBA), are also being used or have been proposed for use in many different implementations of distributed systems and blockchains. Decentralization Decentralization is not a new concept; it has been used in strategy, management, and governance for a long time. The basic idea of decentralization is to distribute control and authority to peripheries instead of one central authority being in full control of the organization. This results in several benefits for organizations. such as increased efficiency, quicker decision making, better motivation, and a reduced burden on top management. Methods of decentralization and routes to decentralization with some examples will also be presented. Also, the decentralization of the blockchain ecosystem, decentralized applications, and platforms for decentralization. Many exciting applications and ideas emerge out of the decentralized blockchain technology Decentralization using blockchain Decentralization is a core benefit and service provided by the blockchain technology. Blockchain by design is a perfect vehicle for providing a platform that does not need any intermediaries and can function with many different leaders chosen via consensus mechanisms. This model allows anyone to compete to become the decision-making authority. This competition is governed by a consensus mechanism and the most commonly used method is known as Proof of Work (PoW). Decentralization is applied in varying degrees from semidecentralized to fully decentralized depending on the requirements and circumstances. Decentralization can be viewed from a blockchain perspective as a mechanism that provides a way to remodel existing applications and paradigms or build new applications in order to give full control to users.
Information and communication technology (ICT) has conventionally been based on a centralized paradigm whereby database or application servers are under the control of a central authority, such as a system administrator. With bitcoin and the advent of the blockchain technology, this model has changed and now the technology that allows anyone to start a decentralized system (and operate it with no single point of failure or single trusted authority) is available. It can either be run autonomously or by requiring some human intervention depending on the type and model of governance used in the decentralized application running on the blockchain. An upcoming diagram shows different types of system that currently exist, that is, central, distributed, and decentralized. This concept was first published in 1964 in a paper by Paul Baran on distributed communication networks in the context of communication networks. Centralized systems are conventional (client--server) IT systems whereby there is a single authority that controls the system and is solely in-charge of all operations on the system. All users of a central system are dependent on a single source of service. Online service providers, such as eBay, Google, Amazon, Apple's App Store, and the majority of other providers, use this common model of delivering services. On the other hand, in a distributed system, the data and computation are spread across multiple nodes in the network. Sometimes, this term is confused with parallel computing. While there is an overlap in the definition, the main difference between both these systems is that in a parallel system, computation is performed by all nodes simultaneously inorder to achieve a result, whereas in a distributed system, computation may not happen in parallel and data is only replicated on multiple nodes that users view as a single coherent system. Both of these models are used with variations in order to achieve failure tolerance and speed. In this model, there is still a central authority that has control over all nodes and governs processing. This means that the system is still centralized in nature. Different types of network/system The key difference between a decentralized system and distributed system is that in a distributed system, there still exists a central authority that governs the entire