SlideShare a Scribd company logo
Blockchain & Cryptocurrency
Technologies
Bitcoin Transaction, Blocks
& Network
Bitcoin Transaction
• Bitcoin transaction means sending bitcoin from
one person to the other in the secured blockchain
network.
• These are messages that are digitally signed using
cryptography and are verified by the miners that
are present in the blockchain network.
• The miner is the person who solves mathematical
puzzles(also called proof of work) to validate the
transaction. Anyone with mining hardware and
high processing power can take part in this.
• Example: Suppose Hari wants to send 5
BTC(bitcoins) to Senorita.
• Input- It consists of the bitcoin address from
which hari got his bitcoins previously. Amount-
This deals the specific amount of money that hari
wishes to send to senorita, in this case, its
5BTC.
• Output- This is the bitcoin address of senorita
which hari needs to know in order to transfer
the bitcoins to her wallet. Bitcoin address of
senorita is also known as public key.
Transaction Fees
• The transaction rate or speed is dependent on the
amount the user pays for it. If a user pays a small
amount, the transaction rate will be slow, the
transaction will take more time to happen, vice versa is
applicable here.
• Due to limited space, only a limited number of
transactions are possible at one point in time.
• Consider a case where heavy network traffic occurs,
then the miners prioritize those transactions that have
the highest fees so that even in the hectic congestion,
the highest-paid transaction gets executed.
• Time is taken for transaction confirmation mainly depends on two
factors:
• Transaction fees: As discussed above, if the user pays minimal
transaction fees, then the time taken for confirmation of a
particular transaction would take a longer time. the mining process
needs significant technology and efforts, therefore the importance
of transaction fees comes into play.
• Network load: Every transaction gets stored temporarily in the
memory pool till the miners confirm it. When the transaction
activities reach a certain high threshold, the memory pool gets
jammed thereby slowing the confirmation time of the transaction
even more. Due to this, all the subsequent transactions become
susceptible to delay.
How Bitcoin Transaction Works?
• A Bitcoin transaction is a transfer of Bitcoin
cryptocurrency from one user (sender) to
another (recipient) within the Bitcoin network.
It involves creating a digital record that
specifies the amount of Bitcoin being sent and
the addresses of the sender and recipient.
• Here's a breakdown of the key components
and steps involved in a Bitcoin transaction:
• Inputs: A Bitcoin transaction typically consists of one or
more inputs, which are references to previously
received Bitcoin transactions. Each input contains
information about the amount of Bitcoin being spent
and the address from which it originated.
• Outputs: Transactions also include one or more
outputs, which define the destination addresses and
the corresponding amounts of Bitcoin to be sent to
each recipient. An output contains a locking script (also
known as a scriptPubKey) that specifies the conditions
required for the recipient to spend the received
Bitcoin.
• Digital Signatures: To authorize a transaction, the sender signs the
transaction using their private key, which creates a digital signature. This
signature is generated by applying a cryptographic algorithm to the
transaction data, ensuring the authenticity and integrity of the
transaction.
• Transaction Verification: After the transaction is created and signed, it is
broadcasted to the Bitcoin network. Miners on the network validate the
transaction by verifying the digital signatures and ensuring that the sender
has sufficient funds to cover the transaction amount.
• Inclusion in a Block: Validated transactions are grouped into blocks, which
are added to the Bitcoin blockchain. Miners compete to solve complex
mathematical puzzles through a process called mining. Once a miner
successfully mines a block, the block is added to the blockchain, and the
transaction becomes a permanent part of the ledger.
• Confirmations: Once a transaction is included in a
block, it receives a confirmation. The more
confirmations a transaction has, the more secure and
irreversible it becomes. For most transactions, a few
confirmations are sufficient to consider the transaction
final and trustworthy.
• Transaction Fees: Bitcoin transactions often include
transaction fees paid by the sender to incentivize
miners to include the transaction in a block. Miners
prioritize transactions with higher fees since they
receive the fees as a reward for their mining efforts.
Different Types of Bitcoin Address
• There are mainly three types of bitcoin
addresses:
• P2PKH addresses: These addresses start with
number 1. For example 1WX23.
• P2SH addresses: These addresses start with
number 2. For example 2WX23.
• Bech32 addresses: These addresses start with
bc1. For example bc12WX23.
•
Bitcoin blocks
• The block chain is a clever combination of two
different hash-based data structures. The first is a
hash chain of blocks.
• Each block has a block header, a hash pointer to
some transaction data, and a hash pointer to the
previous block in the sequence.
• The second data structure is a per-block tree of
all of the transactions that are included in that
block. This is a Merkle tree and allows us to have
a digest of all the transactions in the block in an
efficient way.
The Bitcoin network
The term “bitcoin network” refers to the collection of nodes
running the bitcoin P2P protocol.
• It’s a peer-to-peer network, and it inherits many ideas from
peer-to-peer networks that have been proposed for all
sorts of other purposes.
• In the Bitcoin network, all nodes are equal. There is no
hierarchy, and there are no special nodes or master nodes.
It runs over TCP and has a random topology, where each
node peers with other random nodes. New nodes can join
at any time.
• In fact, you can download a Bitcoin client today, spin up
your computer as a node, and it will have equal rights and
capabilities as every other node on the Bitcoin network.
Network Discovery
• To connect to a known peer, nodes establish a
TCP connection, usually to port 8333 (the port
generally known as the one used by bitcoin),
or an alternative port if one is provided.
• Upon establishing a connection, the node will
start a “handshake”by transmitting
a version message, which contains basic
identifying information, including:
• PROTOCOL_VERSION
A constant that defines the bitcoin P2P protocol version
the client “speaks” (e.g., 70002)
• nLocalServices
A list of local services supported by the node, currently
just NODE_NETWORK
• nTime
The current time
• addrYou
The IP address of the remote node as seen from this node
The initial handshake between peers
• Once one or more connections are established, the new
node will send an addr message containing its own IP
address to its neighbors.
• The neighbors will, in turn, forward the addr message to
their neighbors, ensuring that the newly connected node
becomes well known and better connected.
• Additionally, the newly connected node can send getaddr
to the neighbors, asking them to return a list of IP
addresses of other peers.
• That way, a node can find peers to connect to and advertise
its existence on the network for other nodes to find
it. Address propagation and discovery shows the address
discovery protocol.

More Related Content

Similar to Blockchain presentation.pptx

Bitcoin data mining
Bitcoin data miningBitcoin data mining
Bitcoin data mining
malathieswaran29
 
What is bitcoin?
What is bitcoin?What is bitcoin?
What is bitcoin?
Suraj Bora
 
BlockChain Techonology - Unit 1.pptx
BlockChain Techonology   -   Unit 1.pptxBlockChain Techonology   -   Unit 1.pptx
BlockChain Techonology - Unit 1.pptx
os3558995
 
Blockchain and Bitcoin
Blockchain and BitcoinBlockchain and Bitcoin
Blockchain and Bitcoin
Hugo Rodrigues
 
Introduction to Blockchain
Introduction to Blockchain Introduction to Blockchain
Introduction to Blockchain
mohammad alkhalil
 
BlockChain (1).pptxbhbhbhhbhjbhbhgghbhjbhhg
BlockChain (1).pptxbhbhbhhbhjbhbhgghbhjbhhgBlockChain (1).pptxbhbhbhhbhjbhbhgghbhjbhhg
BlockChain (1).pptxbhbhbhhbhjbhbhgghbhjbhhg
DevkumarKardamVIT
 
Architecture and operations.pptx
Architecture and operations.pptxArchitecture and operations.pptx
Architecture and operations.pptx
harshitmittal737363
 
Bitcoin I.pptx
Bitcoin I.pptxBitcoin I.pptx
Bitcoin I.pptx
AseemBhube1
 
Bitcoin and Ransomware Analysis
Bitcoin and Ransomware AnalysisBitcoin and Ransomware Analysis
Bitcoin and Ransomware Analysis
inder_barara
 
Bitcoin and Ransomware Analysis
Bitcoin and Ransomware AnalysisBitcoin and Ransomware Analysis
Bitcoin and Ransomware Analysis
Inderjeet Singh
 
An in depth presentation of Cryptocurrency.
An in depth presentation of Cryptocurrency.An in depth presentation of Cryptocurrency.
An in depth presentation of Cryptocurrency.
SanjeebSamanta1
 
Blockchain Security and Demonstration
Blockchain Security and DemonstrationBlockchain Security and Demonstration
Blockchain Security and Demonstration
Yao Yao
 
Bitcoin, Banking and the Blockchain
Bitcoin, Banking and the BlockchainBitcoin, Banking and the Blockchain
Bitcoin, Banking and the Blockchain
seancarmody
 
blockchain.pptx
blockchain.pptxblockchain.pptx
blockchain.pptx
19MEB302SahilAli
 
Crypto101.pptx
Crypto101.pptxCrypto101.pptx
Crypto101.pptx
Sameer Mahajan
 
Introduction to Bit Coin Model
Introduction to Bit Coin ModelIntroduction to Bit Coin Model
Introduction to Bit Coin Model
Asoka Korale
 
Anatomy of a blockchain
Anatomy of a blockchainAnatomy of a blockchain
Anatomy of a blockchain
Avtar Sehra
 
OVERVIEW ON CRYPTOCURRENCY
OVERVIEW ON CRYPTOCURRENCYOVERVIEW ON CRYPTOCURRENCY
OVERVIEW ON CRYPTOCURRENCY
drrammohan
 
Bitcoin Introduction - customer presentation APR 2017
Bitcoin Introduction - customer presentation  APR 2017Bitcoin Introduction - customer presentation  APR 2017
Bitcoin Introduction - customer presentation APR 2017
Oron Barber
 
Cryptocurrency-Bitcoin
Cryptocurrency-BitcoinCryptocurrency-Bitcoin
Cryptocurrency-Bitcoin
SatwikaHotwani
 

Similar to Blockchain presentation.pptx (20)

Bitcoin data mining
Bitcoin data miningBitcoin data mining
Bitcoin data mining
 
What is bitcoin?
What is bitcoin?What is bitcoin?
What is bitcoin?
 
BlockChain Techonology - Unit 1.pptx
BlockChain Techonology   -   Unit 1.pptxBlockChain Techonology   -   Unit 1.pptx
BlockChain Techonology - Unit 1.pptx
 
Blockchain and Bitcoin
Blockchain and BitcoinBlockchain and Bitcoin
Blockchain and Bitcoin
 
Introduction to Blockchain
Introduction to Blockchain Introduction to Blockchain
Introduction to Blockchain
 
BlockChain (1).pptxbhbhbhhbhjbhbhgghbhjbhhg
BlockChain (1).pptxbhbhbhhbhjbhbhgghbhjbhhgBlockChain (1).pptxbhbhbhhbhjbhbhgghbhjbhhg
BlockChain (1).pptxbhbhbhhbhjbhbhgghbhjbhhg
 
Architecture and operations.pptx
Architecture and operations.pptxArchitecture and operations.pptx
Architecture and operations.pptx
 
Bitcoin I.pptx
Bitcoin I.pptxBitcoin I.pptx
Bitcoin I.pptx
 
Bitcoin and Ransomware Analysis
Bitcoin and Ransomware AnalysisBitcoin and Ransomware Analysis
Bitcoin and Ransomware Analysis
 
Bitcoin and Ransomware Analysis
Bitcoin and Ransomware AnalysisBitcoin and Ransomware Analysis
Bitcoin and Ransomware Analysis
 
An in depth presentation of Cryptocurrency.
An in depth presentation of Cryptocurrency.An in depth presentation of Cryptocurrency.
An in depth presentation of Cryptocurrency.
 
Blockchain Security and Demonstration
Blockchain Security and DemonstrationBlockchain Security and Demonstration
Blockchain Security and Demonstration
 
Bitcoin, Banking and the Blockchain
Bitcoin, Banking and the BlockchainBitcoin, Banking and the Blockchain
Bitcoin, Banking and the Blockchain
 
blockchain.pptx
blockchain.pptxblockchain.pptx
blockchain.pptx
 
Crypto101.pptx
Crypto101.pptxCrypto101.pptx
Crypto101.pptx
 
Introduction to Bit Coin Model
Introduction to Bit Coin ModelIntroduction to Bit Coin Model
Introduction to Bit Coin Model
 
Anatomy of a blockchain
Anatomy of a blockchainAnatomy of a blockchain
Anatomy of a blockchain
 
OVERVIEW ON CRYPTOCURRENCY
OVERVIEW ON CRYPTOCURRENCYOVERVIEW ON CRYPTOCURRENCY
OVERVIEW ON CRYPTOCURRENCY
 
Bitcoin Introduction - customer presentation APR 2017
Bitcoin Introduction - customer presentation  APR 2017Bitcoin Introduction - customer presentation  APR 2017
Bitcoin Introduction - customer presentation APR 2017
 
Cryptocurrency-Bitcoin
Cryptocurrency-BitcoinCryptocurrency-Bitcoin
Cryptocurrency-Bitcoin
 

Recently uploaded

DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
BrazilAccount1
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 

Recently uploaded (20)

DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 

Blockchain presentation.pptx

  • 1. Blockchain & Cryptocurrency Technologies Bitcoin Transaction, Blocks & Network
  • 2. Bitcoin Transaction • Bitcoin transaction means sending bitcoin from one person to the other in the secured blockchain network. • These are messages that are digitally signed using cryptography and are verified by the miners that are present in the blockchain network. • The miner is the person who solves mathematical puzzles(also called proof of work) to validate the transaction. Anyone with mining hardware and high processing power can take part in this.
  • 3. • Example: Suppose Hari wants to send 5 BTC(bitcoins) to Senorita. • Input- It consists of the bitcoin address from which hari got his bitcoins previously. Amount- This deals the specific amount of money that hari wishes to send to senorita, in this case, its 5BTC. • Output- This is the bitcoin address of senorita which hari needs to know in order to transfer the bitcoins to her wallet. Bitcoin address of senorita is also known as public key.
  • 4. Transaction Fees • The transaction rate or speed is dependent on the amount the user pays for it. If a user pays a small amount, the transaction rate will be slow, the transaction will take more time to happen, vice versa is applicable here. • Due to limited space, only a limited number of transactions are possible at one point in time. • Consider a case where heavy network traffic occurs, then the miners prioritize those transactions that have the highest fees so that even in the hectic congestion, the highest-paid transaction gets executed.
  • 5. • Time is taken for transaction confirmation mainly depends on two factors: • Transaction fees: As discussed above, if the user pays minimal transaction fees, then the time taken for confirmation of a particular transaction would take a longer time. the mining process needs significant technology and efforts, therefore the importance of transaction fees comes into play. • Network load: Every transaction gets stored temporarily in the memory pool till the miners confirm it. When the transaction activities reach a certain high threshold, the memory pool gets jammed thereby slowing the confirmation time of the transaction even more. Due to this, all the subsequent transactions become susceptible to delay.
  • 6. How Bitcoin Transaction Works? • A Bitcoin transaction is a transfer of Bitcoin cryptocurrency from one user (sender) to another (recipient) within the Bitcoin network. It involves creating a digital record that specifies the amount of Bitcoin being sent and the addresses of the sender and recipient. • Here's a breakdown of the key components and steps involved in a Bitcoin transaction:
  • 7. • Inputs: A Bitcoin transaction typically consists of one or more inputs, which are references to previously received Bitcoin transactions. Each input contains information about the amount of Bitcoin being spent and the address from which it originated. • Outputs: Transactions also include one or more outputs, which define the destination addresses and the corresponding amounts of Bitcoin to be sent to each recipient. An output contains a locking script (also known as a scriptPubKey) that specifies the conditions required for the recipient to spend the received Bitcoin.
  • 8. • Digital Signatures: To authorize a transaction, the sender signs the transaction using their private key, which creates a digital signature. This signature is generated by applying a cryptographic algorithm to the transaction data, ensuring the authenticity and integrity of the transaction. • Transaction Verification: After the transaction is created and signed, it is broadcasted to the Bitcoin network. Miners on the network validate the transaction by verifying the digital signatures and ensuring that the sender has sufficient funds to cover the transaction amount. • Inclusion in a Block: Validated transactions are grouped into blocks, which are added to the Bitcoin blockchain. Miners compete to solve complex mathematical puzzles through a process called mining. Once a miner successfully mines a block, the block is added to the blockchain, and the transaction becomes a permanent part of the ledger.
  • 9. • Confirmations: Once a transaction is included in a block, it receives a confirmation. The more confirmations a transaction has, the more secure and irreversible it becomes. For most transactions, a few confirmations are sufficient to consider the transaction final and trustworthy. • Transaction Fees: Bitcoin transactions often include transaction fees paid by the sender to incentivize miners to include the transaction in a block. Miners prioritize transactions with higher fees since they receive the fees as a reward for their mining efforts.
  • 10. Different Types of Bitcoin Address • There are mainly three types of bitcoin addresses: • P2PKH addresses: These addresses start with number 1. For example 1WX23. • P2SH addresses: These addresses start with number 2. For example 2WX23. • Bech32 addresses: These addresses start with bc1. For example bc12WX23. •
  • 11. Bitcoin blocks • The block chain is a clever combination of two different hash-based data structures. The first is a hash chain of blocks. • Each block has a block header, a hash pointer to some transaction data, and a hash pointer to the previous block in the sequence. • The second data structure is a per-block tree of all of the transactions that are included in that block. This is a Merkle tree and allows us to have a digest of all the transactions in the block in an efficient way.
  • 12.
  • 13. The Bitcoin network The term “bitcoin network” refers to the collection of nodes running the bitcoin P2P protocol. • It’s a peer-to-peer network, and it inherits many ideas from peer-to-peer networks that have been proposed for all sorts of other purposes. • In the Bitcoin network, all nodes are equal. There is no hierarchy, and there are no special nodes or master nodes. It runs over TCP and has a random topology, where each node peers with other random nodes. New nodes can join at any time. • In fact, you can download a Bitcoin client today, spin up your computer as a node, and it will have equal rights and capabilities as every other node on the Bitcoin network.
  • 14. Network Discovery • To connect to a known peer, nodes establish a TCP connection, usually to port 8333 (the port generally known as the one used by bitcoin), or an alternative port if one is provided. • Upon establishing a connection, the node will start a “handshake”by transmitting a version message, which contains basic identifying information, including:
  • 15. • PROTOCOL_VERSION A constant that defines the bitcoin P2P protocol version the client “speaks” (e.g., 70002) • nLocalServices A list of local services supported by the node, currently just NODE_NETWORK • nTime The current time • addrYou The IP address of the remote node as seen from this node
  • 16. The initial handshake between peers
  • 17. • Once one or more connections are established, the new node will send an addr message containing its own IP address to its neighbors. • The neighbors will, in turn, forward the addr message to their neighbors, ensuring that the newly connected node becomes well known and better connected. • Additionally, the newly connected node can send getaddr to the neighbors, asking them to return a list of IP addresses of other peers. • That way, a node can find peers to connect to and advertise its existence on the network for other nodes to find it. Address propagation and discovery shows the address discovery protocol.