Example: quiz answers

A NEXT GENERATION SMART CONTRACT & …

ethereum White Paper A NEXT GENERATION SMART CONTRACT & decentralized APPLICATION platform By Vitalik Buterin WhenSatoshiNakamotofirstsettheBitcoinblo ckchainintomotioninJanuary2009,hewas "bitcoin",adecentralized peer-to-peeronlinecurrencythatmaintainsa valuewithoutanybacking, far,the"bitcoin"asacurrencyunithastakenu pthebulkofthepublicattention,bothinterms ofthepolitical aspectsofacurrencywithoutacentralbankand itsextremeupwardanddownwardvolatilityinp rice. However,thereisalsoanother,equallyimport ant,parttoSatoshi'sgrandexperiment:theco nceptofaproofof bedescribedasafirst-to-filesystem:ifonee ntityhas50 BTC,andsimultaneouslysendsthesame50 BTCto AandtoB, fromtwotransactionswhichcameearlier,andf ordecadesthisstymiedthedevelopmentofdece ntralized ' ,attentionis rapidlystartingtoshifttowardthissecondpa rtofBitcoin'stechnology,andhowtheblockch ainconceptca

A NEXT GENERATION SMART CONTRACT & DECENTRALIZED APPLICATION PLATFORM By Vitalik Buterin ... What Ethereum intends to provide is a blockchain with a built-in ... creating secure Byzantine-fault-tolerant multiparty consensus systems for many years, all of the

Tags:

  Applications, Generation, Contract, Smart, Secure, Platform, Decentralized, Ethereum, Generation smart contract amp decentralized application platform

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Transcription of A NEXT GENERATION SMART CONTRACT & …

1 ethereum White Paper A NEXT GENERATION SMART CONTRACT & decentralized APPLICATION platform By Vitalik Buterin WhenSatoshiNakamotofirstsettheBitcoinblo ckchainintomotioninJanuary2009,hewas "bitcoin",adecentralized peer-to-peeronlinecurrencythatmaintainsa valuewithoutanybacking, far,the"bitcoin"asacurrencyunithastakenu pthebulkofthepublicattention,bothinterms ofthepolitical aspectsofacurrencywithoutacentralbankand itsextremeupwardanddownwardvolatilityinp rice. However,thereisalsoanother,equallyimport ant,parttoSatoshi'sgrandexperiment:theco nceptofaproofof bedescribedasafirst-to-filesystem:ifonee ntityhas50 BTC,andsimultaneouslysendsthesame50 BTCto AandtoB, fromtwotransactionswhichcameearlier,andf ordecadesthisstymiedthedevelopmentofdece ntralized ' ,attentionis rapidlystartingtoshifttowardthissecondpa rtofBitcoin'stechnology,andhowtheblockch ainconceptcanbe used for more than just money.

2 Commonlycitedapplicationsincludeusingon- blockchaindigitalassetstorepresentcustom currenciesand financialinstruments("coloredcoins"),the ownershipofanunderlyingphysicaldevice("s martproperty"), non-fungibleassetssuchasdomainnames("Nam ecoin")aswellasmoreadvancedapplicationss uchas decentralizedexchange,financialderivativ es,peer-to-peergamblingandon-blockchaini dentityand "smartcontracts"-systemswhichautomatical ly ,onemighthaveatreasurycontract oftheform"AcanwithdrawuptoXcurrencyunits perday,BcanwithdrawuptoYperday,AandBtoge ther canwithdrawanything,andAcanshutoffB'sabi litytowithdraw".Thelogicalextensionofthi sis decentralizedautonomousorganizations(DAO s)-long-termsmartcontractsthatcontainthe assetsand fullyfledgedTuring-completeprogrammingla nguagethatcanbeusedtocreate"contracts"th atcanbeused toencodearbitrarystatetransitionfunction s,allowinguserstocreateanyofthesystemsde scribedabove,as well as many others that we have not yet imagined, simply by writing up the logic in a few lines of code.

3 Page 1 Table of contents History Bitcoin As A State Transition System Mining Merkle Trees Alternative Blockchain applications Scripting ethereum ethereum Accounts Messages and Transactions ethereum State Transition Function Code Execution Blockchain and Mining applications Token Systems Financial derivatives Identity and Reputation Systems decentralized File Storage decentralized Autonomous Organizations Further applications Miscellanea And Concerns Modified GHOST Implementation Fees Computation And Turing-Completeness Currency And Issuance Mining Centralization Scalability Putting It All Together: decentralized applications Conclusion References and Further Reading Page 2 Page 3 History Theconceptofdecentralizeddigitalcurrency ,aswellasalternativeapplicationslikeprop ertyregistries, ,mostly reliantonacryptographicprimitiveknownasC haumianblinding,providedacurrencywithahi ghdegree ofprivacy,buttheprotocolslargelyfailedto gaintractionbecauseoftheirrelianceonacen tralized ,WeiDai'sb-moneybecamethefirstproposalto introducetheideaofcreating moneythroughsolvingcomputationalpuzzlesa swellasdecentralizedconsensus,buttheprop osal ,Hal Finneyintroducedaconceptof"reusableproof sofwork".

4 Asystemwhichusesideasfromb-money togetherwithAdamBack'scomputationallydif ficultHashcashpuzzlestocreateaconceptfor a cryptocurrency, but once again fell short of the ideal by relying on trusted computing as a backend. Becausecurrencyisafirst-to-fileapplicati on,wheretheorderoftransactionsisoftenofc ritical importance, thatallpre-Bitcoincurrencyprotocolsfaced isthefactthat,whiletherehadbeenplentyofr esearchon creatingsecureByzantine-fault-tolerantmu ltipartyconsensussystemsformanyyears,all ofthe thesystemwereknown,andproducedsecurityma rginsoftheform"ifNpartiesparticipate,the nthe systemcantolerateuptoN/4maliciousactors" .

5 Theproblemis,however,thatinananonymousse tting suchsecuritymarginsarevulnerabletosybila ttacks,whereasingleattackercreatesthousa ndsof simulated nodes on a server or botnet and uses these nodes to unilaterally secure a majority share. TheinnovationprovidedbySatoshiistheideao fcombiningaverysimpledecentralizedconsen sus protocol,basedonnodescombiningtransactio nsintoa"block"everytenminutescreatingan ever-growingblockchain,withproofofworkas amechanismthroughwhichnodesgaintherightt o proportionatelygreaterinfluence,comingup withmorecomputationalpowerthantheentiren etwork 's crudenessandsimplicity,ithasproventobego odenough,andwouldoverthenextfiveyearsbec ome the bedrock of over two hundred currencies and protocols around the world.

6 Page 4 Bitcoin As A State Transition System Fromatechnicalstandpoint,theBitcoinledge rcanbethoughtofasastatetransitionsystem, wherethereis a"state"consistingoftheownershipstatusof allexistingbitcoinsanda"statetransitionf unction"thattakes ,for example,thestateisabalancesheet,atransac tionisarequesttomove$XfromAtoB,andthesta te transitionfunctionreducesthevalueinA'sac countby$XandincreasesthevalueinB'saccoun tby$ 's accounthaslessthan$Xinthefirstplace, ,onecan formally define: APPLY(S,TX) > S' or ERROR In the banking system defined above: APPLY({Alice:$50,Bob:$50},"send$20fromAl icetoBob")={Alice:$30, Bob: $70 } But: APPLY({ Alice: $50, Bob: $50 },"send $70 from Alice to Bob") = ERROR The"state"inBitcoinisthecollectionofallc oins(technically,"unspenttransactionoutp uts"orUTXO)that havebeenmintedandnotyetspent,witheachUTX O havingadenominationandanowner(definedbya 20-byteaddresswhichisessentiallyacryptog raphicpublickey[1]).

7 Atransactioncontainsoneormoreinputs, witheachinputcontainingareferencetoanexi stingUTXO andacryptographicsignatureproducedbythe privatekeyassociatedwiththeowner'saddres s,andoneormoreoutputs,witheachoutputcont aininganew UTXO to be added to the state. Page 5 The state transition function APPLY(S,TX) > S' can be defined roughly as follows: each input in TX: the referenced UTXO is not in S, return an error. the provided signature does not match the owner of the UTXO, return an error. all output UTXO, return an error. S with all input UTXO removed and all output UTXO added. Thefirsthalfofthefirststeppreventstransa ctionsendersfromspendingcoinsthatdonotex ist,thesecond halfofthefirststeppreventstransactionsen dersfromspendingotherpeople'scoins,andth esecondstep , ,AlicewilllookforasetofavailableUTXO thatsheownsthattotalsuptoatleast , ;saythatthesmallestshecangetis 6+4+2= BTCwithBob'saddressasitsowner, "change",withthe owner being Alice herself.

8 Mining Ifwehadaccesstoatrustworthycentralizedse rvice,thissystemwouldbetrivialtoimplemen t;it ,withBitcoinwearetryingtobuilda decentralizedcurrencysystem,sowewillneed tocombinethestatetransitionsystemwitha 's decentralizedconsensusprocessrequiresnod esinthenetworktocontinuouslyattempttopro duce packagesoftransactionscalled"blocks".The networkisintendedtoproduceroughlyonebloc kevery tenminutes,witheachblockcontainingatimes tamp,anonce,areferenceto( )the Page 6 previousblockandalistofallofthetransacti onsthathavetakenplacesincethepreviousblo ck. Overtime,thiscreatesapersistent,ever-gro wing,"blockchain"thatconstantlyupdatesto represent the latest state of the Bitcoin ledger.

9 The algorithm for checking if a block is valid, expressed in this paradigm, is as follows: if the previous block referenced by the block exists and is valid [2]andlessthan2 hours into the future. that the proof of work on the block is valid. S[0] be the state at the end of the previous block. ' ,setS[i+1]= APPLY(S[i],TX[i]) If any application returns an error, exit and return false. true, and register S[n] as the state at the end of this block Essentially, notencodedintheblockinanyway;itispurelya nabstractiontoberememberedbythevalidatin gnodeand canonlybe(securely)computedforanyblockby startingfromthegenesisstateandsequential lyapplying ,notethattheorderinwhichtheminerincludes transactionsinto theblockmatters;iftherearetwotransaction sAandBinablocksuchthatBspendsaUTXO createdbyA, then the block will be valid if A comes before B but not otherwise.

10 Theinterestingpartoftheblockvalidational gorithmistheconceptof"proofofwork":theco nditionisthatthe SHA256hashofeveryblock,treatedasa256-bit number,mustbelessthanadynamicallyadjuste dtarget, computationally"hard",therebypreventings ybilattackersfromremakingtheentireblockc hainintheirfavor. BecauseSHA256isdesignedtobeacompletelyun predictablepseudorandomfunction,theonlyw aytocreate avalidblockissimplytrialanderror,repeate dlyincrementingthenonceandseeingifthenew hashmatches. Atthecurrenttargetof2192,thismeansanaver ageof264tries;ingeneral,thetargetisrecal ibratedbythe networkevery2016blockssothatonaverageane wblockisproducedbysomenodeinthenetworkev eryten ,theminerofeveryblockisentitledto ,ifanytransactionhasahigher totaldenominationinitsinputsthaninitsout puts,thedifferencealsogoestotheminerasa" transaction fee".


Related search queries