Module 2 Public Blockchain System
Module 2 Public Blockchain System
SYSTEM
Prepared By:
Palak Desai
Assistant Professor
SCET, Surat
Introduction Public Blockchain
• The core component of blockchain technology is a decentralized database.
• This decentralized nature of the blockchain means that no one has to know or trust
anyone else.
• Each node in the network has a copy of the exact same data in the form of a distributed
ledger. If any member ledger is corrupted or altered then it will be rejected by the
majority of the members in the network.
• It maintains trust among the whole community of users as everyone in the network feels
motivated to work towards the improvement of the public network.
Features:
- Permissionless
- Decentralized System
- Anonymity
- No regulation
- Security
Disadvantages:
1. Lower TPS(Transaction per Second)
2. Scalability Issue
3. High Energy Consumption
• Bitcoin (BTC) is a cryptocurrency, a virtual currency designed to act as money and a form
of payment outside the control of any one person, group, or entity, thus removing the
need for third-party involvement in financial transactions.
• It is rewarded to blockchain miners for the work done to verify transactions and can be
purchased on several exchanges.
• Bitcoin uses the SHA-256 hashing algorithm to encrypt the data stored in the blocks on
the blockchain
• There are 3 ways you can get a bitcoin in your electronic storage:
- Mine Bitcoins
- Trade Money For Bitcoin
- Trade Goods For Bitcoin
• Transactions are placed into a queue to be validated by miners within the network.
Miners in the Bitcoin blockchain network all attempt to verify the same transaction
simultaneously.
• When a transaction is verified, a new block is opened, and a Bitcoin is created and given
as a reward to the miner(s) who verified the data within the block—they are then free to
use it, hold it, or sell it.
• dApps can be decentralized because they are controlled by the logic written into the contract, not
an individual or company. This also means you need to design your contracts very carefully and
test them thoroughly.
• A DAO is intended to improve the traditional management structure of many companies. Instead
of relying on a single individual or small collection of individuals to guide the direction of the
entity, a DAO intends to give every member a voice, vote, and opportunity to propose initiatives.
A DAO also strives to have strict governance that is dictated by code on a blockchain.
• Members of a DAO own tokens of the DAO, and members can vote on initiatives for the entity.
Smart contracts are implemented for the DAO, and the code governing the DAO's operations is
publicly disclosed.
• Once the contract is live on Ethereum, no one can change the rules except by a vote.
• If anyone tries to do something that's not covered by the rules and logic in the code, it will fail.
And because the treasury is defined by the smart contract too that means no one can spend the
money without the group's approval either.
• This means that DAOs don't need a central authority. Instead, the group makes decisions
collectively, and payments are automatically authorized when votes pass.
• Just like a traditional contract is enforceable by law, smart contracts are enforceable by
code.
Smart contracts do not contain the legal language or terms of a contract between two parties.
They are scripts that contain if/then statements, functions, module imports, and other
programming that automate the actions specified in a contract.
• Because smart contracts execute agreements, they can be used for many different purposes. One
of the simplest uses is ensuring transactions between two parties occur, such as the purchase and
delivery of goods.
• For example,
-A manufacturer needing raw materials can set up payments using smart contracts, and the supplier can
set up shipments. Then, depending on the agreement between the two businesses, the funds could be
transferred automatically to the supplier upon shipment or delivery.
• Real estate transactions, stock and commodity trading, lending, corporate governance, supply
chain, dispute resolution, and healthcare are only a few examples where smart contracts can be
used
• He defined smart contracts as computerized transaction protocols that execute the terms of a
contract.
• A smart contract can also be defined as a piece of computer code that runs on the top of the
blockchain network. It says that how the involved parties can communicate with each other by a
set of rules. If it is meeting the predefined rules, automatically agreement is done.
• It is automatically done on a virtual platform when this contract has been executed.
Cons:
• Permanent: They cannot be changed if there are mistakes
• Human factor: They rely on the programmer to ensure the code addresses the terms of the
contract
Transparent It is visible to everyone on the public network, anyone can see what a smart contract is.
Near real-time On the distributed network, throughput is highly dependent on congestion, simultaneous execution of contracts for all
execution parties.
Once the required criteria are satisfied the execution is almost real-time.
Accurate Smart contract is a set of protocols agreed by involved parties. It is simple and accurate as it doesn’t have any relevance
with legal agreements.
Trustless Involvement of a third party is not required for the verification process as it is verified by anonymous nodes and no one
can alter the copy because there is no involvement of a third party.
Deterministic Smart contracts can only perform functions for which they are designed only when the required conditions are met.
The final outcome will not vary, no matter who executes the smart contract.
Types of Smart
Contract
Decentralized
Application Logic
Smart Legal Contract Autonomous
Contracts (ALCs)
Organizations (DAO)
Examples:
• Digital will
• A legal agreement between two organization
• It is a digital DAO and a form of shareholder heading for venture capital funds.
• It was activated on Ethereum blockchain and had no traditional board of directors.
• It was built upon the idea that no one is authorized to access the asset without the approval of
the whole group.
• These contracts contain an application-based code, which typically remains in sync with
other blockchain contracts. It enables communication across different devices, such as
the Internet of Things (IoT) merger with blockchain technology.
• Once any data is reported to a blockchain, that data becomes an integral and immutable part of
the blockchains’ history that cannot be removed.
• Any incorrect execution of the smart contract based on that data will cause irreparable damage to
your contract.
• As the blockchain problem reaches consensus, one cannot provide external information related to
transaction data since other nodes would know that the information is being derived from an
“untrusted” source.
• Therefore, information should ideally come from a third-party source that is reliable for all nodes,
which is the oracle.
2. Hardware Oracles:
These oracles convert physical occurrences into machine-readable values that smart contracts
can use. Electronic sensors, barcode scanners, and other reading devices could be used to
obtain such data.
3. Consensus Oracles:
This is an attempt towards decentralized and distributed oracles that reply on collecting data
from various oracles with predefined methods to verify authenticity and accuracy.
• All in one, oracles offer an interface between ordinary networks and blockchain networks.
• On the other hand, oracles are from a centralized point and they require third party intervention
for permission.
• The authenticity of the outside data is also important and as oracles are third-party services,
security is the bottleneck for the blockchain network.
4. Shipping
- 90% of international trade is carried with ships. The typical shipping process involves many parties
and many documents.
- The massive amount of documents and parties involved can easily cause inefficiencies and
problems along the supply chain due to communication and disagreement between parties.
- Smart contracts can solve this problem by providing a single source where all information is stored
in a unified format that can be easily communicated to the relevant parties.
-TradeLens,a joint venture between IBM & Mersek, uses smart contracts to facilitate collaboration
between parties in international trade.
2. https://ethereum.org/
3. https://www.investopedia.com/terms/b/bitcoin.asp