ThynkBlynk: Understanding the Blockchain - A workshop for Students

26
BLOCKCHAIN WORKSHOP 10th March 2017 Visakhapatnam, Andhra Pradesh

Transcript of ThynkBlynk: Understanding the Blockchain - A workshop for Students

Page 1: ThynkBlynk: Understanding the Blockchain - A workshop for Students

BLOCKCHAIN WORKSHOP10th March 2017

Visakhapatnam, Andhra Pradesh

Page 2: ThynkBlynk: Understanding the Blockchain - A workshop for Students

Introduction and Today’s Agenda

Session Time

Introduction to Blockchain 1pm – 1:20pm

Brief History of Distributed Systems

Blockchain & Cryptocurrency – Platform and Use Case Distinction

Basic Technical Concepts 1:20pm – 2:30pm

Cryptography & Blockchain

Digital Signatures

Mining

Merkel Tree

Consensus Mechanisms

Blockchain Application 2:30pm – 3:15pm

Public Vs Permissioned (Private) Blockchain

A few In-Play Use Cases

How to Get Started with Blockchain - Ethereum

Q & A 3:15pm – 3:45pm

Hand Over Self Starter Exercise & Close Session 4pm

Parag Jain, Co-Founder & CEO, ThynkBlynkRetail Banker, Payments Expert, BPO Experience, Business P&L Management, International Business Growth, Alumni of London Business School, Lived & Worked Across the Globe

Devendar, Co-Founder, ThynkBlynkBanking Technology Leader, ex-CIO & Payments Expert with experience working across the Globe. Has run bank mergers and complex enterprise implementations in a multi-party and cross border environment.

Page 3: ThynkBlynk: Understanding the Blockchain - A workshop for Students

About ThynkBlynk

◉ IncorporatedinIndiaandUS,ThynkBlynkiscreatingChainTrail.Com,asubscriptionbasedonlineserviceontheBlockchainthatenablesidentityattributes basedtransactionstobeexecutedSecurely,EfficientlyandDigitally

◉ Co-Foundedbyateamofexecutiveswithcombinedinternational&cross-industryexperienceofover60yearswithbusinessrelationshipsinover20countries,ourserviceisfortheGlobalMarketplace,offeringLocalSolutions

Page 4: ThynkBlynk: Understanding the Blockchain - A workshop for Students

INTRODUCTION TO BLOCKCHAIN

Page 5: ThynkBlynk: Understanding the Blockchain - A workshop for Students

What is Blockchain?

“Theblockchainisanincorruptibledistributed digitalledgerofeconomictransactionsthatcanbeprogrammedtorecordnotjustfinancialtransactionsbutvirtuallyeverythingofvalue.”Don&AlexTapscott,authorsBlockchainRevolution

AccordingtoSunnyRay,Co-founderandPresidentofIndia'sleadingbitcoinblockchaincompany,Unicoin,"blockchainenablestwoentitiesthatdonotknoweachothertoagreethatsomethingistruewithouttheneedofathirdparty.

IMMUTABLE VERIFIABLE

Page 6: ThynkBlynk: Understanding the Blockchain - A workshop for Students

Distributed Ledgers, Systems

TRUST = EMPOWERMENT

Credit:https://www2.deloitte.com/content/dam/Deloitte/au/Images/infographics/au-deloitte-technology-bitcoin-blockchain-distributed-ledgers-180416.pdf

Page 7: ThynkBlynk: Understanding the Blockchain - A workshop for Students

Distributed Ledgers, Systems

TRUST = EMPOWERMENT

Credit:https://www2.deloitte.com/content/dam/Deloitte/au/Images/infographics/au-deloitte-technology-bitcoin-blockchain-distributed-ledgers-180416.pdf

Page 8: ThynkBlynk: Understanding the Blockchain - A workshop for Students

Distributed Ledgers’ Landscape

Credit:https://assets.kpmg.com/content/dam/kpmg/pdf/2016/06/kpmg-blockchain-consensus-mechanism.pdf

Page 9: ThynkBlynk: Understanding the Blockchain - A workshop for Students

Cryptocurrency & Blockchain Distinction

Irreversible Pseudonymous Fast&Global Secure Permissionless

Page 10: ThynkBlynk: Understanding the Blockchain - A workshop for Students

BLOCKCHAIN: BASIC CONCEPTS

Page 11: ThynkBlynk: Understanding the Blockchain - A workshop for Students

Cryptography

Cryptography isthescienceofusingmathematicstoencryptanddecryptdata.

ConventionalCryptography

PublicKeyCryptography

Credit:‘TheBasicsofCryptography’,PhilZimmermann

DigitalSignaturesOneWayHashFunction

Page 12: ThynkBlynk: Understanding the Blockchain - A workshop for Students

Cryptography

Cryptography isthescienceofusingmathematicstoencryptanddecryptdata.

Anextremelysimpleexampleofconventionalcryptographyisasubstitutioncipher.Asubstitutionciphersubstitutesonepieceofinformationforanother.Inconventionalcryptography,alsocalledsecret-keyorsymmetric-keyencryption,onekeyisusedbothforencryptionanddecryption.

Publickeycryptographyisanasymmetricschemethatusesapairofkeysforencryption:apublickey,whichencryptsdata,andacorrespondingprivate,orsecretkeyfordecryption.Youpublishyourpublickeytotheworldwhilekeepingyourprivatekeysecret.Anyonewithacopyofyourpublickeycanthenencryptinformationthatonlyyoucanread.Evenpeopleyouhavenevermet.

Credit:‘TheBasicsofCryptography’,PhilZimmermann

Page 13: ThynkBlynk: Understanding the Blockchain - A workshop for Students

Digital Signatures & One way Hashes

Amajorbenefitofpublickeycryptographyisthatitprovidesamethodforemployingdigitalsignatures.Digitalsignaturesenabletherecipientofinformationtoverifytheauthenticityoftheinformation’sorigin,andalsoverifythattheinformationisintact.Thus,publickeydigitalsignaturesprovideauthenticationanddataintegrity.Adigitalsignaturealsoprovidesnon-repudiation,whichmeansthatitpreventsthesenderfromclaimingthatheorshedidnotactuallysendtheinformation.

Thesystemdescribedabovehassomeproblems.Itisslow,anditproducesanenormousvolumeofdata—atleastdoublethesizeoftheoriginalinformation.Animprovementontheaboveschemeistheadditionofaone-wayhashfunctionintheprocess.Aone-wayhashfunctiontakesvariable-lengthinput—inthiscase,amessageofanylength,eventhousandsormillionsofbits—andproducesafixed-lengthoutput;say,160-bits.Thehashfunctionensuresthat,iftheinformationischangedinanyway—evenbyjustonebit—anentirelydifferentoutputvalueisproduced.

Credit:‘TheBasicsofCryptography’,PhilZimmermann

Page 14: ThynkBlynk: Understanding the Blockchain - A workshop for Students

Merkel Tree

AMerkletreeisa hashbaseddatastructure thatisageneralizationofthe hashlist.Itisa tree structureinwhicheachleafnodeisahashofablockofdata,andeachnon-leafnodeisahashofitschildren. Merkletreesareusedindistributedsystemsforefficientdataverification– MerkelProofs

In thefigurealongside,anodecanprovethatatransactionKisincludedintheblockbyproducingamerklepaththatisonlyfour32-bytehasheslong(128bytestotal).Thepathconsistsofthefourhashes(notedinblue)HL,HIJ,HMNOP andHABCDEFGH.Withthosefourhashesprovidedasanauthenticationpath,anynodecanprovethatHK (notedingreeninthediagram)isincludedinthemerklerootbycomputingfouradditionalpair-wisehashesHKL,HIJKL,HIJKLMNOP,andthemerkletreeroot(outlinedinadottedlineinthediagram).

RootHash:Public&Trusted

Credit:https://www.weusecoins.com/what-is-a-merkle-tree/,http://www.blockchaintechnologies.com/blockchain-mining

Page 15: ThynkBlynk: Understanding the Blockchain - A workshop for Students

Consensus Mechanism

Indistributedledgers,aconsensusmechanismisthewayinwhichamajority(or,insomemechanisms,all)ofnetworkmembersagreeonthevalueofapieceofdataoraproposedtransaction,whichthenupdatestheledger.Inotherwords,aconsensusmechanismisasetofrulesandproceduresthatmaintainsacoherentsetoffactsamongtheparticipatingnodes.

Howconsensusmechanismswork

Basicparametersthatdefineaconsensusmechanism:Decentralizedgovernance:Asinglecentralauthoritycannotprovidetransactionnality.Quorumstructure:Nodesexchangemessagesinprede ned ways,whichmayincludestagesortiers.Authentication:Thisprocessprovidesmeanstoverifytheparticipants’identities.Integrity:Itenforcesthevalidationofthetransactionintegrity(e.g.,mathematicallythroughcryptography).Nonrepudiation:Thisprovidesmeanstoverifythatthesupposedsenderreallysentthemessage.Privacy:Ithelpsensurethatonlytheintendedrecipientcanreadthemessage.Faulttolerance:Thenetworkoperatesefficientlyandquickly,evenifsomenodesorserversfailorareslow.Performance:Itconsidersthroughput,liveness,scalability,andlatency

Credit:KPMGPaperonConsensusMechanism

Page 16: ThynkBlynk: Understanding the Blockchain - A workshop for Students

Consensus Mechanisms’ Landscape

Credit:KPMGPaperonConsensusMechanism

Page 17: ThynkBlynk: Understanding the Blockchain - A workshop for Students

Transactions & Mining

Mining referstothedistributedcomputationalreviewprocessperformedoneach"block"ofdataina"block-chain".Thisallowsforachievementof consensus inanenvironmentwhereneitherpartyknowsortrustseachother.TheprocessiscarriedoutbyMiners

Credit:http://www.blockchaintechnologies.com/blockchain-mining#sthash.cc3W9Ie1.dpuf,http://www.coindesk.com/information/how-bitcoin-mining-works/

Whenablockoftransactionsiscreated,minersputitthroughaprocess.Theytaketheinformationintheblock,andapplyamathematicalformulatoit,turningitintoaHash.Thebitcoinprotocolwon’tjustacceptanyoldhash.Itdemandsthatablock’shashhastolookacertainway;itmusthaveacertainnumberofzeroesatthestart.Minerscontinuallychangethedatathey’reusingtocreateadifferenthashwithoutmeddlingwithtransactiondata.Theydothisusinganother,randompieceofdatacalleda‘nonce’.Thisisusedwiththetransactiondatatocreateahash.Ifthehashdoesn’tfittherequiredformat,thenonceischanged,andthewholethingishashedagain.

Page 18: ThynkBlynk: Understanding the Blockchain - A workshop for Students

BLOCKCHAIN APPLICATION

Page 19: ThynkBlynk: Understanding the Blockchain - A workshop for Students

Smart Contracts

Credit:http://www.kwm.com/en/au/knowledge/insights/10-things-you-need-to-know-smart-contracts-20160630,http://www.blockchaintechnologies.com/blockchain-smart-contracts

Asmartcontractisanagreementthatisfullyorpartiallyautomatedusingsoftwaretofacilitateexecution,enforcementandperformanceunderlyingthatcontract.KeyBenefits• ContractsbecomeEfficient,FasterandImproveUnderlyingPerformance• Anagreementdoesnotneedtobecompletelyautomatedtobeasmartcontract.• CombinedwithothertechnologylikeBlockchain,smartcontractshavetransformativepotential• Itisstillearlydays.Reallyearlydays.

Smartcontractsforthemusicindustry - Inthisusecase,apublicblockchaincouldkeeptrackofownershiprights.Theserights&usageconditionscouldbepubliclyaccessibletoall.Furthermore,thetransferofroyaltypaymentscouldberealtimeandthesmartcontractcouldensurethateachtimeapaymentisgeneratedforagivenwork,themoneywouldbeautomaticallysplitaccordingtothesetterms,andeachparty’saccountwouldinstantlyreflecttheadditionalrevenue.

Page 20: ThynkBlynk: Understanding the Blockchain - A workshop for Students

Public Vs Permissioned (Private) Blockchain

Publicblockchains:apublicblockchainisablockchainthatanyoneintheworldcanread,anyoneintheworldcansendtransactionstoandexpecttoseethemincludediftheyarevalid,andanyoneintheworldcanparticipateinthe consensusprocess

Consortiumblockchains:aconsortiumblockchainisablockchainwheretheconsensusprocessiscontrolledbyapre-selectedsetofnodes;forexample,onemightimagineaconsortiumof15financialinstitutions,eachofwhichoperatesanodeandofwhich10mustsigneveryblockinorderfortheblocktobevalid.

Fullyprivateblockchains:afullyprivateblockchainisablockchainwherewritepermissionsarekeptcentralizedtooneorganization.Readpermissionsmaybepublicorrestrictedtoanarbitraryextent.

Privacyisauniversalhumanright&dataconfidentialitystandardsarewelldefinedlawsinmostjurisdictions

https://blog.ethereum.org/2015/08/07/on-public-and-private-blockchains/

Page 21: ThynkBlynk: Understanding the Blockchain - A workshop for Students

Use-Cases: Government

• Blockchain Notarization Services to e-Residents• Estonian settling and clearing business by Nasdaq

• Land Registry on Blockchain

• UK Gov’t is Trialing the Blockchain for Welfare & Pensions• Identity - Immigration

• Australian Securities Exchange (ASX) considering migration to a Blockchain-based settlement system by the end of 2017

• Dubai Wants All Government Documents on Blockchain By 2020

Page 22: ThynkBlynk: Understanding the Blockchain - A workshop for Students

Use-Cases: Private Sector

• First Real Property Ownership Transfer Recorded on the Blockchain with Ubitquity

• ICICI Bank executes India’s first banking transactions on blockchain in partnership with Emirates NBD

• Santander Becomes First U.K. Bank to Introduce Blockchain Technology for International Payments

• Everledger: blockchain-based diamond fraud detection

• Blockchain for Open Sharing of Academic Proficiency and Progress Records

Page 23: ThynkBlynk: Understanding the Blockchain - A workshop for Students

Q & A

Page 24: ThynkBlynk: Understanding the Blockchain - A workshop for Students

Ready to Launch?!

Page 25: ThynkBlynk: Understanding the Blockchain - A workshop for Students

So lets Get Going: Self Starter Exercise

http://www.ibm.com/developerworks/cloud/library/cl-ibm-blockchain-101-quick-start-guide-for-developers-bluemix-trs/index.html

https://dappsforbeginners.wordpress.com/

1. TakeafewminutestogatheryourthoughtsaboutBlockchainandDistributedSystems.

2. Howdoyoubelievethisemergingtechnologycancreatevisibleimpact? Listdown3real-lifeusecasesthatyoubelieveareviablein2areas:

a.CommunityorCitizenServicesb.Business

3. Pick1or2simpleusecasesthatyouwillcreateaPoC for

Page 26: ThynkBlynk: Understanding the Blockchain - A workshop for Students

Any questions ?You can find us at◉ www.thynkblynk.com◉ [email protected][email protected]

Thanks!