IS4302_week_8_Fall 2024
IS4302_week_8_Fall 2024
IS4302_week_8_Fall 2024
IS4302
Blockchain and Distributed
Ledger Technologies
Week 8
2
Overview
3
Overview
4
What Are NFTs?
7
NFTs
• NFT Digitize.
• An NFT owner checks that the file, title, description are
completely accurate. Then, s/he digitizes the raw data into a
proper format.
• NFT Store
• An NFT owner stores the raw data into an external database
outside the blockchain.
• S/he is also allowed to store the raw data inside a blockchain,
despite this operation is gas-consuming.
• NFT Sign
• The NFT owner signs a transaction, including the hash of NFT
data, and then sends the transaction to a smart contract.
9
An example workflow of NFT system
• NFT Mint&Trade
• After the smart contract receives the transaction with the
NFT data, the minting and trading process begins.
• NFT Confirm
• Once the transaction is confirmed, the minting process
completes.
• By this approach, NFTs will forever link to a unique
blockchain address as their persistence evidence.
10
An example workflow of NFT system
11
Value of NFT
• Liquidity
• Uniqueness
• Social value
• Speculation
• …
12
Challenges
• Usability Challenges
• Slow confirmation
• High gas prices
• Data inaccessibility
• A cryptographic hash as the identifier, instead of a copy
of the file, will be tagged with the token and then
recorded on the blockchain to save the gas.
• More generally, oracle problem
• Legal pitfalls
• Taxable property issues
• NFT Interoperability (cross-chain)
• …
13
NFTs Overview:
15
Overview
16
Mutex (Mutual exclusion)
17
Mutex
18
Mutex
19
Mutex
20
Emergency Stop
21
Emergency Stop
22
Speed Bump
23
Speed Bump
24
Speed Bump
25
Rate limit
26
Rate limit
27
Balance limit
28
Balance limit
29
Overview
30
Design Taxonomy of Blockchain Systems
• Architectural Configurations:
• Blockchain Scope: Public, Consortium, Private.
• Data Structures: GHOST, BlockDAG, Segregated Witness
(SegWit). 31
Design Taxonomy of Blockchain Systems
• Architectural Configurations:
• Blockchain Scope: Public, Consortium, Private.
• Data Structures: GHOST, BlockDAG, Segregated Witness
(SegWit). 32
Storage and Computation
33
Item Data
34
Item Data – On Chain
• Bitcoin
• Originally Bitcoin allowed the storing of small amounts
of data (40-80 bytes) in “OP_Return script” for about $3-
8 each. This was later deprecated as the core devs felt that
it created confusion and bloated the Bitcoin UTXO
database
35
Item Data – On Chain
• Ethereum
• In smart contracts every transaction has a fixed cost of
21,000 gas, and every non-zero byte of data costs an
additional 68 gas.
• Data can also be stored as log events. Logged data is
stored in log topics which cost 21,375 gas, where every
byte costs an additional 8 gas.
36
Item Data – Off Chain
37
Item Data – Off Chain
38
Item Data – Off Chain
39
IPFS – Video
https://youtu.be/k1EQC7tdh70?si=LePqswFZYTw5bZA7&t=
22
40
Architectural Design Configurations
• Considerations
• Scope: Public, Consortium, Private
• Data Structure: Chains, DAGs, etc.
• Consensus Protocols: PoW, PoS, etc.
41
Blockchain Scope: Public, Consortium, or Private
42
Blockchain Scope: Public, Consortium, or Private
• Public:
• Free entry to use or validate/mine
• Consortium:
• Designated set of validators
• Used across multiple organizations or multiple divisions
in an organization
• Private
• One designated validator node
43
Blockchain Scope: Public, Consortium, or Private
44
Blockchain Scope: Public, Consortium, or Private
• Public:
• Free entry to use or validate/mine
• Consortium:
• Designated set of validators
• Used across multiple organizations or multiple divisions
in an organization
• Private
• One designated validator node
45
Public Blockchain
• Best for: Open and transparent applications where anyone can participate.
• Use Cases:
• Decentralized Applications (DApps): Where transparency and immutability are
crucial.
• Public Data Sharing: When you want to enable broad access and visibility to
information.
46
Consortium Blockchain
• Use Cases:
• Business Partnerships: Where multiple entities need a secure and
private way to interact and share data.
• Governance: When controlled participation is needed but still benefits
from decentralized principles.
• Best for: Internal use within a single organization with specific needs for
control and privacy.
• Examples: Corporate data management, internal audit systems, logistics
tracking.
• Use Cases:
• Enterprise Solutions: Where data privacy and speed are essential, and
trust is not a major issue.
• Regulated Environments: Industries that must adhere to strict data
security and compliance standards.
• Pros: High transaction speed, low energy consumption, full control over
access and modifications.
• Cons: Less secure against external attacks, lacks the transparency of public
blockchains. 48
Scope Summary
49
Data Structures
• Blockchains
• GHOST
• BlockDAG
• Segregated Witness
50
Blockchain – Original Design
51
Blockchain Trilemma
52
Greedy Heaviest-Observed Sub-Tree (GHOST)
53
Block Directed Acyclic Graph (DAG)
54
Block Directed Acyclic Graph (DAG)
55
Block Directed Acyclic Graph (DAG)
56
Block Directed Acyclic Graph (DAG)
57
Segregated Witness (SegWit)
58
Segregated Witness (SegWit)
60
Cross Chain Interoperability
• Importance
• Wide proliferation of various chains with different features
• Desire to move assets or information from one chain to
another
• Desire to interface with traditional web2 and company
databases
• Benefits
• Customizable Web3 Services
• Allows “mix and match” lego pieces
• Creates more decentralized overall ecosystem
61
Cross Chain Interoperability – Wide Ecosystem
62
Cross Chain Interoperability
63
Cosmos
https://youtu.be/jj299iVoKwc?si=xuajOiTihgc6v0qd&t=45
64
Cross Chain Interoperability
• Oracles
• Chainlink and API3 feed off-chian data into blockchain
enabled smart contracts to allow each chain to “see” what
is going on in other chains and ensure a common source
of truth
66
Cross Chain Interoperability
67
Decentralized Exchanges
https://www.youtube.com/watch?v=2tTVJL4bpTU
68
Summary
70