0% found this document useful (0 votes)
6 views11 pages

Ch1 - Question and Solutions

kt paper

Uploaded by

forlogin830
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views11 pages

Ch1 - Question and Solutions

kt paper

Uploaded by

forlogin830
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Q. Define Blockchain ? Compare different types of blockchain.

(Dec 22, May 23, Dec 23,May 24


5M)
Q. What is a Merkle Tree? Explain the structure of a Merkle tree. (Dec 22, May 23, May 24, 5M)

Foundation of Blockchain: Merkle Tree


Overview

The Merkle Tree has been all over the place since 1979 when there was a man named Ralph Merkle at Stanford
University. Merkle wrote a paper titled “A Certified Digital Signature,” unknowingly creating a significant
blockchain component. In his paper, Merkle gave a description of a brand new method of proof-making.
Primarily, Merkle designed a data verification process that would allow computers to work much faster than
before. Merkle’s idea, now called the Merkle Tree, has fundamentally changed the world of cryptography,
including how encrypted computer protocols work. As a result, Merkle Trees has grown in popularity over the
years, especially in cryptocurrency. Many cryptocurrencies like Ethereum have also embraced Merkle Trees.

Working of Merkle Trees


A Merkle tree sums up all transactions in a block by generating a digital fingerprint of the whole set of operations, allowing
the user to check whether a transaction is included in a block. Merkle trees are created by repetitively hashing pairs of nodes
until only one hash is left, this hash is better called the Merkle Root or the Root Hash. They are constructed from the
bottom, from the hashes of individual transactions called Transaction IDs. Thus, every leaf node is a hash of transactional
data, and each non-leaf node is a hash of its previous hash. Merkle trees are binary and consequently require an equal
number of leaf nodes. If the figure of transactions is odd, the last hash will be matched once it creates an even number of
leaf nodes.

Example of a Merkle Tree

Why Merkle Trees are Essential to Blockchain

To grasp how important Merkle Trees are to blockchain technology, imagine a blockchain without them. We’re
going to apply to Bitcoin primarily because the usage of Merkle Trees is essential to cryptocurrencies but also
simple to understand. For example, if Bitcoin didn’t have Merkle Trees, every node on the network would need to
maintain a full copy of every transaction that has ever happened on Bitcoin. You can imagine how much
information it would have been. Any authentication request on Bitcoin would take an incredibly large packet of
data to be sent over the network, so you need to have it on your own to verify the data. A computer used for
validation would have to use a lot of processing power to compare ledgers to ensure that there were no changes.
Merkle Trees fix this problem. They hash records in the accounting, which efficiently segregates the data proof
from the data itself. Proving that a transaction is valid only includes giving small amounts of information across
the network. Besides, it allows you to demonstrate that both variants of the ledger are the same for titular amounts
of computing power and network bandwidth.

Advantages of Merkle Tree:

1. Efficient verification- Merkle trees offer efficient verification of integrity and validity of data and
significantly reduce the amount of memory required for verification. The proof of verification does not require a
huge amount of data to be transmitted across the blockchain network. Enable trustless transfer of cryptocurrency
in the peer-to-peer, distributed system by the quick verification of transactions.
2. No delay- There is no delay in the transfer of data across the network. Merkle trees are extensively used
in computations that maintain the functioning of cryptocurrencies.
3. Less disk space- Merkle trees occupy less disk space when compared to other data structures.
4. Unaltered transfer of data- Merkle root helps in making sure that the blocks sent across the network are
whole and unaltered.
5. Tampering Detection- Merkle tree gives an amazing advantage to miners to check whether any
transactions have been tampered with.
· Since the transactions are stored in a Merkle tree which stores the hash of each node in the upper parent
node, any changes in the details of the transaction such as the amount to be debited or the address to whom the
payment must be made, then the change will propagate to the hashes in upper levels and finally to the Merkle
root.
· The miner can compare the Merkle root in the header with the Merkle root stored in the data part of a block
and can easily detect this tampering.
Importance

Merkle Trees are vital because they make Merkle proof possible. These enable us to quickly verify that the input
was included in the specific data set and in what order. Merkle Trees are effective, too. They allow us to compress
large data sets by removing all unnecessary branches while keeping the only ones we need to prove. In the world
of Blockchain, this means that Merkle Trees provides the following critical features:

· Ability to verify that a transaction is included in a block


· Light-clients
· Full efficiency and scalability
· Simplified Payment Authentication

Q. State and Explain various challenges that occur while implementing blockchain.(Dec 22, 10 M)

CHALLENGES

The principal challenge associated with blockchain is a lack of awareness of the technology, especially in
sectors other than banking, and a widespread confusion on how it works. In addition, there are also the
following factors that need to be addressed.

1. Transaction Processing Speed

One of the other challenges faced by blockchain is the scalability in the speed of transaction
processing. Unlike what people believe, the most popular cryptocurrency Bitcoin can process only an
average of 7 transactions per second. At the same time, Visa can process 24000 transactions per second,
and PayPal can handle about 200 transactions Per second. Bitcoin Cash can transact about 50 to 60
transactions per second, but it is still low compared to Visa. Among all the cryptocurrencies, Ethereum
is relatively slow and can negotiate only about 20 transactions per second. With the growing size and
complexity of Ethereum Blockchain, the transaction speed has been impacted, and sometimes,
transactions take hours to get verified or are not verified at all.
Directed Acyclic Graph (DAG) has a solution to address the issue of low transaction speed
DAG has solved this by confirming transactions on a per-transaction basis rather than on a block-to-block
base. Instead of waiting for miners to process a large block of transactions DAG makes it possible for
users to handle each other’s transactions on a microscale, thereby reducing transaction costs and making
it faster

2. Complexity
The underlying technology of blockchain is very complicated for beginners to understand since
the code consists of a lot of mathematical calculations. The technology of blockchain is at its infancy in
terms of maturity; this has many new processes, standards, and technical aspects. Also, another aspect of
blockchain is that it relies on decentralization and cryptography as the main backbone, which further adds
to its complexity. Because of this. various challenges arise in its functionalities, such as the speed of
transaction, The process the transaction, and the limits on data that can be sent or received. Another
dimension to the complexity of blockchain technology is the size of its network Just like any
decentralized system, blockchain is susceptible to fraudulent actors who be able to corrupt the network.
To have a stable blockchain network, it needs to have many users and nodes connected with a robust
network algorithm.

3. Implementation and Operation Cost


Even though blockchain benefits users with low transaction costs, the underlying technology of
blockchain and its implementation cost are not small.
Four inputs predominantly impact the costs of both public and private blockchain solutions and depend
entirely on the use case and the objectives an organization alms to accomplish. There are additional
inputs to consider, but the most influential are:
· Transaction volume
· Transaction Size
· Node hosting methods
· Consensus protocol.
Each of these uses high computing power with an increase in the size of blockchain with additional
nodes and external integrations added. These all add to the operating costs. The development of
blockchain solutions usually follows the agile process, which also adds to the costs with participation
from different stakeholders of Business and IT.

4. Storage Constraints
Under the blockchain, the data is stored by every full node in the network indefinitely since the
database in blockchain is append-only and immutable. Therefore, storage remains a considerable
challenge for practical applications that are built on the blockchain,
To achieve fast transaction speed in blockchain, the data and the load on the nodes have to be cut
down, which is the main challenge. As of now, each node has to store the entire data. So if the blockchain
can have a mechanism that can allow the nodes to store only the data that is mostly used or locally
relevant data for processing transactions, we can process transactions faster. Such solutions can make
blockchain more efficient, and there is a need to research on such solutions to overcome the storage
constraints.

5. Energy and Resource Consumption


With additional nodes being added to the blockchain, it grows in size and the number of
transactions also increases, which in turn results in the need for more resources and infrastructure to run.
Miners need to validate every block in a blockchain. With an Increase in the size of the blockchain, the
time and effort required from miners to veri$t the network also drastically increases.

To validate transactions, miners need to come up many mathematical solutions, and they require substantial units
of computing power to do that. Since each node has extreme limits offault tolerance to ensure zero downtime,
With high levels of security of network and data, the average cost of running the blockchain is also high based on
the robust hardware infrastructure needed. All this means heavy energy consumption.
Q. List and explain various types of nodes used in ethereum.
Q. Explain the concept of an orphaned block.(May 24, 5M)

You might also like