Unit 4
Unit 4
0 Security
Prof. Gazy Abbas
Cyber security trainer
Unit - 4
Web 3.0 Integration
Evaluation of Web
The evolution of the web
can be divided into three
distinct stages: Web 1.0,
Web 2.0, and Web 3.0. Each
stage reflects significant
changes in the way users
interact with the internet and
how information is created,
shared, and consumed.
Introduction to Web 1.0
The era of Web 1.0 was roughly from 1991 to 2004. Web 1.0 refers to the first stage
of the World Wide Web evolution. Earlier, there were only a few content creators in
Web 1.0 with a huge majority of users who are consumers of content. Personal web
pages were common, consisting mainly of static pages hosted on ISP-run web
servers, or free web hosting services.
Characteristics of Web 1.0
Read-Only Content: Web 1.0 is often referred to as the "read-only web." It was
characterized by static web pages where users could view information but had
limited ability to interact with or modify the content.
Static HTML Pages: Websites were built using static HTML pages. Content
was manually updated by webmasters.
Limited Interactivity: User interaction was minimal. There were few options
for user-generated content, and interaction was mostly limited to filling out
forms or clicking hyperlinks.
Simple Web Design: Basic design with text and images, limited multimedia and
graphics
Web 1.0 Contd..
Web 1.0 Contd..
Web 1.0 Contd..
Introduction to Web 2.0
Web 2.0 refers to the second generation of the World Wide Web, which emphasizes
user-generated content, usability, and interoperability. Unlike its predecessor, Web
1.0, which was largely static and read-only, Web 2.0 is dynamic and interactive,
allowing users to participate in content creation and collaboration. The era of web 2.0
started from 2004.
Features of Web 2.0
1. User-Generated Content: Platforms like blogs, wikis, and social media allow
users to create, share, and manage content.
2. Rich User Experience: Web 2.0 sites use AJAX and other technologies to create
more interactive and responsive user interfaces.
5.Collaboration: Tools like Google Docs, Dropbox, and Trello allow for real-time
collaboration and sharing.
6. Tagging and Folksonomies: Users can tag content, making it easier to find and
categorize information.
7.API Integration: Many Web 2.0 applications provide APIs, enabling different
services to interact and share data.
4. APIs and Web Services: RESTful APIs and SOAP allow different web
services to interact and exchange data.
HTML/CSS: The structure and styling of the dApp's frontend are built using standard
web technologies like HTML and CSS. These define the layout, design, and overall
look of the dApp.
JavaScript: JavaScript, often along with modern frameworks like React.js, Vue.js, or
Angular, is used to create a dynamic and responsive UI.
Components of DApps
Web3.js or Ethers.js
Web3.js or Ethers.js are libraries used in the frontend to interact with the Ethereum
blockchain (or other compatible blockchains). These libraries allow the dApp to read
from and write to the blockchain, such as executing smart contracts, fetching data,
or sending transactions.
Smart Contracts:
Smart contracts are self-executing contracts with the terms of the agreement
directly written into code. They are deployed on the blockchain and form the core
logic of a dApp’s backend. All critical operations, such as transferring assets,
executing transactions, or managing user interactions, are handled by smart
contracts.
Immutability: Once deployed, smart contracts cannot be altered. This ensures that
the rules and logic are consistently enforced, but it also requires careful design and
testing before deployment to avoid bugs and vulnerabilities.
Components of DApps
Example: In a decentralized finance (DeFi) dApp, a smart contract might handle
lending and borrowing, calculating interest, and ensuring that all transactions follow
the predefined rules.
Blockchain Interaction:
Data Storage: Data directly related to the application’s functionality, such as token
balances, user transactions, or smart contract states, is stored on the blockchain.
This data is accessible to all nodes in the network, ensuring transparency and
security.
State Changes: Any interaction that changes the state of the dApp, such as
transferring tokens or updating a smart contract, is recorded on the blockchain as a
transaction. These transactions are validated by the network and added to the
blockchain’s immutable ledger.
Applications of DApps
DApps can be used in various sectors, offering unique benefits:
Social Media: Platforms like Steemit and Minds reward users for content creation
and engagement using cryptocurrency.
Applications of DApps
Supply Chain: DApps can enhance transparency and traceability in supply chains.
For example, VeChain tracks products from production to delivery.
• Email DApp
Dmail is a decentralized email service leveraging blockchain technology
to enhance privacy and security in email communications.
• Gaming DApp
Axie Infinity Infinity is a blockchain-based game where players collect, breed,
and battle fantasy creatures called Axies.
Use cases of integrating blockchain with web 3
Secure Online Payments:
Blockchain enables secure and efficient online payments without
intermediaries, Enhancing security and lower transaction costs for online
transactions.