Mastering Bitcoin Traduzione Italiana - 2A Edizione

Total Page:16

File Type:pdf, Size:1020Kb

Mastering Bitcoin Traduzione Italiana - 2A Edizione Mastering Bitcoin Traduzione italiana - 2a edizione Andreas M. Antonopoulos e Riccardo Masutti 1 2 DEDICA Dedicato ad Hal Finney (1956-2014), sviluppatore di PGP Corporation e destinatario della prima transazione bitcoin di Satoshi Nakamoto. Grazie per tutto ciò che hai fatto per Bitcoin, Hal! 3 Mastering Bitcoin – Traduzione Italiana (2a edizione) di Riccardo Masutti è sotto licenza Creative Commons Attribution-ShareAlike 4.0 International License. Basato e tradotto dalla 2nd edition, 2nd print di Mastering Bitcoin pubblicata da Andreas M. Antonopoulos. Mastering Bitcoin - Second Edition di Andreas M. Antonopoulos LLC è sotto licenza Creative Commons Attribution-ShareAlike 4.0 International License. Ultimo aggiornamento: Novembre 2019 Questo libro è disponibile in comodo formato cartaceo 8”x10” e .mobi su Amazon. Per supportare l’Autore, considera l’idea di acquistare una copia fisica o per ebook. Formato cartaceo: https://www.amazon.it/dp/1081849118/ Formato digitale: https://www.amazon.it/dp/B07WHDK5K9/ 4 Indice Prefazione............................................................................................................................................19 Scrivere il Bitcoin Book....................................................................................................................19 Pubblico di Riferimento...................................................................................................................19 Convenzioni usate in questo libro...................................................................................................20 Esempi di Codice.............................................................................................................................21 Utilizzare gli Esempi di Codice.........................................................................................................21 Indirizzi e Transazioni Bitcoin in Questo Libro.................................................................................22 Contattare l’Autore della versione italiana......................................................................................23 Riconoscimenti................................................................................................................................24 Bozza della Early Release (Contributi da GitHub).......................................................................27 Glossario...............................................................................................................................................30 Introduzione.........................................................................................................................................46 Cos’è Bitcoin?..................................................................................................................................46 Storia di Bitcoin...............................................................................................................................50 I vari Utilizzi di Bitcoin, gli Utenti e le loro Storie.............................................................................51 Per Iniziare.......................................................................................................................................53 Scegliere un Bitcoin Wallet.........................................................................................................54 Avvio Rapido...............................................................................................................................57 Ottenere il tuo primo Bitcoin......................................................................................................60 Trovare il prezzo corrente di Bitcoin..........................................................................................62 Inviare e ricevere Bitcoin............................................................................................................63 Come Funziona Bitcoin.........................................................................................................................66 5 ANDREAS M. ANTONOPOULOS Transazioni, Blocchi, Mining, e la Blockchain..................................................................................66 Panoramica su Bitcoin................................................................................................................66 Pagare un Caffè..........................................................................................................................67 Transazioni Bitcoin..........................................................................................................................70 Input e output delle transazioni.................................................................................................70 Catene di transazioni..................................................................................................................71 Forme di Transazioni Comuni.....................................................................................................73 Costruire una Transazione...............................................................................................................75 Ottenere gli Input Giusti.............................................................................................................75 Creare gli Output........................................................................................................................77 Aggiungere la Transazione al Ledger (libro mastro)...................................................................79 Trasmettere la transaction....................................................................................................79 Come si propaga....................................................................................................................79 Il Punto di Vista di Bob..........................................................................................................80 Il Mining di Bitcoin...........................................................................................................................81 Effettuare Mining delle Transazioni presenti nei Blocchi.................................................................83 Spendere la Transazione.................................................................................................................86 Bitcoin Core: L’Implementazione di Riferimento..................................................................................88 Ambiente di sviluppo Bitcoin...........................................................................................................89 Compilare Bitcoin Core dal Codice Sorgente...................................................................................90 Selezionare una versione di Bitcoin Core...................................................................................91 Configurazione della Build di Bitcoin Core..................................................................................92 Gli Executables di Bitcoin Core...................................................................................................95 Esecuzione di un nodo Bitcoin Core................................................................................................97 6 MASTERING BITCOIN Configurazione del nodo Bitcoin Core........................................................................................99 Bitcoin Core Application Programming Interface (API)..................................................................105 Ottenere Informazioni sullo Stato del Client Bitcoin Core........................................................107 Esplorare e Decodificare le Transazioni....................................................................................108 Esplorare i Blocchi....................................................................................................................112 Utilizzo dell'interfaccia programmatica di Bitcoin Core............................................................114 Client Alternativi, Librerie, e Toolkits............................................................................................118 C/C++........................................................................................................................................119 JavaScript.................................................................................................................................119 Java...........................................................................................................................................119 PHP...........................................................................................................................................120 Python......................................................................................................................................120 Ruby.........................................................................................................................................120 Go.............................................................................................................................................120 Rust..........................................................................................................................................120 C#.............................................................................................................................................121 Objective-C...............................................................................................................................121
Recommended publications
  • The Internet and Drug Markets
    INSIGHTS EN ISSN THE INTERNET AND DRUG MARKETS 2314-9264 The internet and drug markets 21 The internet and drug markets EMCDDA project group Jane Mounteney, Alessandra Bo and Alberto Oteo 21 Legal notice This publication of the European Monitoring Centre for Drugs and Drug Addiction (EMCDDA) is protected by copyright. The EMCDDA accepts no responsibility or liability for any consequences arising from the use of the data contained in this document. The contents of this publication do not necessarily reflect the official opinions of the EMCDDA’s partners, any EU Member State or any agency or institution of the European Union. Europe Direct is a service to help you find answers to your questions about the European Union Freephone number (*): 00 800 6 7 8 9 10 11 (*) The information given is free, as are most calls (though some operators, phone boxes or hotels may charge you). More information on the European Union is available on the internet (http://europa.eu). Luxembourg: Publications Office of the European Union, 2016 ISBN: 978-92-9168-841-8 doi:10.2810/324608 © European Monitoring Centre for Drugs and Drug Addiction, 2016 Reproduction is authorised provided the source is acknowledged. This publication should be referenced as: European Monitoring Centre for Drugs and Drug Addiction (2016), The internet and drug markets, EMCDDA Insights 21, Publications Office of the European Union, Luxembourg. References to chapters in this publication should include, where relevant, references to the authors of each chapter, together with a reference to the wider publication. For example: Mounteney, J., Oteo, A. and Griffiths, P.
    [Show full text]
  • Overview of Crypto Currency`S Role in India
    www.ijemr.net ISSN (ONLINE): 2250-0758, ISSN (PRINT): 2394-6962 Volume-8, Issue-1 February 2018 International Journal of Engineering and Management Research Page Number: 105-110 Overview of Crypto Currency`s Role in India Dr. R. Chandrasekaran1 and K. Anitha2 1Assistant Professor, Department of Management, Dr. N.G.P Arts and Science College, Coimbatore, INDIA 2Assistant Professor, Department of Commerce (Finance), Dr. N.G.P Arts and Science College, Coimbatore, INDIA 1Corresponding Author: [email protected] ABSTRACT Bitcoin Cryptocurrencies are digital assets that Bitcoin is a globalcrypto currency and digital use cryptography, an encryption technique, for security. payment system noted to be the first decentralized digital Cryptocurrencies are primarily used to buy and sell goods currency, as the system works lacking a central source or and services, though some newer cryptocurrencies also single overseer. It was developed by an unidentified person function to provide a set of rules or obligations for its or a set of people under the name Satoshi Nakamoto and holders—something we will discuss later. They possess no intrinsic value in that they are not redeemable for another released as open-source software in 2009.The arrangement commodity, such as gold. Unlike traditional currency, they is peer-to-peer, and dealings take place between users are not issued by a central authority and are not considered straight, without an midway. These transactions are legal tender. confirmed by network bulges and recorded in a public circulatedjournal called a block chain. Keywords-- Bitcoin, Cryptocurrency, Zebpay Bitcoins are formed as a recompense for a procedure known as mining.
    [Show full text]
  • Creation and Resilience of Decentralized Brands: Bitcoin & The
    Creation and Resilience of Decentralized Brands: Bitcoin & the Blockchain Syeda Mariam Humayun A dissertation submitted to the Faculty of Graduate Studies in partial fulfillment of the requirements for the degree of Doctor of Philosophy Graduate Program in Administration Schulich School of Business York University Toronto, Ontario March 2019 © Syeda Mariam Humayun 2019 Abstract: This dissertation is based on a longitudinal ethnographic and netnographic study of the Bitcoin and broader Blockchain community. The data is drawn from 38 in-depth interviews and 200+ informal interviews, plus archival news media sources, netnography, and participant observation conducted in multiple cities: Toronto, Amsterdam, Berlin, Miami, New York, Prague, San Francisco, Cancun, Boston/Cambridge, and Tokyo. Participation at Bitcoin/Blockchain conferences included: Consensus Conference New York, North American Bitcoin Conference, Satoshi Roundtable Cancun, MIT Business of Blockchain, and Scaling Bitcoin Tokyo. The research fieldwork was conducted between 2014-2018. The dissertation is structured as three papers: - “Satoshi is Dead. Long Live Satoshi.” The Curious Case of Bitcoin: This paper focuses on the myth of anonymity and how by remaining anonymous, Satoshi Nakamoto, was able to leave his creation open to widespread adoption. - Tracing the United Nodes of Bitcoin: This paper examines the intersection of religiosity, technology, and money in the Bitcoin community. - Our Brand Is Crisis: Creation and Resilience of Decentralized Brands – Bitcoin & the Blockchain: Drawing on ecological resilience framework as a conceptual metaphor this paper maps how various stabilizing and destabilizing forces in the Bitcoin ecosystem helped in the evolution of a decentralized brand and promulgated more mainstreaming of the Bitcoin brand. ii Dedication: To my younger brother, Umer.
    [Show full text]
  • Geraszimov-Doktrína – Egy Másik Megvilágításban
    KATONAI NEMZETBIZTONSÁGI SZOLGÁLAT XVI. évfolyam 3–4. szám FELDERÍTŐ SZEMLE ALAPÍTVA: 2002 BUDAPEST 2017 A Katonai Nemzetbiztonsági Szolgálat tudományos-szakmai folyóirata Felelős kiadó Kovács József altábornagy, főigazgató Szerkesztőbizottság Elnök: Dr. Béres János vezérőrnagy Tagok: Dezső Sándor vezérőrnagy Dr. Magyar István ny. dandártábornok Dr. Tömösváry Zsigmond ny. dandártábornok Deák Anita alezredes Dr. Fürjes János alezredes Háry Szabolcs ezredes Dr. Magyar Sándor ezredes Dr. Tóth Sándor alezredes Dr. Vida Csaba alezredes Felelős szerkesztő: Deák Anita alezredes Olvasószerkesztő: Gál Csaba ny. ezredes Tördelőszerkesztő: Tóth Krisztina tzls. HU ISSN 1588-242X TARTALOM BIZTONSÁGPOLITIKA HOLECZ JÓZSEF ALEZREDES A GERASZIMOV-DOKTRÍNA – EGY MÁSIK MEGVILÁGÍTÁSBAN ...................................................... 5 BERTALAN DÁVID OGY. ALEZREDES A BIZTONSÁGI SZEKTOR SPECIÁLIS VONÁSAI .......................... 28 MEZŐ ANDRÁS ALEZREDES A DOKTRÍNAFEJLESZTÉS NEMZETKÖZI TAPASZTALATAI ... 45 HEGYI ÁGNES SZÁZADOS TERRORIZMUS A SZÁHEL-ÖVEZETBEN ....................................... 74 DR. GERENCSÉR ÁRPÁD KÖZÉP-ÁZSIAI SZÉLSŐSÉGES MOZGALMAK MEGJELENÉSI FORMÁI ÉS JELENTŐSÉGE .................................. 87 HÍRSZERZÉS – FELDERÍTÉS KOÓS GÁBOR NY. ALEZREDES – PROF. DR. SZTERNÁK GYÖRGY NY. EZREDES A FEGYVERES KÜZDELEM JELLEMZŐI KUTATÁSÁNAK FONTOSSÁGA, A HÍRSZERZÉS ÉS A FELDERÍTÉS JELENTŐSÉGE ..................... 97 DR. VIDA CSABA ALEZREDES AZ ELEMZŐ-ÉRTÉKELŐ MUNKA TERMÉKEI – NEMZETBIZTONSÁGI TÁJÉKOZTATÓK KÉSZÍTÉSE .............. 112
    [Show full text]
  • Segwit2x –
    SegWit2x – A New Statement The Overwhelming power of SegWit2x In order to safeguard the community from an undesired chain split, the upgrade should be overwhelming, but it’s not enough. It should also ‘appear’ as overwhelming. People, businesses and services needs to be certain about what is going to happen and the risks if they won’t follow. My impression is that still too many speaking english people in the western world think the upgrade will be abandoned before or immediately after block 494784 is mined, thus they are going to simply ignore it. That could lead to unprepared patch up and confusion, while naïve users risk to harm themselves. For this reason and for the sake of the Bitcoin community as a whole, we need to show again, clearly and publicly the extent of the support to SegWit2x. We also need to commit ourselves in a widespread communication campaign. I know this is not a strict technical matter, but it could help a lot avoiding technical issues in the future. What we have to do First, we need a new statement from the original NYA signers and all the business, firms and individuals who joined the cause later. That statement should be slightly different from the original NYA though, and I am explaining why. We all know that what Bitcoin is will be ultimately determined by market forces, comprehensive of all the stakeholders involved: businesses, miners, users, developers, traders, investors, holders etc. Each category has its own weight in the process, and everybody has incentives in following the market.
    [Show full text]
  • A Regulatory and Economic Perplexity: Bitcoin Needs Just a Bit of Regulation
    Washington University Journal of Law & Policy Volume 47 Intellectual Property: From Biodiversity to Technical Standards 2015 A Regulatory and Economic Perplexity: Bitcoin Needs Just a Bit of Regulation Daniela Sonderegger Washington University School of Law Follow this and additional works at: https://openscholarship.wustl.edu/law_journal_law_policy Part of the Banking and Finance Law Commons, and the Business Law, Public Responsibility, and Ethics Commons Recommended Citation Daniela Sonderegger, A Regulatory and Economic Perplexity: Bitcoin Needs Just a Bit of Regulation, 47 WASH. U. J. L. & POL’Y 175 (2015), https://openscholarship.wustl.edu/law_journal_law_policy/vol47/iss1/14 This Note is brought to you for free and open access by the Law School at Washington University Open Scholarship. It has been accepted for inclusion in Washington University Journal of Law & Policy by an authorized administrator of Washington University Open Scholarship. For more information, please contact [email protected]. A Regulatory and Economic Perplexity: Bitcoin Needs Just a Bit of Regulation Daniela Sonderegger [T]here is something special about Bitcoin that makes it inherently resistant to government control. It is built on code. It lives in the cloud. It is globalized and detached from the nation state, has no own institutional owner, operates peer to peer, and its transactions are inherently pseudonymous. It cannot be regulated in the same way as the stock market, government currency markets, insurance, or other financial sectors. —Jeffrey Tucker1 INTRODUCTION Set aside all of the legal and regulatory parameters and simply take a moment to imagine a world that functions on a single digitalized currency, regulated not by a central authority, but rather by the individual users who take part in the system.
    [Show full text]
  • Blockchain and The
    NOTES ACKNOWLEDGMENTS INDEX Notes Introduction 1. The manifesto dates back to 1988. See Timothy May, “The Crypto Anarchist Manifesto” (1992), https:// www . activism . net / cypherpunk / crypto - anarchy . html. 2. Ibid. 3. Ibid. 4. Ibid. 5. Ibid. 6. Timothy May, “Crypto Anarchy and Virtual Communities” (1994), http:// groups . csail . mit . edu / mac / classes / 6 . 805 / articles / crypto / cypherpunks / may - virtual - comm . html. 7. Ibid. 8. For example, as we wi ll describe in more detail in Chapter 1, the Bitcoin blockchain is currently stored on over 6,000 computers in eighty- nine jurisdictions. See “Global Bitcoin Node Distribution,” Bitnodes, 21 . co, https:// bitnodes . 21 . co / . Another large blockchain- based network, Ethereum, has over 12,000 nodes, also scattered across the globe. See Ethernodes, https:// www . ethernodes . org / network / 1. 9. See note 8. 10. Some blockchains are not publicly accessible (for more on this, see Chapter 1). These blockchains are referred to as “private blockchains” and are not the focus of this book. 11. See Chapter 1. 12. The Eu ro pean Securities and Market Authority, “Discussion Paper: The Dis- tributed Ledger Technology Applied to Securities Markets,” ESMA / 2016 / 773, June 2, 2016: at 17, https:// www . esma . europa . eu / sites / default / files / library / 2016 - 773 _ dp _ dlt . pdf. 213 214 NOTES TO PAGES 5–13 13. The phenomena of order without law also has been described in other con- texts, most notably by Robert Ellickson in his seminal work Order without Law (Cambridge, MA: Harvard University Press, 1994). 14. Joel Reidenberg has used the term “lex informatica” to describe rules imple- mented by centralized operators online.
    [Show full text]
  • Facilitating Cross-Chain Cryptocurrency Exchanges: an Inquiry Into Blockchain Technology and Interoperability with an Emphasis on Cryptocurrency Arbitrage
    Eastern Michigan University DigitalCommons@EMU Senior Honors Theses & Projects Honors College 2020 Facilitating cross-chain cryptocurrency exchanges: An inquiry into blockchain technology and interoperability with an emphasis on cryptocurrency arbitrage Samuel Grone Follow this and additional works at: https://commons.emich.edu/honors Part of the Computer Sciences Commons Facilitating cross-chain cryptocurrency exchanges: An inquiry into blockchain technology and interoperability with an emphasis on cryptocurrency arbitrage Abstract Since the introduction and proliferation of the blockchain-based cryptocurrency Bitcoin, alternative cryptocurrencies also based on blockchain technology have exploded in number. It was once believed that one, or very few, cryptocurrencies would eventually dominate the market and drive out competitors. This assumption, however, was incorrect. Thousands of cryptocurrencies exist concurrently. The vast number of cryptocurrencies leads to a problem—what if the cryptocurrency that an individual possesses does not meet their current needs as well as another cryptocurrency might? The attempt to solve this problem has led to the rise of many cryptocurrency exchanges and exchange schemes. In this paper, we will discuss the motivations for an individual to be interested in exchanging two or more cryptocurrencies by describing and comparing various popular cryptocurrencies with different desirable attributes. While we will discuss these attributes, this paper will give special focus to arbitrage in particular. In addition, we will describe various cryptocurrency exchange schemes and their advantages and disadvantages. Finally, we contribute to the understanding of cryptocurrency exchangeability and interoperability by comparing the historical price data of several cryptocurrencies to determine how often arbitrage has been possible in the past. Degree Type Open Access Senior Honors Thesis Department Computer Science First Advisor Weitian Tong Second Advisor S.
    [Show full text]
  • (15-17 May 2014), Passenger Terminal Amsterdam
    Bitcoin2014 - Building the Digital Economy (15-17 May 2014), Passenger Terminal Amsterdam Thursday 15th May 12:15pm - 2:30pm - 3:10pm- Time 9:00am - 9:30am 9:30am - 10:30am 10:30am - 10:45am 10:45am - 12pm 12:00pm - 1:00pm 1:00pm 2:00pm - 2:30pm 3pm 2:40pm - 3:10pm 3:30pm 3:30pm - 4:30pm 4:30pm - 5:00pm 5:00 - 5:30PM 5:30 - 6:00PM 6:00 - 6:30PM 6:30 - 7.30PM 7.30 - 8.30PM 8:30-10:30PM INTERNATIONAL Bitcoin Foundation Projects AFFILIATE SUMMIT (O7 - Welcome and and International Affiliate New Affiliate IAS invite only) Introductions Program IAS Coffee Updates International Community Breakouts Building a Global Community Lunch 10:45am - Time 11:00am 11:00am - 12:00pm 12:00pm - 12:15pm 5pm - 8pm REGISTRATION AND EXHIBITS OPEN 5pm onwards Correspondents Reception (Invite only): IJ Welcome Reception: 6:00pm - 8:00pm, Upper deck, PTA (Sponsor: Circle) Sunset Cruise (Invite Only): 7:30pm - 10:30pm (BitPay in Friday 16th May association with iAmsterdam) PTA Main Deck Keynote Address: Dr Patrick Byrne, CEO, Overstock.com Blockchain Awards Refreshment Sponsor: Gridseed Time 9:00am start Main Deck (PTA) 5:30pm - 6:30pm Hosted by Nic Cary, Jon Matonis (Bitcoin Foundation) Blockchain.info and Jinyoung Lee Englund, Bitcoin Speakers and Patrick Byrne (Overstock) Foundation Panel: The race to be your mobile 10 min Coffee Feature Presenter wallet Lunch break Feature Presenter break Panel: What's the Buzz around Bitcoin ATM's? Panel: Global Pioneers of Bitcoin 1:00pm - 2:30pm - 3:10pm - Time 11:30am - 12pm 12:00pm - 1:00pm 2:00pm 2:00pm - 2:30pm 2:40pm
    [Show full text]
  • Bitcoin Mining Bitcoin
    Bitcoin Mining Explained BITCOIN MINING BITCOIN MINING Bitcoin Mining Explained Copyright © 2018 2 Table of Contents INTRODUCTION 4 WHAT IS BITCOIN MINING? 5 BITCOIN MINING TERMINOLOGY 6 WHY DO PEOPLE MINE BITCOIN? 9 GETTING STARTED MINING 12 TOP HARDWARE FOR BITCOIN MINING 13 WHAT SOFTWARE IS NEEDED? 16 MINING APPS 17 ELECTRICAL COSTS FOR MINING 22 OTHER BITCOIN MINING OPTIONS 23 CLOUD MINING 23 MINING POOLS 23 HOW TO SET UP A BITCOIN MINING OPERATION 25 HOW TO CALCULATE BITCOIN MINING PROFITS 26 RISKS AND REWARDS OF BITCOIN MINING 27 RISKS 27 REWARDS 27 CONCLUSION 29 3 Introduction It is no longer news that the adoption of digital currencies as a means of making payment is rapidly gaining momentum around the world. Bitcoin, which is the first example of the growing category of money known as the cryptocurrency, is the most popular and widely accepted of them all. Bitcoin is a peer-to-peer electronic cash system that was invented by a software developer called Satoshi Nakamoto, and it is currently taking the lead amongst other digital currencies. It is an electronic payment system based on mathematical proof that is created and held electronically. Bitcoin is also a decentralized form of cryptocurrency that is independent of any central authority – meaning, there is no single institution controlling the Bitcoin network. This eBook is going to help you go beyond a basic understanding of Bitcoin and the mining of it. When you are finished reading, you’ll be ready to get started mining Bitcoins today! 4 What is Bitcoin Mining? In traditional fiat currency systems, money is printed by the government and released into circulation whenever it is needed.
    [Show full text]
  • “The Man Who Really Built Bitcoin: Who Cares About Satoshi Nakamoto
    “The Man Who Really Built Bitcoin: Who cares about Satoshi Nakamoto? Someone else has made Bitcoin what it is and has the most power over its destiny” by Tom Simonite, August 15, 2014 [source: http://www.technologyreview.com/featuredstory/527051/the-man-who-really-built-bitcoin/] WHY IT MATTERS The 13 million bitcoins in existence are worth more than $7 billion. In March, a bewildered retired man faced journalists yelling questions about virtual currency outside his suburban home in Temple City, California. Dorian Nakamoto, 64, had been identified by Newsweek as the person who masterminded Bitcoin—a story that, like previous attempts to unmask its pseudonymous inventor, Satoshi Nakamoto, was soon discredited. Meanwhile, the person arguably most responsible for enabling the currency to swell in value to $7.7 billion, and with the most influence on its future, was hiding in plain sight on the other side of the country, in Amherst, Massachusetts. That person is Gavin Andresen, a mild-mannered 48-year-old picked by the real Satoshi Nakamoto, whoever he or she is, as his successor in late 2010. Andresen became “core maintainer”—chief developer—of the open source code that defines the rules of Bitcoin and provides the software needed to make use of it. The combination of Nakamoto’s blessing and Andresen’s years of diligent, full-time work on the Bitcoin code has given him significant clout in Bitcoin circles and stature beyond. The CIA and Washington regulators have looked to him to explain the currency. And it was Andresen who conceived of the nonprofit Bitcoin Foundation—established in 2012—which is the closest thing to a central authority in the world of Bitcoin.
    [Show full text]
  • Trust and Verifiable Computation for Smart Contracts in Permissionless Blockchains
    DEGREE PROJECT IN INFORMATION AND COMMUNICATION TECHNOLOGY, SECOND CYCLE, 30 CREDITS STOCKHOLM, SWEDEN 2017 Trust and verifiable computation for smart contracts in permissionless blockchains DOMINIK HARZ KTH ROYAL INSTITUTE OF TECHNOLOGY SCHOOL OF INFORMATION AND COMMUNICATION TECHNOLOGY Abstract Blockchains address trust through cryptography and consensus. Bitcoin is the first digital currency without trusted agents. Ethereum extends this technology by enabling agents on a blockchain, via smart contracts. However, a systemic trust model for smart contracts in blockchains is missing. This thesis describes the ecosystem of smart contracts as an open multi-agent system. A trust model introduces social control through deposits and review agents. Trust-related attributes are quantified in 2,561 smart contracts from GitHub. Smart contracts employ a mean of three variables and functions and one in ten has a security-related issue. Moreover, blockchains restrict computation tasks. Resolving these restrictions while maintaining trust requires verifiable computation. An algorithm for verifiable computation is developed and implemented in Solidity. It uses an arbiter enforcing the algorithm, computation services providing and verifying solutions, and a judge assessing solutions. Experiments are performed with 1000 iterations for one to six verifiers with a cheater prior probability of 30%, 50%, and 70%. The algorithm shows linear complexity for integer multiplication. The verification depends on cheater prior probability and amount of verifiers. In the experiments, six verifiers are sufficient to detect all cheaters for the three prior probabilities. Keywords: blockchain; smart contract; trust; multi-agent system; verifiable compu- tation Referat Blockchains adresserar tillit genom kryptografi och konsensus. Bitcoin är den första digitala valutan utan betrodda agenter.
    [Show full text]