SlideShare uma empresa Scribd logo
1 de 24
Baixar para ler offline
Introduction to
Segregated Witness
By Priyab Satoshi (@twitmyreview)
Agenda
• Bitcoin transactions
• The scaling debate
• Segwit - Segregated Witness
• Benefit from SegWit
• Bitcoin Improvement Proposals
Bitcoin Transactions
• A bitcoin transaction is data that describes the
movement of bitcoins.It is basically a series of
inputs and a series of outputs.
Bitcoin Transaction Structure
• The transaction data tells you how to unlock
existing packages of bitcoins (from previous
transactions), and how to lock them up again
Block Limit
• Originally, there was no limit to the size of blocks
• This allowed malicious actors to make up fake
"block" data and do DDOS Attacks
• The solution Satoshi Nakamoto designed was to
put a limit on block size, which was 1 MB.
• Attacks using huge blocks would be instantly
detected and rejected, without significantly
slowing down the network.
Block Structure
Scalability and Malleability
• A new block is added to the chain at random intervals
averaging, by design, ten minutes (proof-of-work
causes this delay). Miners can only add transactions
within these limits
• With the limit on block-size, this limits the number of
transactions that can be processed in a given time.
• Transaction malleability: Cryptographically signed
signature doesn't encompass all transaction data
several different ways of losing or stealing bitcoins are
possible.
Scalability and Malleability
• 60% - 70% of the transaction size is the
signature. This not only creates transaction bloat
but also creates malleability issues.
Scalability Problem
• As transactions increase and become data-
heavy, it clogs the blocks, which bogs down the
network when demand is high. This becomes an
increasing issue as more people start using
Bitcoin and adopt the technology. In order for
the Bitcoin to succeed and be useful, a solution
to process the blocks faster is necessary.
The Scaling Debate
Solutions to the scaleability problem
• Segwit (e.g. BTC)
• Increase the block size (e.g BCC)
• The Lightning Network
Segregated Witness
(SegWit)
• It was locked in on 8th of August. Two weeks to
signal support
• August 24th 2017 Segwit Activated on Block 481,824
• Aims to speed up Bitcoin confirmation of Bitcoin
transactions
• It also moves signatures out of the transaction
addressing the malleability problem. This will make it
safer to use with the Lightning Network.
SegWit Timeline
SegWit Support
What is Segwit?
• The proposal is to move all of the unlocking code to the
end of the transaction data. The TXID is then created from
all of the transaction data, except for the unlocking code.
• The TXID is only influenced by the effects of a transaction
(the movement of bitcoins), and not by any code needed
to validate the transaction (i.e. signatures used to unlock
existing bitcoins so that they can be spent).
• We separated the "validating" part (unlocking code) from
the "effective" part of the transaction.
Segwit vs Non SegWit
Transaction
Segwit Block Size
SegWit Adoption
How to Use SegWit
• Install a SegWit-supporting wallet.
• Receive money on new SegWit addresses, which start with 3. You must
generate new addresses; your old addresses will never be SegWit addresses.
Note that not all addresses starting with 3 are SegWit addresses, and it is
impossible to tell just from looking at an address whether it is a SegWit
address.
• Whenever you spend BTC which you have received via SegWit addresses,
you will receive the SegWit discount. If you send a transaction spending some
BTC received via non-SegWit addresses and some BTC received via SegWit
addresses, you will receive a partial discount. The destination address doesn't
matter.
• There are no compatibility issues: non-SegWit wallets can send BTC to SegWit
addresses, and SegWit wallets can send BTC to non-SegWit addresses.
Saving Transaction Fee
using Segwit 
• For segwit, a new concept called weight was introduced, so what matters now is fee / (virtual
size) .
• Here are the transaction ids for reference — Normal, Segwit in P2SH, Native Segwit. As you
can see you can get a cool 38% discount using native segwit !!
• You save on transaction fee and you transaction is smaller taking less space. This allows more
transactions to get into blocks. This reduces mempool congestion and decreases the average
transaction fee, because you are now competing with less unconfirmed tx to get into blocks
Segwit Address
• Originally proposed by Satoshi Nakamoto, legacy addresses of Bitcoin are
simple addresses that start with the digit
‘1’ (1Nh7uHdvY6fNwtQtM1G5EZAFPLC33B59rB).
• Activation of segwit simply means that you have new address formats
available on Bitcoin’s blockchain which are called multi-signature (P2SH)
addresses starting with the digit
‘3’ (3JxDR5iheVDMZP88tiFrtY4bw9UBZwTMcc).
• Benefits that you can enjoy by using segwit addresses.

- Signature Time Optimization up to 60%

- Reduction In Transaction Fees up to 40%

- Future Scaling Optimizations Such As Lightning Networks
• To upgrade to segwit, it is simple as sending a transaction from a Non-
Segwit address to a Segwit Adress.
Benefits of SegWit
• First, by improving efficiency, it enables transactions to be
confirmed faster. As a result of that, it will also potentially reduce the
relatively higher transaction fees that were an offshoot of the
increased demand.
• SegWit laid the groundwork for a “Lightning Network”, where
transactions are faster, cheaper, and more scalable. It also opens
up payment channels that move transactions off the main
blockchain, and some developers have already worked on this
technology.
• Because the witness structure contains Script versioning, it is also
possible to make changes to or introduce new opcodes to SegWit
scripts that would have originally required a hardfork to function
without SegWit.
Bitcoin Improvement
Proposal
• BIP141 Segregated Witness (Consensus layer) – activated on August 24,
2017
• BIP142 Address Format for Segregated Witness – withdrawn, superseded
by BIP 173
• BIP143 Transaction Signature Verification for Version 0 Witness Program [1]
– activated on August 24, 2017
• BIP144 Segregated Witness (Peer Services) – activated on August 24, 2017
• BIP148 Mandatory activation of segwit deployment – activated (mandated
the activation of BIP141, 143, 144)
• BIP173 Bech32 addresses, released as part of Bitcoin Core version 0.16.0
in February 2018.[31]
Useful Reference
• https://www.reddit.com/r/indiacryptogrp/comments/84lcba/
introduction_to_segregated_witness_online_event/
• https://bitcoincore.org/en/2016/01/26/segwit-benefits/
• https://bitcoincore.org/en/segwit_wallet_dev/
• https://bitcoincore.org/en/2016/10/27/segwit-upgrade-guide/
• https://bitcoincore.org/en/2016/10/28/segwit-costs/
• https://www.youtube.com/watch?v=QYZv92F2kCw - Segwit explained
• https://www.youtube.com/watch?v=M_GmiapVJAQ - Bitcoin Scaling
Explained: Big Blocks vs. SegWit
Thank You

Mais conteúdo relacionado

Mais procurados

Are Cryptocurrencies the Future Global Currency System?
Are Cryptocurrencies the Future Global Currency System?Are Cryptocurrencies the Future Global Currency System?
Are Cryptocurrencies the Future Global Currency System?Finlaw Consultancy Pvt Ltd
 
Will non fungible tokens (nft) become popular
Will non fungible tokens (nft) become popularWill non fungible tokens (nft) become popular
Will non fungible tokens (nft) become popularBrugusoftwaresolutions
 
Why NFTs has overtaken Defoe As the hottest trend in blockchain
Why NFTs has overtaken Defoe As the hottest trend in blockchainWhy NFTs has overtaken Defoe As the hottest trend in blockchain
Why NFTs has overtaken Defoe As the hottest trend in blockchainBlockchain Council
 
Alwintechnologies - A blockchain development company establishing a strong, l...
Alwintechnologies - A blockchain development company establishing a strong, l...Alwintechnologies - A blockchain development company establishing a strong, l...
Alwintechnologies - A blockchain development company establishing a strong, l...SoundaryaChepuri
 
Security Token Offering(STO) Services | STO Developement
Security Token Offering(STO) Services | STO Developement Security Token Offering(STO) Services | STO Developement
Security Token Offering(STO) Services | STO Developement Scarlet Emilye
 
Solana blockchain development
Solana blockchain developmentSolana blockchain development
Solana blockchain developmentzaarahary
 
Non-fungible tokens. From smart contract code to marketplace
Non-fungible tokens. From smart contract code to marketplaceNon-fungible tokens. From smart contract code to marketplace
Non-fungible tokens. From smart contract code to marketplaceGene Leybzon
 
Lecture series Michael Naylor: Tokenizing the Equity of Private Companies 1/2019
Lecture series Michael Naylor: Tokenizing the Equity of Private Companies 1/2019Lecture series Michael Naylor: Tokenizing the Equity of Private Companies 1/2019
Lecture series Michael Naylor: Tokenizing the Equity of Private Companies 1/2019Alessandra Kelmans Bozzo
 
The Art of non-fungible tokens
The Art of non-fungible tokensThe Art of non-fungible tokens
The Art of non-fungible tokensGene Leybzon
 
Smart Contractjp 1st section about
Smart Contractjp 1st section aboutSmart Contractjp 1st section about
Smart Contractjp 1st section aboutTomoaki Sato
 
How To Pick The Best Crypto Asset To Invest In
How To Pick The Best Crypto Asset To Invest InHow To Pick The Best Crypto Asset To Invest In
How To Pick The Best Crypto Asset To Invest InAiman Nazaal
 
Ethereum - Introduction to Smart Contracts
Ethereum - Introduction to Smart ContractsEthereum - Introduction to Smart Contracts
Ethereum - Introduction to Smart Contractsjarradh
 
How Security Tokens Can Be Created In Blockchain ?
How Security Tokens Can Be Created In Blockchain ?How Security Tokens Can Be Created In Blockchain ?
How Security Tokens Can Be Created In Blockchain ?zaarahary
 
P09 | Anurag Gupta | Non-Fungible Token | MCA
P09 | Anurag Gupta | Non-Fungible Token | MCAP09 | Anurag Gupta | Non-Fungible Token | MCA
P09 | Anurag Gupta | Non-Fungible Token | MCAANURAGGUPTA570
 
Ico pros and cons
 Ico  pros and cons Ico  pros and cons
Ico pros and conszaarahary
 
The Nuances of Tokenization: A brief explanation on attempts from this past d...
The Nuances of Tokenization: A brief explanation on attempts from this past d...The Nuances of Tokenization: A brief explanation on attempts from this past d...
The Nuances of Tokenization: A brief explanation on attempts from this past d...Tim Swanson
 

Mais procurados (20)

Are Cryptocurrencies the Future Global Currency System?
Are Cryptocurrencies the Future Global Currency System?Are Cryptocurrencies the Future Global Currency System?
Are Cryptocurrencies the Future Global Currency System?
 
Will non fungible tokens (nft) become popular
Will non fungible tokens (nft) become popularWill non fungible tokens (nft) become popular
Will non fungible tokens (nft) become popular
 
Why NFTs has overtaken Defoe As the hottest trend in blockchain
Why NFTs has overtaken Defoe As the hottest trend in blockchainWhy NFTs has overtaken Defoe As the hottest trend in blockchain
Why NFTs has overtaken Defoe As the hottest trend in blockchain
 
Nft scenario in India
Nft scenario in India Nft scenario in India
Nft scenario in India
 
NFT Webinar
NFT WebinarNFT Webinar
NFT Webinar
 
Alwintechnologies - A blockchain development company establishing a strong, l...
Alwintechnologies - A blockchain development company establishing a strong, l...Alwintechnologies - A blockchain development company establishing a strong, l...
Alwintechnologies - A blockchain development company establishing a strong, l...
 
Security Token Offering(STO) Services | STO Developement
Security Token Offering(STO) Services | STO Developement Security Token Offering(STO) Services | STO Developement
Security Token Offering(STO) Services | STO Developement
 
Solana blockchain development
Solana blockchain developmentSolana blockchain development
Solana blockchain development
 
Non-fungible tokens. From smart contract code to marketplace
Non-fungible tokens. From smart contract code to marketplaceNon-fungible tokens. From smart contract code to marketplace
Non-fungible tokens. From smart contract code to marketplace
 
Lecture series Michael Naylor: Tokenizing the Equity of Private Companies 1/2019
Lecture series Michael Naylor: Tokenizing the Equity of Private Companies 1/2019Lecture series Michael Naylor: Tokenizing the Equity of Private Companies 1/2019
Lecture series Michael Naylor: Tokenizing the Equity of Private Companies 1/2019
 
The Art of non-fungible tokens
The Art of non-fungible tokensThe Art of non-fungible tokens
The Art of non-fungible tokens
 
Smart Contractjp 1st section about
Smart Contractjp 1st section aboutSmart Contractjp 1st section about
Smart Contractjp 1st section about
 
How Smart Lawyers Handle Smart Contracts
How Smart Lawyers Handle Smart ContractsHow Smart Lawyers Handle Smart Contracts
How Smart Lawyers Handle Smart Contracts
 
How To Pick The Best Crypto Asset To Invest In
How To Pick The Best Crypto Asset To Invest InHow To Pick The Best Crypto Asset To Invest In
How To Pick The Best Crypto Asset To Invest In
 
Ethereum - Introduction to Smart Contracts
Ethereum - Introduction to Smart ContractsEthereum - Introduction to Smart Contracts
Ethereum - Introduction to Smart Contracts
 
How Security Tokens Can Be Created In Blockchain ?
How Security Tokens Can Be Created In Blockchain ?How Security Tokens Can Be Created In Blockchain ?
How Security Tokens Can Be Created In Blockchain ?
 
P09 | Anurag Gupta | Non-Fungible Token | MCA
P09 | Anurag Gupta | Non-Fungible Token | MCAP09 | Anurag Gupta | Non-Fungible Token | MCA
P09 | Anurag Gupta | Non-Fungible Token | MCA
 
Ico pros and cons
 Ico  pros and cons Ico  pros and cons
Ico pros and cons
 
The Nuances of Tokenization: A brief explanation on attempts from this past d...
The Nuances of Tokenization: A brief explanation on attempts from this past d...The Nuances of Tokenization: A brief explanation on attempts from this past d...
The Nuances of Tokenization: A brief explanation on attempts from this past d...
 
All About Ethereum
All About EthereumAll About Ethereum
All About Ethereum
 

Semelhante a Introduction to Segwit

Segregated witness and bitcoin scaling debate
Segregated witness and bitcoin scaling debateSegregated witness and bitcoin scaling debate
Segregated witness and bitcoin scaling debatedalcanto
 
SECWIT.pptx
SECWIT.pptxSECWIT.pptx
SECWIT.pptxRAJRM2
 
Blockchain (and Bitcoin)
Blockchain (and Bitcoin) Blockchain (and Bitcoin)
Blockchain (and Bitcoin) Nitin Jain
 
Dissecting Bitcoin.pdf
Dissecting Bitcoin.pdfDissecting Bitcoin.pdf
Dissecting Bitcoin.pdfTEWMAGAZINE
 
Blockchain presentation.pptx
Blockchain presentation.pptxBlockchain presentation.pptx
Blockchain presentation.pptxSwarnaSLcse
 
Node.js Blockchain Implementation
Node.js Blockchain ImplementationNode.js Blockchain Implementation
Node.js Blockchain ImplementationGlobalLogic Ukraine
 
PSU CSE 541 Project Idea
PSU CSE 541 Project IdeaPSU CSE 541 Project Idea
PSU CSE 541 Project IdeaNitish Upreti
 
Bitcoin improvement proposal segregated witness
Bitcoin improvement proposal segregated witnessBitcoin improvement proposal segregated witness
Bitcoin improvement proposal segregated witnessPrivKey, LLC
 
Blockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchainsBlockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchainsBrett Colbert
 
What is bitcoin?
What is bitcoin?What is bitcoin?
What is bitcoin?Suraj Bora
 
Blockchain in enterprise - Challenges, Considerations and Designs
Blockchain in enterprise - Challenges, Considerations and DesignsBlockchain in enterprise - Challenges, Considerations and Designs
Blockchain in enterprise - Challenges, Considerations and DesignsMichael Chi
 
OVERVIEW ON CRYPTOCURRENCY
OVERVIEW ON CRYPTOCURRENCYOVERVIEW ON CRYPTOCURRENCY
OVERVIEW ON CRYPTOCURRENCYdrrammohan
 
Bitcoin: A Peer-to-Peer Electronic Cash System
Bitcoin: A Peer-to-Peer Electronic Cash SystemBitcoin: A Peer-to-Peer Electronic Cash System
Bitcoin: A Peer-to-Peer Electronic Cash SystemParas Jain
 

Semelhante a Introduction to Segwit (20)

Segregated witness and bitcoin scaling debate
Segregated witness and bitcoin scaling debateSegregated witness and bitcoin scaling debate
Segregated witness and bitcoin scaling debate
 
SECWIT.pptx
SECWIT.pptxSECWIT.pptx
SECWIT.pptx
 
Blockchain (and Bitcoin)
Blockchain (and Bitcoin) Blockchain (and Bitcoin)
Blockchain (and Bitcoin)
 
Blockchain (1).pptx
Blockchain (1).pptxBlockchain (1).pptx
Blockchain (1).pptx
 
Dissecting Bitcoin.pdf
Dissecting Bitcoin.pdfDissecting Bitcoin.pdf
Dissecting Bitcoin.pdf
 
Understanding Blockchain
Understanding BlockchainUnderstanding Blockchain
Understanding Blockchain
 
Blockchain presentation.pptx
Blockchain presentation.pptxBlockchain presentation.pptx
Blockchain presentation.pptx
 
Node.js Blockchain Implementation
Node.js Blockchain ImplementationNode.js Blockchain Implementation
Node.js Blockchain Implementation
 
PSU CSE 541 Project Idea
PSU CSE 541 Project IdeaPSU CSE 541 Project Idea
PSU CSE 541 Project Idea
 
Bitcoin improvement proposal segregated witness
Bitcoin improvement proposal segregated witnessBitcoin improvement proposal segregated witness
Bitcoin improvement proposal segregated witness
 
Bitcoin data mining
Bitcoin data miningBitcoin data mining
Bitcoin data mining
 
BITCOIN EXPLAINED
BITCOIN EXPLAINEDBITCOIN EXPLAINED
BITCOIN EXPLAINED
 
Blockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchainsBlockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchains
 
What is bitcoin?
What is bitcoin?What is bitcoin?
What is bitcoin?
 
Blockchain
BlockchainBlockchain
Blockchain
 
Blockchain in enterprise - Challenges, Considerations and Designs
Blockchain in enterprise - Challenges, Considerations and DesignsBlockchain in enterprise - Challenges, Considerations and Designs
Blockchain in enterprise - Challenges, Considerations and Designs
 
Litecoin Crypto Currency Bootcamp
Litecoin Crypto Currency BootcampLitecoin Crypto Currency Bootcamp
Litecoin Crypto Currency Bootcamp
 
About TrustNote
About TrustNoteAbout TrustNote
About TrustNote
 
OVERVIEW ON CRYPTOCURRENCY
OVERVIEW ON CRYPTOCURRENCYOVERVIEW ON CRYPTOCURRENCY
OVERVIEW ON CRYPTOCURRENCY
 
Bitcoin: A Peer-to-Peer Electronic Cash System
Bitcoin: A Peer-to-Peer Electronic Cash SystemBitcoin: A Peer-to-Peer Electronic Cash System
Bitcoin: A Peer-to-Peer Electronic Cash System
 

Mais de Priyab Satoshi

Introduction to Chatbots
Introduction to ChatbotsIntroduction to Chatbots
Introduction to ChatbotsPriyab Satoshi
 
Introduction to IOT security
Introduction to IOT securityIntroduction to IOT security
Introduction to IOT securityPriyab Satoshi
 
Introduction to State Channels & Payment Channels
Introduction to State Channels & Payment ChannelsIntroduction to State Channels & Payment Channels
Introduction to State Channels & Payment ChannelsPriyab Satoshi
 
Cryptocurrency & ICO Regulations in US
Cryptocurrency & ICO Regulations in USCryptocurrency & ICO Regulations in US
Cryptocurrency & ICO Regulations in USPriyab Satoshi
 
Online privacy & security
Online privacy & securityOnline privacy & security
Online privacy & securityPriyab Satoshi
 
Introduction to Cognitive Automation
Introduction to Cognitive AutomationIntroduction to Cognitive Automation
Introduction to Cognitive AutomationPriyab Satoshi
 
Robotic process automation Introduction
Robotic process automation IntroductionRobotic process automation Introduction
Robotic process automation IntroductionPriyab Satoshi
 
Decentralised Exchanges - An Introduction
Decentralised Exchanges - An IntroductionDecentralised Exchanges - An Introduction
Decentralised Exchanges - An IntroductionPriyab Satoshi
 
On-chain Crowdfunding & Asset Token
On-chain Crowdfunding & Asset Token On-chain Crowdfunding & Asset Token
On-chain Crowdfunding & Asset Token Priyab Satoshi
 
Introduction to blockchain
Introduction to blockchainIntroduction to blockchain
Introduction to blockchainPriyab Satoshi
 
Blockchain and Decentralization
Blockchain and DecentralizationBlockchain and Decentralization
Blockchain and DecentralizationPriyab Satoshi
 
Cryptocurrency & Regulatory Environment
Cryptocurrency & Regulatory EnvironmentCryptocurrency & Regulatory Environment
Cryptocurrency & Regulatory EnvironmentPriyab Satoshi
 
Understanding blockchain
Understanding blockchainUnderstanding blockchain
Understanding blockchainPriyab Satoshi
 

Mais de Priyab Satoshi (15)

Introduction to Chatbots
Introduction to ChatbotsIntroduction to Chatbots
Introduction to Chatbots
 
Introduction to IOT security
Introduction to IOT securityIntroduction to IOT security
Introduction to IOT security
 
Introduction to State Channels & Payment Channels
Introduction to State Channels & Payment ChannelsIntroduction to State Channels & Payment Channels
Introduction to State Channels & Payment Channels
 
Introduction to GDPR
Introduction to GDPRIntroduction to GDPR
Introduction to GDPR
 
Cryptocurrency & ICO Regulations in US
Cryptocurrency & ICO Regulations in USCryptocurrency & ICO Regulations in US
Cryptocurrency & ICO Regulations in US
 
Online privacy & security
Online privacy & securityOnline privacy & security
Online privacy & security
 
Introduction to Cognitive Automation
Introduction to Cognitive AutomationIntroduction to Cognitive Automation
Introduction to Cognitive Automation
 
Robotic process automation Introduction
Robotic process automation IntroductionRobotic process automation Introduction
Robotic process automation Introduction
 
Kademlia introduction
Kademlia introductionKademlia introduction
Kademlia introduction
 
Decentralised Exchanges - An Introduction
Decentralised Exchanges - An IntroductionDecentralised Exchanges - An Introduction
Decentralised Exchanges - An Introduction
 
On-chain Crowdfunding & Asset Token
On-chain Crowdfunding & Asset Token On-chain Crowdfunding & Asset Token
On-chain Crowdfunding & Asset Token
 
Introduction to blockchain
Introduction to blockchainIntroduction to blockchain
Introduction to blockchain
 
Blockchain and Decentralization
Blockchain and DecentralizationBlockchain and Decentralization
Blockchain and Decentralization
 
Cryptocurrency & Regulatory Environment
Cryptocurrency & Regulatory EnvironmentCryptocurrency & Regulatory Environment
Cryptocurrency & Regulatory Environment
 
Understanding blockchain
Understanding blockchainUnderstanding blockchain
Understanding blockchain
 

Último

Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 

Último (20)

Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 

Introduction to Segwit

  • 1. Introduction to Segregated Witness By Priyab Satoshi (@twitmyreview)
  • 2. Agenda • Bitcoin transactions • The scaling debate • Segwit - Segregated Witness • Benefit from SegWit • Bitcoin Improvement Proposals
  • 3. Bitcoin Transactions • A bitcoin transaction is data that describes the movement of bitcoins.It is basically a series of inputs and a series of outputs.
  • 4. Bitcoin Transaction Structure • The transaction data tells you how to unlock existing packages of bitcoins (from previous transactions), and how to lock them up again
  • 5. Block Limit • Originally, there was no limit to the size of blocks • This allowed malicious actors to make up fake "block" data and do DDOS Attacks • The solution Satoshi Nakamoto designed was to put a limit on block size, which was 1 MB. • Attacks using huge blocks would be instantly detected and rejected, without significantly slowing down the network.
  • 7. Scalability and Malleability • A new block is added to the chain at random intervals averaging, by design, ten minutes (proof-of-work causes this delay). Miners can only add transactions within these limits • With the limit on block-size, this limits the number of transactions that can be processed in a given time. • Transaction malleability: Cryptographically signed signature doesn't encompass all transaction data several different ways of losing or stealing bitcoins are possible.
  • 8. Scalability and Malleability • 60% - 70% of the transaction size is the signature. This not only creates transaction bloat but also creates malleability issues.
  • 9. Scalability Problem • As transactions increase and become data- heavy, it clogs the blocks, which bogs down the network when demand is high. This becomes an increasing issue as more people start using Bitcoin and adopt the technology. In order for the Bitcoin to succeed and be useful, a solution to process the blocks faster is necessary.
  • 10. The Scaling Debate Solutions to the scaleability problem • Segwit (e.g. BTC) • Increase the block size (e.g BCC) • The Lightning Network
  • 11. Segregated Witness (SegWit) • It was locked in on 8th of August. Two weeks to signal support • August 24th 2017 Segwit Activated on Block 481,824 • Aims to speed up Bitcoin confirmation of Bitcoin transactions • It also moves signatures out of the transaction addressing the malleability problem. This will make it safer to use with the Lightning Network.
  • 14. What is Segwit? • The proposal is to move all of the unlocking code to the end of the transaction data. The TXID is then created from all of the transaction data, except for the unlocking code. • The TXID is only influenced by the effects of a transaction (the movement of bitcoins), and not by any code needed to validate the transaction (i.e. signatures used to unlock existing bitcoins so that they can be spent). • We separated the "validating" part (unlocking code) from the "effective" part of the transaction.
  • 15. Segwit vs Non SegWit Transaction
  • 18. How to Use SegWit • Install a SegWit-supporting wallet. • Receive money on new SegWit addresses, which start with 3. You must generate new addresses; your old addresses will never be SegWit addresses. Note that not all addresses starting with 3 are SegWit addresses, and it is impossible to tell just from looking at an address whether it is a SegWit address. • Whenever you spend BTC which you have received via SegWit addresses, you will receive the SegWit discount. If you send a transaction spending some BTC received via non-SegWit addresses and some BTC received via SegWit addresses, you will receive a partial discount. The destination address doesn't matter. • There are no compatibility issues: non-SegWit wallets can send BTC to SegWit addresses, and SegWit wallets can send BTC to non-SegWit addresses.
  • 19. Saving Transaction Fee using Segwit  • For segwit, a new concept called weight was introduced, so what matters now is fee / (virtual size) . • Here are the transaction ids for reference — Normal, Segwit in P2SH, Native Segwit. As you can see you can get a cool 38% discount using native segwit !! • You save on transaction fee and you transaction is smaller taking less space. This allows more transactions to get into blocks. This reduces mempool congestion and decreases the average transaction fee, because you are now competing with less unconfirmed tx to get into blocks
  • 20. Segwit Address • Originally proposed by Satoshi Nakamoto, legacy addresses of Bitcoin are simple addresses that start with the digit ‘1’ (1Nh7uHdvY6fNwtQtM1G5EZAFPLC33B59rB). • Activation of segwit simply means that you have new address formats available on Bitcoin’s blockchain which are called multi-signature (P2SH) addresses starting with the digit ‘3’ (3JxDR5iheVDMZP88tiFrtY4bw9UBZwTMcc). • Benefits that you can enjoy by using segwit addresses.
 - Signature Time Optimization up to 60%
 - Reduction In Transaction Fees up to 40%
 - Future Scaling Optimizations Such As Lightning Networks • To upgrade to segwit, it is simple as sending a transaction from a Non- Segwit address to a Segwit Adress.
  • 21. Benefits of SegWit • First, by improving efficiency, it enables transactions to be confirmed faster. As a result of that, it will also potentially reduce the relatively higher transaction fees that were an offshoot of the increased demand. • SegWit laid the groundwork for a “Lightning Network”, where transactions are faster, cheaper, and more scalable. It also opens up payment channels that move transactions off the main blockchain, and some developers have already worked on this technology. • Because the witness structure contains Script versioning, it is also possible to make changes to or introduce new opcodes to SegWit scripts that would have originally required a hardfork to function without SegWit.
  • 22. Bitcoin Improvement Proposal • BIP141 Segregated Witness (Consensus layer) – activated on August 24, 2017 • BIP142 Address Format for Segregated Witness – withdrawn, superseded by BIP 173 • BIP143 Transaction Signature Verification for Version 0 Witness Program [1] – activated on August 24, 2017 • BIP144 Segregated Witness (Peer Services) – activated on August 24, 2017 • BIP148 Mandatory activation of segwit deployment – activated (mandated the activation of BIP141, 143, 144) • BIP173 Bech32 addresses, released as part of Bitcoin Core version 0.16.0 in February 2018.[31]
  • 23. Useful Reference • https://www.reddit.com/r/indiacryptogrp/comments/84lcba/ introduction_to_segregated_witness_online_event/ • https://bitcoincore.org/en/2016/01/26/segwit-benefits/ • https://bitcoincore.org/en/segwit_wallet_dev/ • https://bitcoincore.org/en/2016/10/27/segwit-upgrade-guide/ • https://bitcoincore.org/en/2016/10/28/segwit-costs/ • https://www.youtube.com/watch?v=QYZv92F2kCw - Segwit explained • https://www.youtube.com/watch?v=M_GmiapVJAQ - Bitcoin Scaling Explained: Big Blocks vs. SegWit