Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Blockchain.currentState() and How Will it Impac...

Ahmad Gohar
December 05, 2017

Blockchain.currentState() and How Will it Impact Your Industry? V 1

Blockchain technology is a decentralized public domain where every cryptocurrency transaction is recorded and can be traced to the buyer and seller. Blockchain was first used in ensuring the integrity of cryptocurrencies. The concept of blockchain technology starts with providing each stakeholder with a copy of the data in a ledger. While it may take a few more years before the widespread adoption of blockchain, some industries are already beginning to realize the potential and benefits of this technology. In order to realize the benefits of blockchain and other emerging technologies, businesses must be prepared to take advantage of them by ensuring that their enterprise systems are fully integrated. Integration consolidates an enterprise’s applications and systems and prepares them to support new technologies such as blockchain, Big Data, and many others.

Ahmad Gohar

December 05, 2017
Tweet

More Decks by Ahmad Gohar

Other Decks in Technology

Transcript

  1. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 2

    Who am I ? Solution Architect at IBM WTC IBM Certified Expert IT Specialist OpenGroup Certified Master IT Specialist M.Sc. In IS MIBA OCEJPA, OCPWCD, OCP SQL/PL Java Duke Award Winner 2016 @ansgohar
  2. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 5

    Blockchain Concept in Different Levels of Difficulty • Child. • University Graduate. • Expert.
  3. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 6

    Blockchain for Child • You can trade any thing you want without need the store of know the other person • Tool that you can trade directly without need intermediaries like company ebay using technology and set technological trust • It’s is network of computers that have the same history of transactions, So that instead of having single software and database. You can have it in your computer. It’s constantly updated • Secured using Cryptography, & It’s not owned by one company
  4. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 7

    Blockchain for University Graduate • In smaller society we can trade one-to-one easily. • As the distance increases we need digital marketplaces like Amazon, Uber, … That helps us facilitate exchange of value. • But today we have a technology that allow us to trade, but instead of having a company you can do that with software with a bunch of software code that running over all the computer in this network
  5. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 8

    Blockchain for Expert • Whenever you make a transaction you did it’s logged and any update to that transaction it’s appended in that record. • It’s a system transparent public that you can append record only without affecting or changing the history of the previous records. • Parties not need to trust each other, but need to trust the mechanism of the consistent between them.
  6. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 16

    Online Transactions • Physical cash – Non-traceable (well, mostly!) – Secure (mostly) – Low inflation • Can’t be used online directly Electronic credit or debit transactions Bank sees all transactions Merchants can track/profile customers
  7. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 17

    E-Cash • Secure – Single use – Reliable • Low inflation • Privacy-preserving
  8. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 21

    Bitcoin • A distributed, decentralized digital currency system • Released by Satoshi Nakamoto 2008 • Effectively a bank run by an ad hoc network – Digital checks – A distributed transaction log
  9. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 22

    Bitcoin Transactions Public key 0xa8fc93875a972ea Signature 0xa87g14632d452cd Public key 0xc7b2f68...
  10. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 23

    How does Bitcoin work? Bitcoin The protocol / technology bitcoins The currency / coin / unit of account Transaction Transfer of a coin from one owner to the next, signed cryptographically Public/Private key The receiver’s public key is his Bitcoin address The sender’s private key is used to digitally sign the transaction Block Validated collection of transactions over 10 minutes, created through mining Mining Generates a block and validates transactions through proof-of-work, creating new bitcoins in the process Blockchain Timestamped sequence of linked blocks The public ledger
  11. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 24

    Spending a Bitcoin A transaction is of the form “send these Bitcoins from address Y to address Z” Specific Bitcoins are described as outputs of previous transactions. The transaction is signed with the private key of address Y and broadcast, along with the public key of Y, to the payment network A transaction might also include a transaction fee bmm
  12. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 25

    How is a new block created? A Bitcoin miner creates a block by (1) Gathering a set of pending transactions, prioritizing those with transaction fees (2) Verifying the transactions (3) Solving a hashing problem
  13. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 26

    How is a transaction verified? “send these Bitcoins from address Y to address Z” The miner first checks the signature using the public key for address Y. • compute hash of public key for Y, which should be Y • check signature of transaction using public key for Y Then the miner checks the public ledger to verify that Y hasn’t already sent these Bitcoins to someone else. bmm
  14. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 27

    The Hashing Problem To extend the blockchain, a miner creates a new block, containing: (1) hash of previous block (2) new transactions to include in the blockchain (3) creation of reward bitcoins (e.g., 25 new BTC) (4) nonce Block is valid if hash of (1)-(4) ends in enough zeroes, as determined by current difficulty. Miner has to find the right nonce by trial and error! Difficulty chosen so that the time until the first miner wins is about ten minutes, on average.
  15. Hashes • A hash function (like SHA-256) takes a block

    of data in, and produces an effectively random fixed size number. • Any change to the input randomizes it SHA-256 “The quick brown fox did some crypto” 410312395834291203… SHA-256 “The quick brown Fox did some crypto” 983249120432492340…
  16. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 29

    Use of Cryptographic Hashes  Proof-of-work  Block contains transactions to be validated and previous hash value.  Pick a nouce such that H(prev hash, nounce, Tx) < E. E is a variable that the system specifies. Basically, this amounts to finding a hash value who’s leading bits are zero. The work required is exponential in the number of zero bits required.  Verification is easy. But proof-of-work is hard.
  17. The Chain Block #0 Winner nobody Parent_hash 0 Nonce 0

    Block #1 Winner Player 23 Parent_hash 000D45698 Nonce 3459 SHA-256 Block #2 Winner Player 16 Parent_hash 000F67839 Nonce 974329 SHA-256
  18. What about cheaters? • Make a fake hash • What

    happens then? • The algorithm will fail • Other participants will not use your block, making it not part of the chain
  19. Where are the rules? • The laws of Bitcoin (or

    any blockchain) are coded in the miner nodes • Decisions are made collectively by the miners • If 51% of the miners agree, the decision is valid • This includes each individual transaction • The source of the node is law • How do you change rules? • We want to add more coins • We want to change the block format
  20. Take over • What happens if you obtain the majority

    of mining power? • Ability to approve your own transaction But • The value of Bitcoin will most likely become zero
  21. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 36

    Physical Bitcoin (a gimmic?) private key is embedded in coin and can be accessed (possibly electronically) only by physically breaking the coin trust creator to destroy any record of private key http://media.coindesk.com/2014/09/casascius-coins.jpg
  22. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 43

    Public Key Crypto: Encryption • Key pair: public key and private key
  23. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 48

    2009-2017 https://blockchain.info/charts/blocks-size?timespan=all
  24. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 55

    Experimental Technically Confirmed Commercialization New Applications/ Ecosystem How Mature?
  25. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 56

    Back to BitCoin • Validation – Is the coin legit? (proof-of-work)  Use of Cryptographic Hashes – How do you prevent a coin from double- spending?  Broadcast to all nodes • Creation of a virtual coin/note – How is it created in the first place?  Provide incentives for miners – How do you prevent inflation? (What prevents anyone from creating lots of coins?)  Limit the creation rate of the BitCoins
  26. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 58

    Economy Development National Competitiveness Enterprise Employment Healthcare & Education Public Service • Job creation • enhance labor Productivity. • Improve work efficiency, saving cost. • Data Centralized management, enhance information security. • Reduce carbon emission, Increase business revenue. • Promote GDP growth, • Improve National Competitiveness. • Government efficiency and provide better serve to public • Erase the digital gap, Improve resources Utilization. • Enrich people's life • Enhance people's happiness, Promote social stability. • Improve residents, health reduce the public expend Market Drivers Digital Transformation
  27. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 59

    Blockchain Internet of Things (IoT) Big Data Social Media / Mobile Apps Cloud  Cloud Host 、 Cloud Storage 、 Cloud Network 、 VDC DR and Backup  Social Networks  Messaging/ chat apps Structured Data Semi-Structured Data Unstructured Data  Decentralized Security  Reliable / Scalable  IoT Connectivity  IoT Sensors  IoT Platform Technology Enablers – Digital Transformation
  28. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 62

    Banking & Payment Industry • Some people saying that Blockchain will do the banking what the Internet did to media • The Blockchain Banks “The Unbanked” • Technologies like Bitcoin allows anyone to send money almost instantly with low fees • Banks are investing in Blockchain
  29. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 63

    Banking & Payment Industry Example
  30. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 65

    Cyber-Security Industry • Blockchain is public, but the data is verified and secured using Advanced cryptography • Resistant to unauthorized changes and hacks • Blockchain eliminates the need for middlemen which make it more efficient than many other legacy cybersecurity systems
  31. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 67

    Supply Chain Management Industry
  32. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 68

    Supply Chain Management Industry • Transactions are documented in a permanent decentralized record, and monitored securely and transparently • Can be used to reduced costs, and monitor time, labour, waste, emissions • Understand the environmental impact of the products • Verify authenticity or fair trade status of the product
  33. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 69

    Supply Chain Management Industry Example
  34. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 71

    Forecasting Industry • Blockchain will change how we do research, consulting, analysis and forecasting • Place your bets in decentralized way from sports, stocks, elections
  35. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 72

    Forecasting Industry Example
  36. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 73

    Networking and IOT Industry
  37. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 74

    Networking and IOT Industry • IBM & Samsung are using a Blockchain technology to create a decentralized network of IOT devices • Eliminate the need for central location to handle communications for IOT devices • The Devices could communicate directly, update software, manage bugs, and monitor energy usage
  38. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 77

    Insurance Industry • The global insurance market are based in trust management • Blockchain is a new way of managing trust and can be used to verify many types of data and insurance contract • Oracles integrate real-world data with Blockchain smart contracts • This technology is useful for any type of insurance that relies on real-world data
  39. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 79

    Private Transport & Ride Sharing Industry
  40. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 80

    Private Transport & Ride Sharing Industry • Blockchain can be used to create decentralized peer-to-peer ride sharing apps allowing booth car owners and users to arranges booth terms and conditions without 3rd party providers in secure way • Automatically pay for parking, tolls, and fuel using e-wallets
  41. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 81

    Private Transport & Ride Sharing Industry Example
  42. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 82

    On-line Data Storage Industry
  43. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 83

    On-line Data Storage Industry • Data in centralized servers are vulnerable for hacking, data loss, and human error • Blockchain allow cloud storage to be more secure and robust against attacks
  44. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 84

    On-line Data Storage Industry Example
  45. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 86

    Charity Industry • Common complains in the charity space include inefficiency and corruption which prevent money from reaching to those who need to have it • Blockchain can help donations to get where they are going
  46. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 89

    Voting Industry • The Blockchain will disrupt voting • Blockchain can be used for voter registration, identity verification, and vote counting • Immutable, publicly-viewable ledgers of recorded votes would make elections more fair and democratic
  47. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 92

    Government Industry • Government systems are often slow, opaque, and prone to corruption • Blockchain can reduce bureaucracy and increase security, efficiency, and transparency of the governmental operations
  48. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 93

    Government Industry Example
  49. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 95

    Healthcare Industry • Another industry that relies on legacy systems is health-care • Hospitals need a secure platform to store and share sensitive data • Blockchain can help hospitals safely store medical records and share them with authorized doctors or patients
  50. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 96

    Healthcare Industry Example
  51. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 98

    Energy Management Industry • Energy management has been a highly centralized industry for a long time • Energy producers and users can’t buy IT directly from each other and must go through the public grids
  52. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 99

    Energy Management Industry Example
  53. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 101

    Online Music Industry • Blockchain startups are coming up with ways for musicians to get paid directly from their fans • Smart contracts can solve licensing issues and catalog songs with their respective creators
  54. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 102

    Online Music Industry Example
  55. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 104

    Retail Industry • When you shop you trust the retail system of the store or marketplace • Blockchain based retail utilities connect buyers and sellers without a middleman and associated fees • Trust comes from smart contract systems
  56. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 107

    Real Estate Industry • Issues in buying and selling real state: Bureaucracy, lack of transparency, fraud, and mistakes in public records • Blockchain technology can speed up transactions by reducing the need for paper- based record keeping • Helps tracking, verifying ownership, ensure accuracy of documents,and trasering anf peoperty deeds
  57. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 108

    Real Estate Industry Example
  58. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 110

    Crowdfuunding Industry • Crowdfunding platforms create request between creators and supporters, but they also charge high fees • In blockchain- based crowdfunding, trust is created through smart contracts and online reputation systems • New projects can release their own tokens, that can later be exchanged for products, services, or cash • Many blockchain startups have now raised millions of dollars through such token sales • The future is uncertain, but promising
  59. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 112

    The blockchain space is wide open and the opportunities are many
  60. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 113

    World’s largest taxi company World’s most valuable retailer Largest accommodation provider Industry Digital Transformation is Happening
  61. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 115

    The Revolutionary Benefits Of Blockchain Tamper- Proof An encrypted record of events that can never be changed retrospectively 01 02 04 03 05 Smart Contracts A store of code and data to automate business processes between parties via self-executing logical workflows Reconciled Data Perfect copies of a database, distributed across all participants, meaning no data reconciliation No Intermediaries P2P interactions across the network, without the need for intermediaries Innately Secure In-built encryption and consensus mechanisms provide high resistance to network attacks
  62. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 116

    Recap • Blockchain is one of the most promising new technology for the future. • What is it? Distributed ledger technology that underlies crypto-currencies like Bitcoin. • Transparent, Safe, Auditable, and Resistant to outages. • Blockchain makes tings transparent, Democratic, Decentralized, Efficient, and Secure. • Industries ripe for disruption by Blockchain.
  63. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 117

    Bitcoin resources • http://bitcoin.org • http://en.wikipedia.org/wiki/Bitcoin • http://blockchain.info • http://www.coindesk.com • http://two-bit-idiot.tumblr.com • http://www.reddit.com/r/Bitcoin/ • Video “How Bitcoin works under the hood”: https://www.youtube.com /watch?v=Lx9zgZCMqXE • http://mitbitcoinexpo.org
  64. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 118

    Recommendations • Start from first principles: • What needs fixing? • Why hasn’t it been fixed yet? • What does the new process look like, A to Z? • Which pieces of the puzzle are missing? • Start small, and think big in terms of: • Use cases in your industry. • What it means for the development of distributed computing.
  65. Dec 8, 2017 Ahmad Gohar # Code Europe 2017 119

    Acknowledgement Some of the slides, content, or pictures are borrowed from the several resources, and some pictures are obtained through Google search without being referenced below 119 CS660 - Advanced Information Assurance - UMassAmherst