Unit 5 BC Appli
Unit 5 BC Appli
BLOCKCHAIN
APPLICATIONS
Smart contracts, Truffle Design and issue-Blockchain Applications in
Supply Chain Management, Logistics, Smart Cities, Finance and Banking,
Insurance,etc- Case Study.
Smart Contract
Smart Contract
• A smart contract is a computer program stored on a blockchain that
automatically executes actions (like transferring money, verifying a
condition, or issuing a token) when predefined conditions are met.
• A smart contract is simply a program that runs on the Ethereum
blockchain (or similar blockchains).
• It consists of:
• Code (its functions and logic)
• Data (its state or variables)
• It resides at a specific address on the blockchain, called the contract
address.
Key Properties of Smart Contracts
Property Meaning
Automatically runs when triggered.(when
Self-executing predefined conditions are met.
Once deployed, cannot be changed(unless special
Immutable
upgrade mechanisms are built-in.)
Distributed Stored across all nodes on a blockchain.
Transparent Anyone can verify the contract and its execution.
Trustless No need to trust intermediaries or middlemen.
Secure Cryptographically protected and tamper-proof.
Result Recording
• The blockchain stores the result of the execution permanently.
• Every node in the blockchain network updates its copy of the ledger.
Key Characteristics During Functioning
Feature Explanation
Deterministic Every node executes the contract the same way.
Immutable Once deployed, logic cannot be changed easily.
No need to trust a third party; blockchain enforces
Trustless
rules.
After deployment, no one needs to manage it
Autonomous
manually.
Executing smart contract functions costs gas (ETH in
Gas Fee Required
Ethereum).