SlideShare a Scribd company logo
1 of 19
Efektívny
blockchain
pre štátnu správu
milan.pikula@nbu.gov.sk
Nová doba a nové prísľuby
▹ dôveryhodnosť
▹ stabilita
▹ decentralizácia
▹ smart kontrakty
2
Nová doba a nové prísľuby
▹ dôveryhodnosť
▹ stabilita
▹ decentralizácia
▹ smart kontrakty
3
▹ blockchain je nová čivava
▹ ... módna
▹ ... sexi
▹ ... nepochopená
▹ množia sa projekty
▹ zatiaľ plačú zodpovední vývojári
Krutá pravda o novej dobe
4
▹ pomalý
▹ nebezpečný a nespoľahlivý
▹ drahý
▹ s malou kapacitou
▹ ťažko pochopiť a nepokaziť.
Blockchain je...
5
Pochopme blockchain
Rýchly a nekorektný úvod do
problematiky, ktorá si zaslúži týždeň.
1. Adresa, kľúč a transakcia
▹ existuje adresa a možno aj iná adresa
▹ často je adresa zároveň verejný kľúč
▹ z adresy na inú adresu môžem kopnúť
tokeny, kryptomenu, ...
▹ ak mám správny privátny kľúč
▹ toto je transakcia.
7
Výstup
1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp
Vstup
16ftSEQ4ctQFDtVZiUBusQUjRrGhM3JYwe
Inštrukcieadáta
vartx=newbitcore.Transaction();
tx.from(utxos);
tx.to(targetAddress,10000);
2. Blok a blockchain
▹ blockchain je kniha tých transakcií
▹ usporiadaných v blokoch,
▹ ktorú vedie 30.000 ľudí... naraz.
8
3. Ako sa robí dôveryhodnosť
9
▹ robí to veľa ľudí a ťaží sa veľmi, veľmi
ťažko
▹ keď sa údaj “zahrabe” dosť hlboko, nikto
nedokáže vyťažiť toľko, že prepíše
históriu
Ale...
Blockchain je nebezpečný
▹ Chcete robiť blockchain sami?
■ riziko: jednotky minerov je ľahké
prebiť a zmeniť tak zapísanú históriu
■ riziko: sfalšujete dáta aj blockchain.
Kto je skutočný stakeholder?
▹ Dôveryhodnosť fuč, rozpočet tiež.
Použite verejný blockchain, kde sa to len
dá!
11
Blockchain je nebezpečný
▹ riziko: transakcia sa pripíše... a zmizne
▹ riziko: smart kontrakt má chybu
(The DAO - 50 mln US$)
▹ riziko: ukradnú vám privátny kľúč
(implementačná chyba, vírusy
CryptoShuffler, ComboJack a ďalšie)
▹ Vyhnite sa detským chybám.
Použite verejný blockchain!
12
Zmestí sa doň málo
13
▹ blockchain musí držať celú históriu
■ lebo všetky dáta sú rovnako cenné
■ preto má krátke bloky (kB) a
riadenú rýchlosť pripisovania
blokov (minúty)
▹ blockchain je drahý na uloženie dát,
idú tam len hashe. A hash takmer
nikdy nie je citlivý. Použite...
Blockchain je pomalý
▹ Transakcie sa pripíšu, len keď ktosi
pridá nový blok
■ a to je raz za X minút
■ je veľa návrhov, dobré riešenie nie je
▹ Požadujete rýchlosť? Zabudnite na
milisekundy.
▹ Použite... SQL alebo Elasticsearch! Na
hashe DB verejný blockchain.
14
Cvičenie
▹ Zvýšme dôveryhodnosť data.gov.sk
ukladaním datasetov na blockchain
▹ Prvý nápad:
■ postavíme privátny blockchain
■ vo vládnom cloude
▹ Čo je na tomto návrhu zlé?
15
Cvičenie
▹ Čo je na tomto návrhu zlé?
■ kto sú stakeholderi? Štát alebo
spotrebitelia dát?
■ privátny cloud stojí peniaze, dva krát
■ proof of...?
▹ zvyšuje vôbec dôveryhodnosť?
■ možno ho prepočítať od nuly,
centralizovaný, potenciálne chyby
16
Cvičenie
▹ Jednoduché riešenie
■ https://github.com/milankowww/ck
an2blockchain
■ využíva existujúce CKAN API
■ ukladá hashe na verejný blockchain
■ vývoj: 4 MD
■ mesačné náklady: 4 EUR
17
“
Jednoduché a efektívne
riešenia existujú.
18
Efektívny
blockchain
pre štátnu správu
milan.pikula@nbu.gov.sk

More Related Content

Featured

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellSaba Software
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming LanguageSimplilearn
 

Featured (20)

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
 

Efektívny blockchain pre štátnu správu

  • 2. Nová doba a nové prísľuby ▹ dôveryhodnosť ▹ stabilita ▹ decentralizácia ▹ smart kontrakty 2
  • 3. Nová doba a nové prísľuby ▹ dôveryhodnosť ▹ stabilita ▹ decentralizácia ▹ smart kontrakty 3
  • 4. ▹ blockchain je nová čivava ▹ ... módna ▹ ... sexi ▹ ... nepochopená ▹ množia sa projekty ▹ zatiaľ plačú zodpovední vývojári Krutá pravda o novej dobe 4
  • 5. ▹ pomalý ▹ nebezpečný a nespoľahlivý ▹ drahý ▹ s malou kapacitou ▹ ťažko pochopiť a nepokaziť. Blockchain je... 5
  • 6. Pochopme blockchain Rýchly a nekorektný úvod do problematiky, ktorá si zaslúži týždeň.
  • 7. 1. Adresa, kľúč a transakcia ▹ existuje adresa a možno aj iná adresa ▹ často je adresa zároveň verejný kľúč ▹ z adresy na inú adresu môžem kopnúť tokeny, kryptomenu, ... ▹ ak mám správny privátny kľúč ▹ toto je transakcia. 7 Výstup 1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp Vstup 16ftSEQ4ctQFDtVZiUBusQUjRrGhM3JYwe Inštrukcieadáta vartx=newbitcore.Transaction(); tx.from(utxos); tx.to(targetAddress,10000);
  • 8. 2. Blok a blockchain ▹ blockchain je kniha tých transakcií ▹ usporiadaných v blokoch, ▹ ktorú vedie 30.000 ľudí... naraz. 8
  • 9. 3. Ako sa robí dôveryhodnosť 9 ▹ robí to veľa ľudí a ťaží sa veľmi, veľmi ťažko ▹ keď sa údaj “zahrabe” dosť hlboko, nikto nedokáže vyťažiť toľko, že prepíše históriu
  • 11. Blockchain je nebezpečný ▹ Chcete robiť blockchain sami? ■ riziko: jednotky minerov je ľahké prebiť a zmeniť tak zapísanú históriu ■ riziko: sfalšujete dáta aj blockchain. Kto je skutočný stakeholder? ▹ Dôveryhodnosť fuč, rozpočet tiež. Použite verejný blockchain, kde sa to len dá! 11
  • 12. Blockchain je nebezpečný ▹ riziko: transakcia sa pripíše... a zmizne ▹ riziko: smart kontrakt má chybu (The DAO - 50 mln US$) ▹ riziko: ukradnú vám privátny kľúč (implementačná chyba, vírusy CryptoShuffler, ComboJack a ďalšie) ▹ Vyhnite sa detským chybám. Použite verejný blockchain! 12
  • 13. Zmestí sa doň málo 13 ▹ blockchain musí držať celú históriu ■ lebo všetky dáta sú rovnako cenné ■ preto má krátke bloky (kB) a riadenú rýchlosť pripisovania blokov (minúty) ▹ blockchain je drahý na uloženie dát, idú tam len hashe. A hash takmer nikdy nie je citlivý. Použite...
  • 14. Blockchain je pomalý ▹ Transakcie sa pripíšu, len keď ktosi pridá nový blok ■ a to je raz za X minút ■ je veľa návrhov, dobré riešenie nie je ▹ Požadujete rýchlosť? Zabudnite na milisekundy. ▹ Použite... SQL alebo Elasticsearch! Na hashe DB verejný blockchain. 14
  • 15. Cvičenie ▹ Zvýšme dôveryhodnosť data.gov.sk ukladaním datasetov na blockchain ▹ Prvý nápad: ■ postavíme privátny blockchain ■ vo vládnom cloude ▹ Čo je na tomto návrhu zlé? 15
  • 16. Cvičenie ▹ Čo je na tomto návrhu zlé? ■ kto sú stakeholderi? Štát alebo spotrebitelia dát? ■ privátny cloud stojí peniaze, dva krát ■ proof of...? ▹ zvyšuje vôbec dôveryhodnosť? ■ možno ho prepočítať od nuly, centralizovaný, potenciálne chyby 16
  • 17. Cvičenie ▹ Jednoduché riešenie ■ https://github.com/milankowww/ck an2blockchain ■ využíva existujúce CKAN API ■ ukladá hashe na verejný blockchain ■ vývoj: 4 MD ■ mesačné náklady: 4 EUR 17