SlideShare a Scribd company logo
1 of 29
Download to read offline
Digital Signature in the Blockchain
Jean-Luc Beuchat
Institute of Information Systems,
Techno-Pˆole 3, 3960 Sierre, Switzerland
jean-luc.beuchat@hevs.ch
Outline of the Talk
Background on Blockchain
Digital Signature in Bitcoin
Digital Signature in the Blockchain 1 / 20
Blockchain in Switzerland – A Few Examples
2016 · · · · · ·•
The city of Zug is the first public entity in the world to accept
as payment option
2018 · · · · · ·•
Canton of Schaffhausen officially launches Procivis electronic
ID solution (timestamping on the blockchain)
2018 · · · · · ·•
Blockimmo (real estate tokenization platform) receives FINMA
approval that real estate shares can be purchased via
blockchain
2018 · · · · · ·• CMTA – Blueprint for tokenization
Digital Signature in the Blockchain 2 / 20
Blockchain in Switzerland – A Few Examples
2019 · · · · · ·•
ZHAW and Swisscom announce the first qualified electronic
signature for blockchain
2019 · · · · · ·•
Several Swiss private banks enter blockchain asset
management market (Von Tobel, Falcon, Arab Bank
Switzerland, etc.)
2019 · · · · · ·• Switzerland’s first crypto banks (Sygnum and SEBA) receive
FINMA licences
2019 · · · · · ·• First prototype of the SIX Digital Exchange
Digital Signature in the Blockchain 3 / 20
Outline of the Talk
Background on Blockchain
Digital Signature in Bitcoin
Digital Signature in the Blockchain 4 / 20
Where the Story Begins
1978 · · · · · ·•
Public-key cryptography (R.L. Rivest, A. Shamir, and L.
Adleman)
1982 · · · · · ·•
Byzantine generals problem (L. Lamport, R. Shostak, and M.
Pease)
1982 · · · · · ·• Blind signatures for untraceable payments (D. Chaum)
Digital Signature in the Blockchain 5 / 20
Chaum’s Blind Signature
The message author and the signer are different parties
• e-voting: voter and election authority
• Chaum’s untraceable payment: payer and mint (central authority)
A message is disguised before it is signed
Paper analog: carbon paper lined envelope
Digital Signature in the Blockchain 6 / 20
Where the Story Begins
1997 · · · · · ·• Smart contracts (N. Szabo)
1998 · · · · · ·• b-money (W. Dai)
2002 · · · · · ·• Proof of work (A. Back)
2008 · · · · · ·• (S. Nakamoto)
2013 · · · · · ·• Ethereum (Vitalik Buterin)
Digital Signature in the Blockchain 7 / 20
Background on Blockchain
Distributed database
Growing list of records (called blocks)
Blocks are secured and bound to each other using cryptography
Shared and immutable ledger (i.e. your wealth can’t be tampered with)
Digital Signature in the Blockchain 8 / 20
Background on Blockchain
Permissionless blockchain
• Open and decentralized
• Everyone is allowed to create new blocks
• Truly public and easily verifiable
• Examples: , Ethereum
Permissioned blockchain
• Central authority
• Peers receive read and/or write privileges
• Examples: Hyperledger, Corda
Digital Signature in the Blockchain 9 / 20
Background on Blockchain
Ability to reach consensus despite malicious nodes
Desired properties of a consensus algorithm
• Responsiveness
(drive to consensus at the pace of actual vs. maximum network delay)
• Communication complexity linear in the number of peers
Algorithm Responsiveness Linearity
Proof of work
NEO Delegated Byzantine fault tolerance
Libra HotStuff
Digital Signature in the Blockchain 10 / 20
Outline of the Talk
Background on Blockchain
Digital Signature in Bitcoin
Digital Signature in the Blockchain 11 / 20
Bitcoin Address
Short, alphanumeric string
Used to send and receive digital assets
Derived from a user’s public key
Example: 17khFNgJ4yk55agx9vjZbwTfHMHDHvFn7A
Digital Signature in the Blockchain 12 / 20
Wallet
Stores your private key(s)
Hot wallet
• Connected to the internet
• Risky (zero-day, unpatched OS vulnerability, etc.)
Cold wallet
• USB drive or paper wallet in a safe deposit box
• Offline hardware wallet
Trezor
Ledger Nano S
Hardware Security Module (HSM)
Digital Signature in the Blockchain 13 / 20
Bitcoin Transaction
Interaction between parties
Public entry in the blockchain
Unspent Transaction Output (UTXO)
• Indivisible chunk of
• Locked to a specific owner
• Scattered in the blockchain
• Transaction input: UTXO consumed by a transaction
• Transaction output: UTXO produced by a transaction
Digital Signature in the Blockchain 14 / 20
Transaction Scripts
Script: scripting system for transactions
• Forth-like
• Stacked-based
• Intentionally not Turing-complete, with no loops
scriptPubKey (locking script)
• Encumbrance placed on an output
• Specifies the conditions that must be met to spend the output
• Usually contains a public key
scriptSig (unlocking script)
• Allows an UTXO to be spent
• Usually contains a digital signature
Digital Signature in the Blockchain 15 / 20
Transaction Scripts
<PubKeyHash> EQUALVERIFY CHECKSIGDUP
Locking script (scriptPubKey)
HASH160
Digital Signature in the Blockchain 16 / 20
Transaction Scripts
<PubKeyHash> EQUALVERIFY CHECKSIGDUP
Locking script (scriptPubKey)
HASH160DUP HASH160 <PubKeyHash> EQUALVERIFY CHECKSIG<sig> <PubKey>
Unlocking script (scriptSig)
Digital Signature in the Blockchain 16 / 20
Transaction Scripts
<PubKeyHash> EQUALVERIFY CHECKSIGDUP
Locking script (scriptPubKey)
HASH160DUP HASH160 <PubKeyHash> EQUALVERIFY CHECKSIG<sig> <PubKey>
Unlocking script (scriptSig)
Execution pointer
<sig>
Stack
Digital Signature in the Blockchain 16 / 20
Transaction Scripts
<PubKeyHash> EQUALVERIFY CHECKSIGDUP
Locking script (scriptPubKey)
HASH160DUP HASH160 <PubKeyHash> EQUALVERIFY CHECKSIG<sig> <PubKey>
Unlocking script (scriptSig)
Execution pointer
<sig>
Stack
<sig>
<PubKey>
Digital Signature in the Blockchain 16 / 20
Transaction Scripts
<PubKeyHash> EQUALVERIFY CHECKSIGDUP
Locking script (scriptPubKey)
HASH160DUP HASH160 <PubKeyHash> EQUALVERIFY CHECKSIG<sig> <PubKey>
Unlocking script (scriptSig)
Execution pointer
<sig>
Stack
<sig>
<PubKey><PubKey>
<PubKey>
<sig>
Digital Signature in the Blockchain 16 / 20
Transaction Scripts
<PubKeyHash> EQUALVERIFY CHECKSIGDUP
Locking script (scriptPubKey)
HASH160DUP HASH160 <PubKeyHash> EQUALVERIFY CHECKSIG<sig> <PubKey>
Unlocking script (scriptSig)
Execution pointer
<sig>
Stack
<sig>
<PubKey><PubKey>
<PubKey>
<sig>
<PubKeyHash>
<sig>
<PubKey>
Digital Signature in the Blockchain 16 / 20
Transaction Scripts
<PubKeyHash> EQUALVERIFY CHECKSIGDUP
Locking script (scriptPubKey)
HASH160DUP HASH160 <PubKeyHash> EQUALVERIFY CHECKSIG<sig> <PubKey>
Unlocking script (scriptSig)
Execution pointer
<sig>
Stack
<sig>
<PubKey><PubKey>
<PubKey>
<sig>
<PubKeyHash>
<sig>
<PubKey><PubKey>
<PubKeyHash>
<PubKeyHash>
<sig>
Digital Signature in the Blockchain 16 / 20
Transaction Scripts
<PubKeyHash> EQUALVERIFY CHECKSIGDUP
Locking script (scriptPubKey)
HASH160DUP HASH160 <PubKeyHash> EQUALVERIFY CHECKSIG<sig> <PubKey>
Unlocking script (scriptSig)
Execution pointer
<sig>
Stack
<sig>
<PubKey><PubKey>
<PubKey>
<sig>
<PubKeyHash>
<sig>
<PubKey><PubKey>
<PubKeyHash>
<PubKeyHash>
<sig>
<PubKey>
<sig>
Digital Signature in the Blockchain 16 / 20
Transaction Scripts
<PubKeyHash> EQUALVERIFY CHECKSIGDUP
Locking script (scriptPubKey)
HASH160DUP HASH160 <PubKeyHash> EQUALVERIFY CHECKSIG<sig> <PubKey>
Unlocking script (scriptSig)
Execution pointer
<sig>
Stack
<sig>
<PubKey><PubKey>
<PubKey>
<sig>
<PubKeyHash>
<sig>
<PubKey><PubKey>
<PubKeyHash>
<PubKeyHash>
<sig>
<PubKey>
<sig>TRUE
Digital Signature in the Blockchain 16 / 20
Pay to Script Hash (P2SH) Transaction
Script hash instead of public key hash in the locking script
The Recipient must provide
• A script matching the script hash
• Data which makes the script evaluate to true
M-of-N multisignature transaction
Locking scriptUnlocking script
<script><C sig><B sig>OP 0 HASH160 <script hash> EQUAL
<A pubkey> <B pubkey> <C pubkey> OP 3OP 2 CHECKMULTSIG
Digital Signature in the Blockchain 17 / 20
Summary
Bitcoin uses digital signatures to prove ownership of UTXOs
Proof that you own the private key without having to reveal it
Keep your private key(s) offline (cold storage)
Digital Signature in the Blockchain 18 / 20
Questions?
Digital Signature in the Blockchain 19 / 20
References
S. Nakamoto. Bitcoin: A Peer-to-Peer Electronic Cash System. 2008.
https://bitcoin.org/bitcoin.pdf
A.M. Antonopoulos. Mastering Bitcoin. O’Reilly, 2014.
R. Wattenhofer. The Science of the Blockchain. Inverted Forest Publishing, 2016.
K. W¨ust and A. Gervais. Do you need a Blockchain? Cryptology ePrint Archive,
Report 2017/375.
D. Yaga, N. Roby, K. Scarfone. Blockchain Technology Overview. NISTIR 8202,
October 2018.
Digital Signature in the Blockchain 20 / 20

More Related Content

What's hot

What's hot (20)

Intro to smart contract on blockchain en
Intro to smart contract on blockchain enIntro to smart contract on blockchain en
Intro to smart contract on blockchain en
 
Sidechain talk
Sidechain talkSidechain talk
Sidechain talk
 
Bitcoin & Ethereum Address
Bitcoin & Ethereum AddressBitcoin & Ethereum Address
Bitcoin & Ethereum Address
 
Bitcoin Internal
Bitcoin InternalBitcoin Internal
Bitcoin Internal
 
Ethereum wallet Intro 以太坊錢包介紹
Ethereum wallet Intro 以太坊錢包介紹Ethereum wallet Intro 以太坊錢包介紹
Ethereum wallet Intro 以太坊錢包介紹
 
Bitcoin Status Report - On-Chain Scaling Aug 2016
Bitcoin Status Report - On-Chain Scaling Aug 2016Bitcoin Status Report - On-Chain Scaling Aug 2016
Bitcoin Status Report - On-Chain Scaling Aug 2016
 
BitCoin Protocol
BitCoin ProtocolBitCoin Protocol
BitCoin Protocol
 
BitCoin explained
BitCoin explainedBitCoin explained
BitCoin explained
 
Altcoins
AltcoinsAltcoins
Altcoins
 
Sidechains Presentation
Sidechains PresentationSidechains Presentation
Sidechains Presentation
 
solutions.hamburg | blockchain basics
solutions.hamburg | blockchain basicssolutions.hamburg | blockchain basics
solutions.hamburg | blockchain basics
 
Build your own block chain
Build your own block chainBuild your own block chain
Build your own block chain
 
CBGTBT - Part 2 - Blockchains 101
CBGTBT - Part 2 - Blockchains 101CBGTBT - Part 2 - Blockchains 101
CBGTBT - Part 2 - Blockchains 101
 
create your own cryptocurrency
create your own cryptocurrencycreate your own cryptocurrency
create your own cryptocurrency
 
Blockchain 101
Blockchain 101Blockchain 101
Blockchain 101
 
Intro into blockchain
Intro into blockchainIntro into blockchain
Intro into blockchain
 
The blockchain
The blockchainThe blockchain
The blockchain
 
Bitcoin
BitcoinBitcoin
Bitcoin
 
Introduction to blockchain and cryptocurrency technologies
Introduction to blockchain and cryptocurrency technologiesIntroduction to blockchain and cryptocurrency technologies
Introduction to blockchain and cryptocurrency technologies
 
Eclipsecon Europe: Blockchain, Ethereum and Business Applications
Eclipsecon Europe: Blockchain, Ethereum and Business ApplicationsEclipsecon Europe: Blockchain, Ethereum and Business Applications
Eclipsecon Europe: Blockchain, Ethereum and Business Applications
 

Similar to eGov Workshop - Digital Signature in the Blockchain - Jean-Luc Beuchat

Post-Bitcoin Cryptocurrencies, Off-Chain Transaction Channels, and Cryptocur...
 Post-Bitcoin Cryptocurrencies, Off-Chain Transaction Channels, and Cryptocur... Post-Bitcoin Cryptocurrencies, Off-Chain Transaction Channels, and Cryptocur...
Post-Bitcoin Cryptocurrencies, Off-Chain Transaction Channels, and Cryptocur...
Bernhard Haslhofer
 

Similar to eGov Workshop - Digital Signature in the Blockchain - Jean-Luc Beuchat (20)

Post-Bitcoin Cryptocurrencies, Off-Chain Transaction Channels, and Cryptocur...
 Post-Bitcoin Cryptocurrencies, Off-Chain Transaction Channels, and Cryptocur... Post-Bitcoin Cryptocurrencies, Off-Chain Transaction Channels, and Cryptocur...
Post-Bitcoin Cryptocurrencies, Off-Chain Transaction Channels, and Cryptocur...
 
On why bitcoin and friends like blockchain
On why bitcoin and friends like blockchainOn why bitcoin and friends like blockchain
On why bitcoin and friends like blockchain
 
Intro to blockchain
Intro to blockchainIntro to blockchain
Intro to blockchain
 
WSO2Con USA 2017: Keynote - The Blockchain’s Digital Disruption
WSO2Con USA 2017: Keynote - The Blockchain’s Digital DisruptionWSO2Con USA 2017: Keynote - The Blockchain’s Digital Disruption
WSO2Con USA 2017: Keynote - The Blockchain’s Digital Disruption
 
Blockchain Technology
Blockchain TechnologyBlockchain Technology
Blockchain Technology
 
Blockchain Technology
Blockchain TechnologyBlockchain Technology
Blockchain Technology
 
Paradigm shift: from the bitcoin Blockchain to Networked Computing
Paradigm shift: from the bitcoin Blockchain to Networked ComputingParadigm shift: from the bitcoin Blockchain to Networked Computing
Paradigm shift: from the bitcoin Blockchain to Networked Computing
 
Blockchain and Bitcoin
Blockchain and BitcoinBlockchain and Bitcoin
Blockchain and Bitcoin
 
Banking on blockchains
Banking on blockchainsBanking on blockchains
Banking on blockchains
 
Blockchain
BlockchainBlockchain
Blockchain
 
Blockchain: use cases for the future
Blockchain: use cases for the futureBlockchain: use cases for the future
Blockchain: use cases for the future
 
A Pharo story on blockchain technology
A Pharo story on blockchain technologyA Pharo story on blockchain technology
A Pharo story on blockchain technology
 
Blockchain as a new cyber strategy for your business
Blockchain as a new cyber strategy for your businessBlockchain as a new cyber strategy for your business
Blockchain as a new cyber strategy for your business
 
Blockchain technology Overview
Blockchain technology OverviewBlockchain technology Overview
Blockchain technology Overview
 
Blockchain External.pdf
Blockchain External.pdfBlockchain External.pdf
Blockchain External.pdf
 
Blockchain disruptive technology 2018
Blockchain disruptive technology 2018Blockchain disruptive technology 2018
Blockchain disruptive technology 2018
 
Blockchain.pptx
Blockchain.pptxBlockchain.pptx
Blockchain.pptx
 
BlockChain for the Banker
BlockChain for the BankerBlockChain for the Banker
BlockChain for the Banker
 
The Potential of Blockchain Technology
The Potential of Blockchain TechnologyThe Potential of Blockchain Technology
The Potential of Blockchain Technology
 
Blockchain an introduction_n_li
Blockchain an introduction_n_liBlockchain an introduction_n_li
Blockchain an introduction_n_li
 

More from eGov Innovation Center

More from eGov Innovation Center (20)

eGov Workshop - Contrôle de la validitié d'un document grâce à la signature é...
eGov Workshop - Contrôle de la validitié d'un document grâce à la signature é...eGov Workshop - Contrôle de la validitié d'un document grâce à la signature é...
eGov Workshop - Contrôle de la validitié d'un document grâce à la signature é...
 
eGov Workshop - Etude de cas sur la signature électronique via Skribble - Mik...
eGov Workshop - Etude de cas sur la signature électronique via Skribble - Mik...eGov Workshop - Etude de cas sur la signature électronique via Skribble - Mik...
eGov Workshop - Etude de cas sur la signature électronique via Skribble - Mik...
 
eGov Workshop - Introduction à la signature électronique - Leo Bolshanin
eGov Workshop - Introduction à la signature électronique - Leo BolshanineGov Workshop - Introduction à la signature électronique - Leo Bolshanin
eGov Workshop - Introduction à la signature électronique - Leo Bolshanin
 
Ouverture eGov Workshop - Signature électronique
Ouverture eGov Workshop - Signature électronique Ouverture eGov Workshop - Signature électronique
Ouverture eGov Workshop - Signature électronique
 
Open Data : les données du territoire en libre-service - SITG
Open Data : les données du territoire en libre-service - SITGOpen Data : les données du territoire en libre-service - SITG
Open Data : les données du territoire en libre-service - SITG
 
Préservation et accès aux données du CERN - Jean-Yves Le Meur
Préservation et accès aux données du CERN - Jean-Yves Le MeurPréservation et accès aux données du CERN - Jean-Yves Le Meur
Préservation et accès aux données du CERN - Jean-Yves Le Meur
 
La protection des données: de la fermeture à l'ouverture - Fédération des ent...
La protection des données: de la fermeture à l'ouverture - Fédération des ent...La protection des données: de la fermeture à l'ouverture - Fédération des ent...
La protection des données: de la fermeture à l'ouverture - Fédération des ent...
 
Protection des données et droit du travail - Juliette Ancelle
Protection des données et droit du travail - Juliette AncelleProtection des données et droit du travail - Juliette Ancelle
Protection des données et droit du travail - Juliette Ancelle
 
eGov - La Protection des données de la fermeture à l'ouverture - Olivia Guyot...
eGov - La Protection des données de la fermeture à l'ouverture - Olivia Guyot...eGov - La Protection des données de la fermeture à l'ouverture - Olivia Guyot...
eGov - La Protection des données de la fermeture à l'ouverture - Olivia Guyot...
 
La protection des données selon la LIPAD - Préposé cantonal à la protection ...
La protection des données selon la LIPAD - Préposé cantonal à la protection ...La protection des données selon la LIPAD - Préposé cantonal à la protection ...
La protection des données selon la LIPAD - Préposé cantonal à la protection ...
 
Introduction à Blockchain, Bitcoin, Ethereum
Introduction à Blockchain, Bitcoin, EthereumIntroduction à Blockchain, Bitcoin, Ethereum
Introduction à Blockchain, Bitcoin, Ethereum
 
Le paiement par mobile
Le paiement par mobileLe paiement par mobile
Le paiement par mobile
 
e-factures: avantageux pour vous, pratique pour vos citoyens
e-factures: avantageux pour vous, pratique pour vos citoyense-factures: avantageux pour vous, pratique pour vos citoyens
e-factures: avantageux pour vous, pratique pour vos citoyens
 
Paiements électronique
Paiements électroniquePaiements électronique
Paiements électronique
 
User Experience & eGovernment for all
User Experience & eGovernment for allUser Experience & eGovernment for all
User Experience & eGovernment for all
 
Digital Seniors
Digital SeniorsDigital Seniors
Digital Seniors
 
La carte professionnelle, un outil de lutte contre le travail au noir
La carte professionnelle, un outil de lutte contre le travail au noirLa carte professionnelle, un outil de lutte contre le travail au noir
La carte professionnelle, un outil de lutte contre le travail au noir
 
Des sites vraiment faciles?
Des sites vraiment faciles?Des sites vraiment faciles?
Des sites vraiment faciles?
 
Smart City – pour mieux comprendre les besoins
Smart City – pour mieux comprendre les besoinsSmart City – pour mieux comprendre les besoins
Smart City – pour mieux comprendre les besoins
 
Etude sur le potentiel du dossier de citoyenneté électronique du point de vue...
Etude sur le potentiel du dossier de citoyenneté électronique du point de vue...Etude sur le potentiel du dossier de citoyenneté électronique du point de vue...
Etude sur le potentiel du dossier de citoyenneté électronique du point de vue...
 

Recently uploaded

Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
cupulin
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
EADTU
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 

Recently uploaded (20)

Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 

eGov Workshop - Digital Signature in the Blockchain - Jean-Luc Beuchat

  • 1. Digital Signature in the Blockchain Jean-Luc Beuchat Institute of Information Systems, Techno-Pˆole 3, 3960 Sierre, Switzerland jean-luc.beuchat@hevs.ch
  • 2. Outline of the Talk Background on Blockchain Digital Signature in Bitcoin Digital Signature in the Blockchain 1 / 20
  • 3. Blockchain in Switzerland – A Few Examples 2016 · · · · · ·• The city of Zug is the first public entity in the world to accept as payment option 2018 · · · · · ·• Canton of Schaffhausen officially launches Procivis electronic ID solution (timestamping on the blockchain) 2018 · · · · · ·• Blockimmo (real estate tokenization platform) receives FINMA approval that real estate shares can be purchased via blockchain 2018 · · · · · ·• CMTA – Blueprint for tokenization Digital Signature in the Blockchain 2 / 20
  • 4. Blockchain in Switzerland – A Few Examples 2019 · · · · · ·• ZHAW and Swisscom announce the first qualified electronic signature for blockchain 2019 · · · · · ·• Several Swiss private banks enter blockchain asset management market (Von Tobel, Falcon, Arab Bank Switzerland, etc.) 2019 · · · · · ·• Switzerland’s first crypto banks (Sygnum and SEBA) receive FINMA licences 2019 · · · · · ·• First prototype of the SIX Digital Exchange Digital Signature in the Blockchain 3 / 20
  • 5. Outline of the Talk Background on Blockchain Digital Signature in Bitcoin Digital Signature in the Blockchain 4 / 20
  • 6. Where the Story Begins 1978 · · · · · ·• Public-key cryptography (R.L. Rivest, A. Shamir, and L. Adleman) 1982 · · · · · ·• Byzantine generals problem (L. Lamport, R. Shostak, and M. Pease) 1982 · · · · · ·• Blind signatures for untraceable payments (D. Chaum) Digital Signature in the Blockchain 5 / 20
  • 7. Chaum’s Blind Signature The message author and the signer are different parties • e-voting: voter and election authority • Chaum’s untraceable payment: payer and mint (central authority) A message is disguised before it is signed Paper analog: carbon paper lined envelope Digital Signature in the Blockchain 6 / 20
  • 8. Where the Story Begins 1997 · · · · · ·• Smart contracts (N. Szabo) 1998 · · · · · ·• b-money (W. Dai) 2002 · · · · · ·• Proof of work (A. Back) 2008 · · · · · ·• (S. Nakamoto) 2013 · · · · · ·• Ethereum (Vitalik Buterin) Digital Signature in the Blockchain 7 / 20
  • 9. Background on Blockchain Distributed database Growing list of records (called blocks) Blocks are secured and bound to each other using cryptography Shared and immutable ledger (i.e. your wealth can’t be tampered with) Digital Signature in the Blockchain 8 / 20
  • 10. Background on Blockchain Permissionless blockchain • Open and decentralized • Everyone is allowed to create new blocks • Truly public and easily verifiable • Examples: , Ethereum Permissioned blockchain • Central authority • Peers receive read and/or write privileges • Examples: Hyperledger, Corda Digital Signature in the Blockchain 9 / 20
  • 11. Background on Blockchain Ability to reach consensus despite malicious nodes Desired properties of a consensus algorithm • Responsiveness (drive to consensus at the pace of actual vs. maximum network delay) • Communication complexity linear in the number of peers Algorithm Responsiveness Linearity Proof of work NEO Delegated Byzantine fault tolerance Libra HotStuff Digital Signature in the Blockchain 10 / 20
  • 12. Outline of the Talk Background on Blockchain Digital Signature in Bitcoin Digital Signature in the Blockchain 11 / 20
  • 13. Bitcoin Address Short, alphanumeric string Used to send and receive digital assets Derived from a user’s public key Example: 17khFNgJ4yk55agx9vjZbwTfHMHDHvFn7A Digital Signature in the Blockchain 12 / 20
  • 14. Wallet Stores your private key(s) Hot wallet • Connected to the internet • Risky (zero-day, unpatched OS vulnerability, etc.) Cold wallet • USB drive or paper wallet in a safe deposit box • Offline hardware wallet Trezor Ledger Nano S Hardware Security Module (HSM) Digital Signature in the Blockchain 13 / 20
  • 15. Bitcoin Transaction Interaction between parties Public entry in the blockchain Unspent Transaction Output (UTXO) • Indivisible chunk of • Locked to a specific owner • Scattered in the blockchain • Transaction input: UTXO consumed by a transaction • Transaction output: UTXO produced by a transaction Digital Signature in the Blockchain 14 / 20
  • 16. Transaction Scripts Script: scripting system for transactions • Forth-like • Stacked-based • Intentionally not Turing-complete, with no loops scriptPubKey (locking script) • Encumbrance placed on an output • Specifies the conditions that must be met to spend the output • Usually contains a public key scriptSig (unlocking script) • Allows an UTXO to be spent • Usually contains a digital signature Digital Signature in the Blockchain 15 / 20
  • 17. Transaction Scripts <PubKeyHash> EQUALVERIFY CHECKSIGDUP Locking script (scriptPubKey) HASH160 Digital Signature in the Blockchain 16 / 20
  • 18. Transaction Scripts <PubKeyHash> EQUALVERIFY CHECKSIGDUP Locking script (scriptPubKey) HASH160DUP HASH160 <PubKeyHash> EQUALVERIFY CHECKSIG<sig> <PubKey> Unlocking script (scriptSig) Digital Signature in the Blockchain 16 / 20
  • 19. Transaction Scripts <PubKeyHash> EQUALVERIFY CHECKSIGDUP Locking script (scriptPubKey) HASH160DUP HASH160 <PubKeyHash> EQUALVERIFY CHECKSIG<sig> <PubKey> Unlocking script (scriptSig) Execution pointer <sig> Stack Digital Signature in the Blockchain 16 / 20
  • 20. Transaction Scripts <PubKeyHash> EQUALVERIFY CHECKSIGDUP Locking script (scriptPubKey) HASH160DUP HASH160 <PubKeyHash> EQUALVERIFY CHECKSIG<sig> <PubKey> Unlocking script (scriptSig) Execution pointer <sig> Stack <sig> <PubKey> Digital Signature in the Blockchain 16 / 20
  • 21. Transaction Scripts <PubKeyHash> EQUALVERIFY CHECKSIGDUP Locking script (scriptPubKey) HASH160DUP HASH160 <PubKeyHash> EQUALVERIFY CHECKSIG<sig> <PubKey> Unlocking script (scriptSig) Execution pointer <sig> Stack <sig> <PubKey><PubKey> <PubKey> <sig> Digital Signature in the Blockchain 16 / 20
  • 22. Transaction Scripts <PubKeyHash> EQUALVERIFY CHECKSIGDUP Locking script (scriptPubKey) HASH160DUP HASH160 <PubKeyHash> EQUALVERIFY CHECKSIG<sig> <PubKey> Unlocking script (scriptSig) Execution pointer <sig> Stack <sig> <PubKey><PubKey> <PubKey> <sig> <PubKeyHash> <sig> <PubKey> Digital Signature in the Blockchain 16 / 20
  • 23. Transaction Scripts <PubKeyHash> EQUALVERIFY CHECKSIGDUP Locking script (scriptPubKey) HASH160DUP HASH160 <PubKeyHash> EQUALVERIFY CHECKSIG<sig> <PubKey> Unlocking script (scriptSig) Execution pointer <sig> Stack <sig> <PubKey><PubKey> <PubKey> <sig> <PubKeyHash> <sig> <PubKey><PubKey> <PubKeyHash> <PubKeyHash> <sig> Digital Signature in the Blockchain 16 / 20
  • 24. Transaction Scripts <PubKeyHash> EQUALVERIFY CHECKSIGDUP Locking script (scriptPubKey) HASH160DUP HASH160 <PubKeyHash> EQUALVERIFY CHECKSIG<sig> <PubKey> Unlocking script (scriptSig) Execution pointer <sig> Stack <sig> <PubKey><PubKey> <PubKey> <sig> <PubKeyHash> <sig> <PubKey><PubKey> <PubKeyHash> <PubKeyHash> <sig> <PubKey> <sig> Digital Signature in the Blockchain 16 / 20
  • 25. Transaction Scripts <PubKeyHash> EQUALVERIFY CHECKSIGDUP Locking script (scriptPubKey) HASH160DUP HASH160 <PubKeyHash> EQUALVERIFY CHECKSIG<sig> <PubKey> Unlocking script (scriptSig) Execution pointer <sig> Stack <sig> <PubKey><PubKey> <PubKey> <sig> <PubKeyHash> <sig> <PubKey><PubKey> <PubKeyHash> <PubKeyHash> <sig> <PubKey> <sig>TRUE Digital Signature in the Blockchain 16 / 20
  • 26. Pay to Script Hash (P2SH) Transaction Script hash instead of public key hash in the locking script The Recipient must provide • A script matching the script hash • Data which makes the script evaluate to true M-of-N multisignature transaction Locking scriptUnlocking script <script><C sig><B sig>OP 0 HASH160 <script hash> EQUAL <A pubkey> <B pubkey> <C pubkey> OP 3OP 2 CHECKMULTSIG Digital Signature in the Blockchain 17 / 20
  • 27. Summary Bitcoin uses digital signatures to prove ownership of UTXOs Proof that you own the private key without having to reveal it Keep your private key(s) offline (cold storage) Digital Signature in the Blockchain 18 / 20
  • 28. Questions? Digital Signature in the Blockchain 19 / 20
  • 29. References S. Nakamoto. Bitcoin: A Peer-to-Peer Electronic Cash System. 2008. https://bitcoin.org/bitcoin.pdf A.M. Antonopoulos. Mastering Bitcoin. O’Reilly, 2014. R. Wattenhofer. The Science of the Blockchain. Inverted Forest Publishing, 2016. K. W¨ust and A. Gervais. Do you need a Blockchain? Cryptology ePrint Archive, Report 2017/375. D. Yaga, N. Roby, K. Scarfone. Blockchain Technology Overview. NISTIR 8202, October 2018. Digital Signature in the Blockchain 20 / 20