SlideShare a Scribd company logo
1 of 35
Download to read offline
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
Block chain structure
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.
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.
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.
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
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
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

Similar to blockchain class 3.pdf

Node.js Blockchain Implementation
Node.js Blockchain ImplementationNode.js Blockchain Implementation
Node.js Blockchain ImplementationGlobalLogic Ukraine
 
Blockchain, Hyperledger, DeFi, Web 3.0 - understanding and concepts
Blockchain,  Hyperledger, DeFi, Web 3.0 - understanding and conceptsBlockchain,  Hyperledger, DeFi, Web 3.0 - understanding and concepts
Blockchain, Hyperledger, DeFi, Web 3.0 - understanding and conceptskeithfernandez19
 
Blockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchainsBlockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchainsBrett Colbert
 
Blockchain - Presentacion Betabeers Galicia 10/12/2014
Blockchain - Presentacion Betabeers Galicia 10/12/2014Blockchain - Presentacion Betabeers Galicia 10/12/2014
Blockchain - Presentacion Betabeers Galicia 10/12/2014WeKCo Coworking
 
Blockchain Session 1
Blockchain Session 1Blockchain Session 1
Blockchain Session 1DSCPICT
 
BlockChain Techonology - Unit 1.pptx
BlockChain Techonology   -   Unit 1.pptxBlockChain Techonology   -   Unit 1.pptx
BlockChain Techonology - Unit 1.pptxos3558995
 
Ethereum Mining How To
Ethereum Mining How ToEthereum Mining How To
Ethereum Mining How ToNugroho Gito
 
Blockchain Security and Demonstration
Blockchain Security and DemonstrationBlockchain Security and Demonstration
Blockchain Security and DemonstrationYao Yao
 
Quantum Secured Blockchain
Quantum Secured BlockchainQuantum Secured Blockchain
Quantum Secured Blockchainravi sahal
 
Blockchain tutorial
Blockchain tutorial Blockchain tutorial
Blockchain tutorial Rohit Verma
 
chapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptxchapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptxAschalewAyele2
 
chapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptxchapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptxAschalewAyele2
 

Similar to blockchain class 3.pdf (20)

BlockChain.pptx
BlockChain.pptxBlockChain.pptx
BlockChain.pptx
 
Node.js Blockchain Implementation
Node.js Blockchain ImplementationNode.js Blockchain Implementation
Node.js Blockchain Implementation
 
module-1.pptx
module-1.pptxmodule-1.pptx
module-1.pptx
 
Basics of Block Chain
Basics of Block ChainBasics of Block Chain
Basics of Block Chain
 
Blockchain, Hyperledger, DeFi, Web 3.0 - understanding and concepts
Blockchain,  Hyperledger, DeFi, Web 3.0 - understanding and conceptsBlockchain,  Hyperledger, DeFi, Web 3.0 - understanding and concepts
Blockchain, Hyperledger, DeFi, Web 3.0 - understanding and concepts
 
Blockchain and bitcoin
Blockchain and bitcoinBlockchain and bitcoin
Blockchain and bitcoin
 
Day 1.pptx
Day 1.pptxDay 1.pptx
Day 1.pptx
 
Blockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchainsBlockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchains
 
Blockchain - Presentacion Betabeers Galicia 10/12/2014
Blockchain - Presentacion Betabeers Galicia 10/12/2014Blockchain - Presentacion Betabeers Galicia 10/12/2014
Blockchain - Presentacion Betabeers Galicia 10/12/2014
 
Introduction to Blockchain Technology
Introduction to Blockchain TechnologyIntroduction to Blockchain Technology
Introduction to Blockchain Technology
 
Blockchain Session 1
Blockchain Session 1Blockchain Session 1
Blockchain Session 1
 
Blockchain ppt
Blockchain pptBlockchain ppt
Blockchain ppt
 
Introduction to Blockchain
Introduction to Blockchain Introduction to Blockchain
Introduction to Blockchain
 
BlockChain Techonology - Unit 1.pptx
BlockChain Techonology   -   Unit 1.pptxBlockChain Techonology   -   Unit 1.pptx
BlockChain Techonology - Unit 1.pptx
 
Ethereum Mining How To
Ethereum Mining How ToEthereum Mining How To
Ethereum Mining How To
 
Blockchain Security and Demonstration
Blockchain Security and DemonstrationBlockchain Security and Demonstration
Blockchain Security and Demonstration
 
Quantum Secured Blockchain
Quantum Secured BlockchainQuantum Secured Blockchain
Quantum Secured Blockchain
 
Blockchain tutorial
Blockchain tutorial Blockchain tutorial
Blockchain tutorial
 
chapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptxchapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptx
 
chapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptxchapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptx
 

Recently uploaded

Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacingjaychoudhary37
 

Recently uploaded (20)

Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacing
 

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
  • 6.
  • 7.
  • 9.
  • 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.
  • 11.
  • 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.
  • 15.
  • 16.
  • 17.
  • 18.
  • 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.
  • 21.
  • 22.
  • 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
  • 24.
  • 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
  • 26.
  • 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