Module 1
Module 1
1. No Defined Decentralisation
Unlike public blockchains where anyone can join freely, participation in a permissioned
blockchain is by invitation or approval only. Users must be verified before they are allowed
to access the network. This ensures that only trusted individuals or organizations can read,
write, or validate transactions.
4. Lack of Anonymity
Participants in a permissioned blockchain are usually known and identifiable. Since every
user undergoes an identity verification process before joining, transactions can be traced back
to authorized members. This increases accountability, reduces fraudulent activities, and helps
organizations comply with legal and regulatory requirements.
5. Scalability is Manageable
Permissioned blockchains offer better scalability and higher transaction speed than public
blockchains. Because only a limited number of trusted nodes participate in transaction
validation, consensus is reached more quickly. This enables the network to process a larger
number of transactions efficiently, making it suitable for enterprise applications.
Conclusion
Q5. Write the advantage of using permissioned blockchain. Discuss the applications of
permissioned blockchain.
Module 1 – INTRODUCTION BLOCKCHAIN TECHNOLOGIES
Examples include:
Luxury goods
Pharmaceuticals
Cosmetics
Electronics
When a high-value item is manufactured, a corresponding digital token is created and
issued by a trusted authority. This digital token acts as proof of the product's origin and
authenticity.
Whenever the physical product changes ownership, the digital token is transferred
simultaneously on the blockchain. As a result, the real-world movement of the product is
accurately mirrored by the blockchain transaction history.
The digital token acts as a virtual certificate of authenticity, which is much more secure
and difficult to steal, alter, or forge than traditional paper certificates. This helps prevent
counterfeit products, improves transparency, and allows businesses and customers to verify
the complete history of an item.
(After explaining provenance tracking in detail, write any few of them from below)
2. Banking and Financial Services
Banks and financial institutions use permissioned blockchain to process payments, cross-
border transfers, and settlements securely.
Since only authorized banks participate in the network, transactions are completed faster
while maintaining privacy, regulatory compliance, and protection against fraud.
3. Healthcare
Hospitals, clinics, and insurance providers can securely share electronic health records using
a permissioned blockchain.
Only authorized medical professionals can access patient information, ensuring data privacy,
improving coordination between healthcare providers, and preventing unauthorized
modifications.
4. Trade Finance
Businesses involved in international trade use permissioned blockchain to manage documents
such as invoices, purchase orders, and letters of credit.
All approved parties—including buyers, sellers, banks, and shipping companies—can access
the same trusted information, reducing paperwork, delays, and fraud.
5. Government and Public Services
Government agencies use permissioned blockchain for managing land records, digital
identities, tax records, and public documents.
Module 1 – INTRODUCTION BLOCKCHAIN TECHNOLOGIES
Because access is restricted to authorized officials, records remain secure, transparent, and
resistant to tampering.
6. Insurance
Insurance companies use permissioned blockchain to securely share policy information and
process claims.
Authorized insurers can verify customer details quickly, detect fraudulent claims, and
automate claim settlements, improving efficiency.
7. Enterprise Data Sharing
Large organizations with multiple departments or business partners use permissioned
blockchain to share business data securely.
Only authorized participants can view or update information, ensuring confidentiality while
maintaining a single, accurate source of data.
8. Manufacturing and Logistics
Manufacturers and logistics companies use permissioned blockchain to monitor inventory,
shipments, and warehouse operations.
Real-time updates improve coordination between suppliers, manufacturers, distributors, and
retailers while reducing errors and improving traceability.
Conclusion
Permissioned blockchains provide several advantages, including enhanced security, privacy,
faster transaction processing, scalability, and better governance. Permissioned blockchain is
best suited for industries where privacy, security, and controlled access are essential. Its
major applications include supply chain management, banking, healthcare, trade finance,
government services, insurance, enterprise collaboration, and manufacturing, making it a
preferred blockchain solution for enterprise environments.
Q6. Define public ledger. Mention the core characteristics of public ledger.
A public ledger is an open, decentralized record-keeping system where transactions are
securely stored and accessible to anyone on the network.
Core characteristics of Public Ledgers:
• Decentralization: Rather than being stored in one central database, copies of the
ledger are distributed across a global network of computers (nodes).
• Transparency: Anyone can see the entire history of transactions on the network.
• Immutability: Once data or a transaction is recorded, it is permanently locked using
cryptography and cannot be altered or deleted.
• Pseudo-Anonymity: While every transaction is transparent, participants interact
using public wallet addresses rather than their real-world identities.
Module 1 – INTRODUCTION BLOCKCHAIN TECHNOLOGIES
Q8. Differentiate between Raft, Paxos and Byzantine Fault Tolerance consensus
mechanisms.
Raft Consensus[agree upon same data and stay synchronized even if some node fails]-> there
will be a strong leader where all the updates go through him.
Paxos Consensus [multiple nodes agree on one value even if some node fails]->No strong
leader to take care of transactions.
Byzantine Fault Tolerance (BFT) algorithms -> both raft and paxos fail to handle malicious
nodes whereas BFT handles them too.
Block Header:
Metadata about a block – (1) Previous block hash, (2) Mining statistics used to
construct the block, (3) Merkle tree root
Previous block hash: Every block inherits from the previous block – we use previous
block’s hash to create the new block’s hash – make the blockchain tamper proof.
Mining – the mechanism to generate the hash
The mechanism needs to be complicated enough,
to make the blockchain tamper proof
Bitcoin Mining: Hk = Hash(Hk-1 || T || Nonce)
Find the nonce[[Link] only once randomly] such
that Hk has certain predefined complexity (number
of zeros at the prefix)
The header contains mining statistics –
timestamp[T], nonce and difficulty.
Module 1 – INTRODUCTION BLOCKCHAIN TECHNOLOGIES
Hashes in block
header.
Block identifier – the hash of the current block header (Hash algorithm: Double
SHA256)
Previous block hash is used to compute the current block hash.
Transactions in a Block
Transactions are organized as a Merkle Tree.
The Merkle Root is used to construct the block hash.
If you change a trSansaction, you need to change all the subsequent block hash.
The difficulty of the mining algorithm determines the toughness of tampering with a
block in a blockchain.
Module 1 – INTRODUCTION BLOCKCHAIN TECHNOLOGIES
The Block contains two parts – the header and the data (the transactions)
The header of a block connects the transactions – any change in any transaction will
result in a change at the block header.
The headers of subsequent blocks are connected in a chain – the entire blockchain
needs to be updated if you want to make any change anywhere.
Because mining requires finding a valid nonce that satisfies the network's difficulty
level, modifying a transaction becomes computationally expensive, making the
blockchain tamper-proof.
Conclusion
Transactions in a block are securely stored and represented using a Merkle Tree, with the
Merkle Root included in the block header. This structure allows efficient verification of
transactions while ensuring that any modification to a transaction changes the block hash and
invalidates the subsequent blockchain, thereby maintaining the integrity and security of the
blockchain.
The primary objective of distributed consensus is to ensure that different nodes in the
network see the same data at nearly the same point in time. Every node must maintain an
identical copy of the blockchain to preserve consistency.
2. Regular Consensus on Data
All nodes in the network must agree (or reach consensus) regularly that the data stored by
them is the same. Before new transactions or blocks are added, participants verify and accept
them according to the network's consensus rules.
3. No Single Point of Failure
Distributed consensus eliminates the need for a central authority. Since the blockchain is
decentralized, data is stored across multiple nodes. Even if one or more nodes fail, the
remaining nodes continue to maintain the blockchain, ensuring uninterrupted service.
4. Fault Tolerance
The consensus mechanism allows the system to continue operating even in the presence of
failures or malicious nodes. As long as the required majority of honest participants agree,
the blockchain remains secure and functional.
5. Message-Passing Philosophy
From the early 1990s, significant research has focused on developing distributed consensus
algorithms. The basic philosophy is based on message passing, where each node
communicates its current state to other nodes. By exchanging information, nodes compare
their states and eventually agree on a common version of the data.
6. Limitation of Traditional Consensus
Traditional distributed consensus assumes that participants know each other and can
directly exchange messages. This assumption works well in closed or permissioned systems
but is not suitable for large public networks.
7. Consensus in Open (Permissionless) Networks
Blockchain introduces a new challenge: Can consensus be achieved when the network is
extremely large and participants do not know each other?
In a permissionless blockchain, users can participate without registering their identities.
Since participants are anonymous, traditional consensus techniques cannot be directly
applied.
8. Challenge–Response Based Consensus
To achieve consensus in permissionless networks, blockchain uses a challenge–response
mechanism.
The network presents a computational challenge.
Every node attempts to solve the challenge.
The first node to produce the correct solution earns the right to add the next block.
Module 1 – INTRODUCTION BLOCKCHAIN TECHNOLOGIES
Other nodes verify the solution and accept the block if it is valid.
This approach enables consensus among anonymous participants without requiring mutual
trust or prior knowledge of one another.
Conclusion
Distributed consensus is the foundation of blockchain technology. It ensures that all nodes
maintain the same data, eliminates single points of failure, provides fault tolerance, and
enables secure operation in decentralized networks. In permissionless blockchains, consensus
is achieved through challenge–response mechanisms, allowing thousands of anonymous
participants to agree on the state of the blockchain without relying on a central authority.
]
Q12. What are the challenges to permissionless consensus.
✑ The challenge-response protocol: The nodes in the network tries to solve the challenge
posed by the network
✑ The nodes or the participants do not need to reveal their identity
✑ The node that is able to solve the challenge first, would get to dictate what the next set of
data or state elements to be added should be
✑ This will continue iteratively at different rounds
✑ Design of a good challenge – ensures that different nodes will win the challenge at
different runs.
✑ This ensures that no node would be able to control the network
✑ The Bitcoin Proof of Work (PoW) algorithm – ensures consensus over a permission-less
setting based on challenge-response
[ChatGPT version:
A permissionless blockchain is an open network where anyone can participate without
obtaining prior approval or revealing their identity. Since there is no central authority and
participants are anonymous, achieving consensus becomes a major challenge. To address this,
permissionless blockchains use challenge–response protocols, such as the Proof of Work
(PoW) algorithm.
Challenges to Permissionless Consensus
1. Anonymous Participants
In a permissionless network, participants do not need to reveal their identity before
joining the blockchain. Since nodes cannot be identified or trusted beforehand, it becomes
difficult to determine who should validate transactions and add new blocks.
2. Challenge–Response Protocol
To achieve consensus, the network uses a challenge–response protocol.
Module 1 – INTRODUCTION BLOCKCHAIN TECHNOLOGIES
Conclusion
Permissionless consensus is challenging because participants are anonymous and no central
authority exists to coordinate the network. These challenges are overcome through
challenge–response protocols, where nodes compete to solve computational puzzles.
Bitcoin's Proof of Work (PoW) is a successful example of this approach, ensuring fairness,
decentralization, and secure consensus in an open blockchain network.
]
Q13. Write about the economics behind blockchain consensus.
✑ The challenge-response requires that every node spend large amount of computational
power to solve a mathematical challenge in each iteration of consensus.
✑ What is the incentive for nodes? Only one (or sometime a very few of them) will win in
each round
✑ The Digital Money
• Ensures operational efficiency
• More levels of controlling monetary policy
✑ 1998: Wei Dai published ‘b-money’ – an anonymous distributed cash system
✑ Cryptocurrency – a currency beyond the control of banks and governments
✑ The mining ensures that no node has the power to sabotage the network and gain control
✑ No one can hold the control of the cryptocurrency
✑ The computational effort expended by the nodes in achieving consensus would be paid for
by cryptocurrency generated and managed by the network
✑ Blockchain ensures that the currency is secure and tamper-proof.
✑ Given X and Y, find out k such that Y =H ¿ - used to solve the mining puzzle in Bitcoin
PoW
Collision Free:
✑ Hash functions are one-way, given a x , it is easy to find H (x ), however, given a H (x ), no
deterministic algorithm can find x
✑ It is difficult to find x and y , such that x ≠ y ; however H ( x )=H ( y )
✑ Note the phase difficult to find, collision is not impossible
✑ Try with randomly chosen inputs to find out a collision – but it takes too long
✑ It may be easy to find out collision for some hash functions
✑ Birthday Paradox: Find the probability that in a set of n randomly chosen people, some of
them will have the same birthday
✑ By Pigeonhole Principle, the probability reaches 1 when number of people reaches 366
(not a leap year) or 367 (a leap year)
✑ 0.999 probability is reached with just ~70 people, and 0.5 probability is reached with only
~23 people
✑ Every 512 bit block is further divided into 32 bit sub-blocks M (i) (i) (i)
0 , M 1 ,…, M 15
where:
C = SHA-256 compression function
Module 1 – INTRODUCTION BLOCKCHAIN TECHNOLOGIES
Q17. Define hash pointer and explain how it helps in detecting tampered data.
✑ A Cryptographic Hash Pointer is a pointer to a location where
✑ some information is stored
✑ Hash of the information is stored
✑ With the hash pointer, we can
✑ Retrieve the information
✑ Check that the information has not been modified (by computing the message digest and
then matching the digest with the stored hash value)
Module 1 – INTRODUCTION BLOCKCHAIN TECHNOLOGIES
✑ Four phases
✑ Key generation
✑ Key distribution
✑ Encryption
✑ Decryption
large positive integers 𝑒, 𝑑 and 𝑛; such that modular exponentiation for integers 𝑚
✑ It is feasible to find three very
(0≤𝑚<𝑛):
✑ Even if you know 𝑒𝑒, 𝑛𝑛 and 𝑚𝑚; it is extremely difficult to find 𝑑
Note that
✑ (𝑒,𝑛) is used as the public key and (𝑑,𝑛) is used as the private key. 𝑚 is the
message that needs to be encrypted.
RSA Key Generation and Distribution.
✑ Chose two distinct prime integer numbers 𝑝 and 𝑞
𝑝 and 𝑞 should be chosen at random to ensure tight security
✑ Compute 𝑛=𝑝q; 𝑛 is used as the modulus, the length of 𝑛 is called the key length
✑ Compute 𝜙𝑛= (𝑝−1)(𝑞−1) – Euler totient function
Choose an integer 𝑒 such that 1<𝑒<𝜙(𝑛) and gcd𝑒,𝜙𝑛=1; 𝑒 and 𝜙(𝑛) are co-prime
✑ Determine 𝑑=𝑒−1(mod(𝜙𝑛)) : 𝑑 is the modular multiplicative inverse of
𝑒(mod(𝜙𝑛)) [Note 𝑑.𝑒=1(mod(𝜙𝑛))]
[ChatGPT version:
RSA (Rivest–Shamir–Adleman) is one of the most widely used
public-key cryptographic algorithms. It is named after its
inventors Ron Rivest, Adi Shamir, and Leonard Adleman. RSA
uses two different keys:
Public Key – used for encryption and can be shared openly.
Private Key – used for decryption and kept secret by the receiver.
This allows anyone to encrypt data, but only the intended
receiver can decrypt it.
Module 1 – INTRODUCTION BLOCKCHAIN TECHNOLOGIES
Phases of RSA
RSA consists of four phases:
1. Key Generation
2. Key Distribution
3. Encryption
4. Decryption
1. Key Generation
The following steps are used to generate the RSA public and private
keys.
Step 1: Choose Two Prime Numbers
Select two large, distinct prime numbers: p and q
The values of (p) and (q) should be chosen randomly to ensure
strong security.
Step 2: Compute the Modulus
Calculate: n = p x q
The value n is called the modulus, and its size determines the key
length.
Step 3: Compute Euler's Totient Function
Calculate: 𝜙𝑛= (𝑝−1)(𝑞−1)
This value is required for generating the encryption and decryption
keys.
Step 4: Choose the Public Exponent
Choose an integer e such that: 1<𝑒<𝜙(𝑛)
And gcd𝑒,𝜙𝑛=1
This means e and 𝜙𝑛 must be co-prime.
Step 5: Compute the Private Exponent
Calculate d, the modular multiplicative inverse of e:
d=e−1(modϕ(n))
where:
m = original message
C = ciphertext
Since the public key is publicly available, anyone can perform
encryption.
4. Decryption
The receiver decrypts the ciphertext using the private key:
m = Cd (mod n)
Only the receiver knows the private key d, making it
computationally infeasible for others to recover the original
message.
Security of RSA
RSA security is based on the difficulty of determining the private key
d even if e, n, and the encrypted message are known.
Although the public key ((e,n)) is available to everyone, it is
extremely difficult to compute the private key because it requires
factoring the large number (n) into its prime factors (p) and (q),
which is computationally infeasible for sufficiently large keys.
Conclusion
RSA is a secure public-key cryptosystem used for key generation,
key distribution, encryption, and decryption. It uses a public key
((e,n)) for encryption and a private key ((d,n)) for decryption.
The security of RSA depends on the difficulty of factoring large
prime numbers, making it one of the most widely used algorithms
for secure communication and digital security.
Module 1 – INTRODUCTION BLOCKCHAIN TECHNOLOGIES
]
Q21. Apply public key cryptography to generate a digital signature.
✑ Properties of a cryptographic key (you need to prevent it from being guessed)
✑ Generate the key truly randomly so that the attacker can not guess it
✑ The key should be of sufficient length – increasing the length makes the key difficult to
guess
✑ The key should contain sufficient entropy, all the bits in the key should be equally random
✑ Two keys are used
✑ Private key: Only Alice has her private key
✑ Public key: “Public” to everyone – everyone knows Alice’s public key
Q22. How is cyptocurrency transmitted using hash chain and digital signature.
A Cryptocurrency using Hashchain and Digital Signatures
A:10, Sig(A)