Notes 1163 UNIT1
Notes 1163 UNIT1
verifiable.
Types of Blockchain
Public blockchain
How it works. The first type of blockchain technology is public blockchain. This is
where cryptocurrency like Bitcoin originated and helped to popularize distributed ledger
technology (DLT). It removes the problems that come with centralization, including less
security and transparency. DLT doesn't store information in any one place, instead
distributing it across a peer-to-peer network. Its decentralized nature requires some
method for verifying the authenticity of data. That method is a consensus algorithm
whereby participants in the blockchain reach agreement on the current state of the ledger.
Proof of work (PoW) and proof of stake (PoS) are two common consensus methods.
Public blockchain is non-restrictive and permissionless, and anyone with internet access
can sign on to a blockchain platform to become an authorized node. This user can access
current and past records and conduct mining activities, the complex computations used to
verify transactions and add them to the ledger. No valid record or transaction can be
changed on the network, and anyone can verify the transactions, find bugs or propose
changes because the source code is usually open source.
Advantages. One of the advantages of public blockchains is that they are completely
independent of organizations, so if the organization that started it ceases to exist the
public blockchain will still be able to run, as long as there are computers still
connected to it. "Some blockchains incentivize users to commit computer power to
securing the network by providing a reward," noted James Godefroy, a senior
manager at Rouse, an intellectual property services provider.
"You can think of private blockchains as being the intranet, while the public
blockchains are more like the internet," Godefroy said.
Because they're limited in size, private blockchains can be very fast and can process
transactions much more quickly than public blockchains.
Additionally, the source code from private blockchains is often proprietary and
closed. Users can't independently audit or confirm it, which can lead to less security.
There is no anonymity on a private blockchain, either.
Hybrid blockchain
How it works. Sometimes, organizations will want the best of both worlds, and they'll
use hybrid blockchain, a type of blockchain technology that combines elements of both
private and public blockchain. It lets organizations set up a private, permission-based
system alongside a public permissionless system, allowing them to control who can
access specific data stored in the blockchain, and what data will be opened up publicly.
Typically, transactions and records in a hybrid blockchain are not made public but can be
verified when needed, such as by allowing access through a smart contract. Confidential
information is kept inside the network but is still verifiable. Even though a private entity
may own the hybrid blockchain, it cannot alter transactions.
When a user joins a hybrid blockchain, they have full access to the network. The user's
identity is protected from other users, unless they engage in a transaction. Then, their
identity is revealed to the other party.
Advantages. One of the big advantages of hybrid blockchain is that, because it works
within a closed ecosystem, outside hackers can't mount a 51% attack on the network. It
also protects privacy but allows for communication with third parties. Transactions are
cheap and fast, and it offers better scalability than a public blockchain network.
Consortium blockchain
How it works. The fourth type of blockchain, consortium blockchain, also known as a
federated blockchain, is similar to a hybrid blockchain in that it has private and public
blockchain features. But it's different in that multiple organizational members collaborate
on a decentralized network. Essentially, a consortium blockchain is a private blockchain
with limited access to a particular group, eliminating the risks that come with just one
entity controlling the network on a private blockchain.
In a consortium blockchain, the consensus procedures are controlled by preset nodes. It
has a validator node that initiates, receives and validates transactions. Member nodes can
receive or initiate transactions.
What is decentralization?
Decentralization in blockchain refers to the transfer of authority and decision-making
from a centralized entity (person, organization, or group thereof) to a distributed
network.
Decentralized networks are designed to reduce the amount of trust that members must
have in one another and to prevent members from abusing power or authority in ways
that undermine the network's functionality.
Decentralization's Advantages
Following are the advantages of decentralization −
Provides a trustless environment − No one has to know or trust anybody other in a
decentralized blockchain network. In the form of a distributed ledger, each member of
the network owns a copy of the exact same data. If a member's ledger is tampered with
or corrupted in any manner, the majority of the network's members will reject it.
Increases the accuracy of data reconciliation − Companies frequently share
information with their partners. This data is then changed and kept in each party's data
silos, only to be resurfaced when it's time to transfer it downstream. Each time data is
converted, the possibility of data loss or inaccurate data entering the workstream
increases.
Points of vulnerability are reduced − Decentralization can help to mitigate sources of
vulnerability in systems when single actors are overly reliant. Systemic failures might
result from these flaws, such as the inability to provide promised services or inefficient
service owing to resource exhaustion, recurrent outages, bottlenecks, a lack of
appropriate incentives for effective service, or corruption.
Distributes resources more efficiently − Decentralization may also aid in resource
distribution optimization, ensuring that promised services are delivered with improved
performance and consistency, as well as a lower risk of catastrophic failure.
Transparent − Because decentralized blockchains are available to the public, they are
transparent. The blockchain is open to everyone with an internet connection. Each
participating node keeps a single copy of the data.
Full Control − With decentralization, the blockchain's members or users have complete
authority over the activities. Because there is no central authority, all of the blockchain's
data, control, and power are in the hands of its users.
Immutable − The data contained in a blockchain in a decentralized blockchain is nearly
hard to alter. Because each alteration must be confirmed by each node in the blockchain
network, this is the case.
Secure − Decentralized blockchains are far more secure than centralized blockchains
because they employ encryption to protect data. Furthermore, the data in the current
block requires data from the preceding block to be cryptographically confirmed.
Today, there are many platforms available for decentralization. In fact, the fundamental
feature of blockchain networks is to provide decentralization. Therefore, any blockchain
network, such as Bitcoin, Ethereum, Hyperledger Fabric, or Quorum, can be used to
provide a decentralization service. Many organizations around the world have introduced
platforms that promise to make distributed application development easy, accessible, and
secure. Some of these platforms are described as follows.
Ethereum
Ethereum tops the list as being the first blockchain to introduce a Turing-complete
language and the concept of a virtual machine. This is in stark contrast to the limited
scripting language in Bitcoin and many other cryptocurrencies. With the availability of its
Turing-complete language, Solidity, endless possibilities have opened for the
development of decentralized applications. This blockchain was first proposed in 2013 by
Vitalik Buterin, and it provides a public blockchain to develop smart contracts and
decentralized applications. Currency tokens on Ethereum are called ethers.
You're probably thinking: "I'm not a lawyer! Why would I care about
contracts?". For most people, contracts bring to mind needlessly long terms
and conditions agreements or boring legal documents.
Contracts are just agreements. That is, any form of agreement can be
encapsulated within the conditions of a contract. Verbal agreements or pen-
and-paper contracts are acceptable for many things, but they aren't without
flaws.
One of the biggest problems with a traditional contract is the need for trusted
individuals to follow through with the contract's outcomes.
Here is an example:
Alice and Bob are having a bicycle race. Let's say Alice bets Bob $10 that she
will win the race. Bob is confident he'll be the winner and agrees to the bet. In
the end, Alice finishes the race well ahead of Bob and is the clear winner. But
Bob refuses to pay out on the bet, claiming Alice must have cheated.
This silly example illustrates the problem with any non-smart agreement. Even
if the conditions of the agreement get met (i.e. you are the winner of the race),
you must still trust another person to fulfill the agreement (i.e. payout on the
bet).
Smart contracts
The vending machine will only dispense your desired product after all
requirements are met. If you don't select a product or insert enough money,
the vending machine won't give out your product.
Automatic execution
One of the most significant benefits smart contracts have over regular
contracts is that the outcome is automatically executed when the contract
conditions are realized. There is no need to wait for a human to execute the
result. In other words: smart contracts remove the need for trust.
For example, you could write a smart contract that holds funds in escrow for a
child, allowing them to withdraw funds after a specific date. If they try to
withdraw the funds before the specified date, the smart contract won't
execute. Or, you could write a contract that automatically gives you a digital
version of a car's title when you pay the dealer.
Predictable outcomes
The human factor is one of the biggest points of failure with traditional
contracts. For example, two individual judges may interpret a traditional
contract in different ways. Their interpretations could lead to different
decisions getting made and disparate outcomes. Smart contracts remove the
possibility of different interpretations. Instead, smart contracts execute
precisely based on the conditions written within the contract's code. This
precision means that given the same circumstances, the smart contract will
produce the same result.
Public record
Smart contracts are also useful for audits and tracking. Since Ethereum smart
contracts are on a public blockchain, anyone can instantly track asset transfers
and other related information. You can check to see that someone sent money
to your address, for example.
Privacy protection
Visible terms
Finally, like contracts, you can check what's in a smart contract before you sign
it (or otherwise interact with it). Better yet, public transparency of the terms in
the contract means that anyone can scrutinize it
REFERENCES:
1. https://ethereum.org/en/smart-contracts/
2. https://ethereum.org/en/developers/docs/smart-contracts/
3.https://subscription.packtpub.com/book/data/9781839213199/2/ch02lvl1se
c15/platforms-for-decentralization
4. https://www.techtarget.com/searchcio/feature/What-are-the-4-different-
types-of-blockchain-technology
5.https://www.tutorialspoint.com/what-is-decentralization-in-blockchain
6. https://www.geeksforgeeks.org/blockchain-and-distributed-ledger-
technology-dlt/