SlideShare a Scribd company logo
Unit I
Block chain - Day 3
Components and structure of
blockchain
Components and structure of
blockchain
• Topics
- Blocks, The chain between blocks
- Hashing and signatures
- Block structure
- Block validators
- Smart contracts
- Block chain speed
Blocks
• A block in a blockchain is a fundamental component that carries crucial data about
transactions.
• When a transaction occurs, be it the transfer of a cryptocurrency like bitcoin or a
data exchange in a supply chain, the details are packaged into a digital structure
known as a block.
• A block contains not only the transaction data but also a timestamp marking when
the transaction occurred.
• As such, each block contains a unique identifier called a "hash." This alphanumeric
string acts as a digital fingerprint for the block, providing a way to confirm
transactions on the blockchain.
• The hash is a result of a complex mathematical process, and even a minor change
in the transaction data would generate a completely different hash, making the
blockchain highly secure against fraud and manipulation.
• Another important term related to the structure of a block is "nonce," an acronym
for "number used only once." This is an arbitrary bit of text that miners add in to
change the hash that the block produces.
• Block time – Approximate amount of time that each
block represents for transactions
Eg:2 minutes – 4 transactions.
If 100000 transactions happen, they have to wait for
their turn for an open block with space.
Some blockchains handle this prob with
network fees( amount that a sender is willing to pay to
have a transaction to be included in the block,Higher
the fee, greater the priority to be included in the
chain)
• Block size –The total amount of transactions that a
block can handle
blocks
blockchain class 3.pdf
blockchain class 3.pdf
Block chain structure
blockchain class 3.pdf
header of an Ethereum block
• Hash of the previous block: Every block
header gives information about the previous
or parent block. This field contains the hash
value of the previous block and this reference
connects all the blocks. The size of this field is
32 bytes.
• Version: This field stores the version number
to show software upgrades. The size of the
version field is 4 bytes.
blockchain class 3.pdf
Hashing and signatures
• Hashing-Hashing (or a hashing function) is a
mathematical procedure by which any input is
turned into a fixed-length output.
• Eg:SHA-1, SHA-2, and MD5.
• Output of a hashing function called MD5 with
an input of two pages of text:
9a137a78cf0c364e4d94078af1e221be
Hashing and signatures
• Hashing-Hashing (or a hashing function) is a
mathematical procedure by which any input is
turned into a fixed-length output.
• Eg:SHA-1, SHA-2, and MD5.
• Output of a hashing function called MD5 with
an input of two pages of text:
9a137a78cf0c364e4d94078af1e221be
Properties of hash function
• They are very fast for computers to run.
• The function is one way. You can get the hash
easily, but you cannot realistically use the
hash to restore the original.
• They can be used recursively.
blockchain class 3.pdf
blockchain class 3.pdf
blockchain class 3.pdf
blockchain class 3.pdf
The key properties of the hash function make it reliable.
Deterministic → This means that the output will be the same for the
given input in any given circumstances.
Preimage Resistant → The preimage resistant feature ensures that the
hash value is not useful for generating the input value.
Computationally efficient → The hash functions are efficient and don’t
require huge computational resources to execute.
Cannot be reversed engineered → The hash function cannot be reversed
engineered.
Collision resistant → Collision resistance ensures that no two inputs result
in the same output.
Merkle tree
• This recursive property to hashing is what
brings us to the concept of a Merkle tree,
named after the man who patented it.
• A Merkle tree is a data structure that, if your
were to draw it on a whiteboard, tends to
resemble a tree.
blockchain class 3.pdf
blockchain class 3.pdf
Digital signature
• Digital signing is a process to validate the authenticity and integrity of the
document by the sender. In simple terms, it means to check that the document
received is sent by the expected sender and it’s not changed by an intruder in the
network.
• Here, the private key of the sender encrypts the message. And the
corresponding public key of the sender, earlier shared with the receiver, can
decrypt the message.
• In order to generate a digital signature system, the sender creates a hash of the
document to be signed. Then, encrypt it with his own private key and send it. The
receiver decrypts the document using the sender’s public key. That ensures the
expected sender sends it.
• Digital Signing in Blockchain is a process to verify the user’s impressions of the
transaction. It uses the private key to sign the digital transaction, and its
corresponding public key will help to authorize the sender.
• However, in this way, anyone with the sender’s public key can easily decrypt the
document. Digital Signing targets the authenticity, not the security of the
document. It’s a way to ensure the source of the message transaction
blockchain class 3.pdf
Digital key
• All digital signatures use public key
cryptography which uses private key and
public key
• To create a signature, the first hash is
produced from original data and the private
key is used to encypt the hash
• The encrypted hash + information(encryption
method) are added to original data
blockchain class 3.pdf
Example Ethereum block
PoW –Ethereum and Bitcoin
PoS- BitShares
Global state
• Global state is a snapshot of all the data that
smart contracts can read from or write to,
such as account balances and the variables
within all smart contracts.
• Global state can be generally thought of as
the database of a blockchain, which is
required to validate incoming transactions
Example for global state
Block time
• Block time
• Bitcoin - 10 minutes
• Ethereum - 20 seconds
• Stellar - 4 seconds.
• These block times are determined by the code
that runs the network. For networks such as
Bitcoin, Litecoin, and Ethereum, the block
time is actually an average
Block size
• The block size is the maximum amount of
information that can be stored in each block. For
Bitcoin, this is 1 MB of data's worth of
transactions.
• For Ethereum, the limit is actually measured in
GAS, a special unit of measuring both processing
power (since Ethereum has smart contracts) as
well as storage.
• Unlike Bitcoin, the GAS/storage limit for each
block is not fixed but is instead adjusted by the
miners dynamically
Smart Contract (or cryptocontract
• A Smart Contract (or cryptocontract) is a computer
program that directly and automatically controls the
transfer of digital assets between the parties under
certain conditions.
• A smart contract works in the same way as a traditional
contract while also automatically enforcing the
contract.
• Smart contracts are programs that execute exactly as
they are set up(coded, programmed) by their creators.
Just like a traditional contract is enforceable by law,
smart contracts are enforceable by code.
Working of smart contract

More Related Content

PPTX
Blockchain Demystified
PPTX
Architecture and operations.pptx
PPTX
Blockchain Blockchain Blockchain Lec 1.pptx
PPTX
Blockchain Technology
PPTX
Block chain and its basic terminology include mining
PPTX
Chapter 2.pptx
PDF
Blockchain fundamentals
PPTX
UNIT 1 (1).pptx of block chain technologies
Blockchain Demystified
Architecture and operations.pptx
Blockchain Blockchain Blockchain Lec 1.pptx
Blockchain Technology
Block chain and its basic terminology include mining
Chapter 2.pptx
Blockchain fundamentals
UNIT 1 (1).pptx of block chain technologies

Similar to blockchain class 3.pdf (20)

PDF
Blockchain Fundamental_KIPMI_2022.02.26.pdf
PPTX
Blockchain presentation.pptx
PPTX
Blockchain Ecosystem and Cryptocurrency Regulations
PPTX
Node.js Blockchain Implementation
PPTX
module-1.pptx
PDF
Basics of Block Chain
PDF
Blockchain, Hyperledger, DeFi, Web 3.0 - understanding and concepts
PPTX
chapter4.pptxwgdyjshcbnbhvegwydvquhcjdvqigufwk
PDF
Blockchain and bitcoin
PPTX
Cryptography-Building-Blocks-of-Digital-Trust.pptx
DOCX
UNIT I.docxcloud service management document anna university regulation 2021
PPTX
Day 1.pptx
PPTX
Blockchain 101 - public, tokenized blockchains
PDF
Blockchain - Presentacion Betabeers Galicia 10/12/2014
PPTX
Introduction to Blockchain Technology
PPTX
Blockchain Session 1
PPTX
Blockchain ppt
PPTX
Introduction to Blockchain
PPTX
BlockChain Techonology - Unit 1.pptx
Blockchain Fundamental_KIPMI_2022.02.26.pdf
Blockchain presentation.pptx
Blockchain Ecosystem and Cryptocurrency Regulations
Node.js Blockchain Implementation
module-1.pptx
Basics of Block Chain
Blockchain, Hyperledger, DeFi, Web 3.0 - understanding and concepts
chapter4.pptxwgdyjshcbnbhvegwydvquhcjdvqigufwk
Blockchain and bitcoin
Cryptography-Building-Blocks-of-Digital-Trust.pptx
UNIT I.docxcloud service management document anna university regulation 2021
Day 1.pptx
Blockchain 101 - public, tokenized blockchains
Blockchain - Presentacion Betabeers Galicia 10/12/2014
Introduction to Blockchain Technology
Blockchain Session 1
Blockchain ppt
Introduction to Blockchain
BlockChain Techonology - Unit 1.pptx
Ad

Recently uploaded (20)

PPTX
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
PDF
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
PDF
Exploratory_Data_Analysis_Fundamentals.pdf
PPT
Occupational Health and Safety Management System
PPTX
communication and presentation skills 01
PPT
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PDF
Influence of Green Infrastructure on Residents’ Endorsement of the New Ecolog...
PPTX
Current and future trends in Computer Vision.pptx
PDF
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
PDF
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
PPTX
"Array and Linked List in Data Structures with Types, Operations, Implementat...
PPTX
Fundamentals of Mechanical Engineering.pptx
PPTX
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
PPT
Total quality management ppt for engineering students
PDF
Categorization of Factors Affecting Classification Algorithms Selection
PDF
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
August 2025 - Top 10 Read Articles in Network Security & Its Applications
PPTX
Artificial Intelligence
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
Exploratory_Data_Analysis_Fundamentals.pdf
Occupational Health and Safety Management System
communication and presentation skills 01
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
Influence of Green Infrastructure on Residents’ Endorsement of the New Ecolog...
Current and future trends in Computer Vision.pptx
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
"Array and Linked List in Data Structures with Types, Operations, Implementat...
Fundamentals of Mechanical Engineering.pptx
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
Total quality management ppt for engineering students
Categorization of Factors Affecting Classification Algorithms Selection
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
Automation-in-Manufacturing-Chapter-Introduction.pdf
August 2025 - Top 10 Read Articles in Network Security & Its Applications
Artificial Intelligence
Ad

blockchain class 3.pdf

  • 1. Unit I Block chain - Day 3 Components and structure of blockchain
  • 2. Components and structure of blockchain • Topics - Blocks, The chain between blocks - Hashing and signatures - Block structure - Block validators - Smart contracts - Block chain speed
  • 3. Blocks • A block in a blockchain is a fundamental component that carries crucial data about transactions. • When a transaction occurs, be it the transfer of a cryptocurrency like bitcoin or a data exchange in a supply chain, the details are packaged into a digital structure known as a block. • A block contains not only the transaction data but also a timestamp marking when the transaction occurred. • As such, each block contains a unique identifier called a "hash." This alphanumeric string acts as a digital fingerprint for the block, providing a way to confirm transactions on the blockchain. • The hash is a result of a complex mathematical process, and even a minor change in the transaction data would generate a completely different hash, making the blockchain highly secure against fraud and manipulation. • Another important term related to the structure of a block is "nonce," an acronym for "number used only once." This is an arbitrary bit of text that miners add in to change the hash that the block produces.
  • 4. • Block time – Approximate amount of time that each block represents for transactions Eg:2 minutes – 4 transactions. If 100000 transactions happen, they have to wait for their turn for an open block with space. Some blockchains handle this prob with network fees( amount that a sender is willing to pay to have a transaction to be included in the block,Higher the fee, greater the priority to be included in the chain) • Block size –The total amount of transactions that a block can handle
  • 10. header of an Ethereum block • Hash of the previous block: Every block header gives information about the previous or parent block. This field contains the hash value of the previous block and this reference connects all the blocks. The size of this field is 32 bytes. • Version: This field stores the version number to show software upgrades. The size of the version field is 4 bytes.
  • 12. Hashing and signatures • Hashing-Hashing (or a hashing function) is a mathematical procedure by which any input is turned into a fixed-length output. • Eg:SHA-1, SHA-2, and MD5. • Output of a hashing function called MD5 with an input of two pages of text: 9a137a78cf0c364e4d94078af1e221be
  • 13. Hashing and signatures • Hashing-Hashing (or a hashing function) is a mathematical procedure by which any input is turned into a fixed-length output. • Eg:SHA-1, SHA-2, and MD5. • Output of a hashing function called MD5 with an input of two pages of text: 9a137a78cf0c364e4d94078af1e221be
  • 14. Properties of hash function • They are very fast for computers to run. • The function is one way. You can get the hash easily, but you cannot realistically use the hash to restore the original. • They can be used recursively.
  • 19. The key properties of the hash function make it reliable. Deterministic → This means that the output will be the same for the given input in any given circumstances. Preimage Resistant → The preimage resistant feature ensures that the hash value is not useful for generating the input value. Computationally efficient → The hash functions are efficient and don’t require huge computational resources to execute. Cannot be reversed engineered → The hash function cannot be reversed engineered. Collision resistant → Collision resistance ensures that no two inputs result in the same output.
  • 20. Merkle tree • This recursive property to hashing is what brings us to the concept of a Merkle tree, named after the man who patented it. • A Merkle tree is a data structure that, if your were to draw it on a whiteboard, tends to resemble a tree.
  • 23. Digital signature • Digital signing is a process to validate the authenticity and integrity of the document by the sender. In simple terms, it means to check that the document received is sent by the expected sender and it’s not changed by an intruder in the network. • Here, the private key of the sender encrypts the message. And the corresponding public key of the sender, earlier shared with the receiver, can decrypt the message. • In order to generate a digital signature system, the sender creates a hash of the document to be signed. Then, encrypt it with his own private key and send it. The receiver decrypts the document using the sender’s public key. That ensures the expected sender sends it. • Digital Signing in Blockchain is a process to verify the user’s impressions of the transaction. It uses the private key to sign the digital transaction, and its corresponding public key will help to authorize the sender. • However, in this way, anyone with the sender’s public key can easily decrypt the document. Digital Signing targets the authenticity, not the security of the document. It’s a way to ensure the source of the message transaction
  • 25. Digital key • All digital signatures use public key cryptography which uses private key and public key • To create a signature, the first hash is produced from original data and the private key is used to encypt the hash • The encrypted hash + information(encryption method) are added to original data
  • 30. Global state • Global state is a snapshot of all the data that smart contracts can read from or write to, such as account balances and the variables within all smart contracts. • Global state can be generally thought of as the database of a blockchain, which is required to validate incoming transactions
  • 32. Block time • Block time • Bitcoin - 10 minutes • Ethereum - 20 seconds • Stellar - 4 seconds. • These block times are determined by the code that runs the network. For networks such as Bitcoin, Litecoin, and Ethereum, the block time is actually an average
  • 33. Block size • The block size is the maximum amount of information that can be stored in each block. For Bitcoin, this is 1 MB of data's worth of transactions. • For Ethereum, the limit is actually measured in GAS, a special unit of measuring both processing power (since Ethereum has smart contracts) as well as storage. • Unlike Bitcoin, the GAS/storage limit for each block is not fixed but is instead adjusted by the miners dynamically
  • 34. Smart Contract (or cryptocontract • A Smart Contract (or cryptocontract) is a computer program that directly and automatically controls the transfer of digital assets between the parties under certain conditions. • A smart contract works in the same way as a traditional contract while also automatically enforcing the contract. • Smart contracts are programs that execute exactly as they are set up(coded, programmed) by their creators. Just like a traditional contract is enforceable by law, smart contracts are enforceable by code.
  • 35. Working of smart contract