Mastering Ethereum

Building Smart Contracts and DApps

Andreas M. Antonopoulos and Dr. Gavin Wood

Praise for This Book

“Mastering Ethereum is a fantastically thorough guide, from basics to stateof-
the-art practices in smart contract programming, by two of the most
eloquent blockchain educators.”
Manuel Araoz, CTO, Zeppelin
Mastering Bitcoin is the canonical reference that made Bitcoin and blockchain
technology accessible to a broad audience, and Mastering Ethereum does the
same for the Ethereum world computer.
Lane Rettig, Ethereum core developer
“Mastering Ethereum is the absolute best book to read if you’re ready to build
your own DApp! Andreas and Gavin have put together a comprehensive guide
for anyone interested in the decentralized web and how to build decentralized
applications.”
Taylor Gerring, Executive Director, Blockchain Institute
“I had the privilege of having access to Andreas’ and Gav’s book Mastering
Ethereum, and I have to say I’m amazed at its breadth, scope, and
accessibility. It has it all: a deep history of Ethereum, explanations of elliptical
curve mathematics, solidity tutorials, and legal debates on utility tokens and
ICOs. It’s deep enough that it can be used as a whole syllabus of reference
material, yet it’s accessible enough that anyone who is merely math-curious
can understand. After reading a few chapters on the topic, I feel I have a much
more solid understanding of many of the underlying cryptographic primitives.
If you’re a researcher, a developer, a manager, a lawyer, a student, or anyone
curious about where the future of tech is going, I highly recommend having
Mastering Ethereum on your shelf.”
Alex Van de Sande, designer, Ethereum Foundation
“Mastering Ethereum will become a must-read in the future, as Ethereum is
going to be as ubiquitous as TCP/IP. It will become a necessary layer under
which decentralized, trustless technologies live and thrive.”
Hudson Jameson, Community Organizer, Ethereum Foundation
“Mastering Ethereum is the perfect book for anyone who wants to learn more
about Ethereum, whether you’re looking to test the waters or dive straight into
the deep end. Between Gavin Wood’s technical knowledge of Ethereum’s
inner workings and Andreas Antonopoulos’ ability to make complex subjects
approachable, you get the best of both worlds with this book. I only wish it
had been around when I first started diving into Ethereum.”
Taylor Monahan, Founder and CEO of MyCrypto

e-book shop
e-book shop
Purchase Now !
Just with Paypal



Book Details
 
 Price
 8.00 USD
 Pages
 759 p
 File Size
 7,220 KB
 File Type
 PDF format
 ISBN
 9781491971949
 Copyright   
 2019 The Ethereum Book LLC, Gavin Wood


Acknowledgments by Andreas
I owe my love of words and books to my mother, Theresa, who raised me in a
house with books lining every wall. My mother also bought me my first
computer in 1982, despite being a self-described technophobe. My father,
Menelaos, a civil engineer who published his first book at 80 years old, was the
one who taught me logical and analytical thinking and a love of science and
engineering. Thank you all for supporting me throughout this journey.

Acknowledgments by Gavin
My mother secured my first computer for me from a neighbor when I was 9
years old, without which my technical progress would no doubt have been
lessened. I also owe her my childhood fear of electricity and must acknowledge
Trevor and my grandparents, who performed the grave duty of “watching me
plug it in” time after time, and without whom said computer would have been
useless. I must also acknowledge the various educators I have been lucky to have
through my life, from said neighbor Sean (who taught me my first computer
program), to Mr. Quinn my primary school teacher, who fixed it for me to do
more programming and less history, through to secondary-school teachers like
Richard Furlong-Brown, who fixed it for me to do more programming and less rugby.
I must thank the mother of my children, Jutta, for her continued support, and the
many people in my life, friends new and old, that keep me, roughly speaking,
sane. Finally, a huge dollop of thanks must go to Aeron Buchanan, without
whom the last five years of my life could never possibly have unfolded in the
way they did and without whose time, support, and guidance this book would
not be in as good shape as it is.

Contributions
Many contributors offered comments, corrections, and additions to the earlyrelease
draft on GitHub.
Contributions on GitHub were facilitated by two GitHub editors who
volunteered to project manage, review, edit, merge, and approve pull requests and issues:
Lead GitHub editor: Francisco Javier Rojas Garcia (fjrojasgarcia)
Assisting GitHub editor: William Binns (wbnns)
Major contributions were provided on the topics of DApps, ENS, the EVM, fork
history, gas, oracles, smart contract security, and Vyper. Additional
contributions, which were not included in this first edition due to time and space
constraints, can be found in the contrib folder of the GitHub repository.
Thousands of smaller contributions throughout the book have improved its
quality, legibility, and accuracy. Sincere thanks to all those who contributed!
Following is an alphabetically sorted list of all the GitHub contributors,
including their GitHub IDs in parentheses:
Abhishek Shandilya (abhishandy)
Adam Zaremba (zaremba)
Adrian Li (adrianmcli)
Adrian Manning (agemanning)
Alejandro Santander (ajsantander)
Alejo Salles (fiiiu)
Alex Manuskin (amanusk)
Alex Van de Sande (alexvandesande)
Anthony Lusardi (pyskell)
Assaf Yossifoff (assafy)
Ben Kaufman (ben-kaufman)
Bok Khoo (bokkypoobah)
Brandon Arvanaghi (arvanaghi)
Brian Ethier (dbe)
Bryant Eisenbach (fubuloubu)
Chanan Sack (chanan-sack)
Chris Remus (chris-remus)
Christopher Gondek (christophergondek)
Cornell Blockchain (CornellBlockchain)
Alex Frolov (sashafrolov)
Brian Guo (BrianGuo)
Brian Leffew (bleffew99)
Giancarlo Pacenza (GPacenza)
Lucas Switzer (LucasSwitz)
Ohad Koronyo (ohadh123)
Richard Sun (richardsfc)
Cory Solovewicz (CorySolovewicz)
Dan Shields (NukeManDan)
Daniel Jiang (WizardOfAus)
Daniel McClure (danielmcclure)
Daniel Peterson (danrpts)
Denis Milicevic (D-Nice)
Dennis Zasnicoff (zasnicoff)
Diego H. Gurpegui (diegogurpegui)
Dimitris Tsapakidis (dimitris-t)
Enrico Cambiaso (auino)
Ersin Bayraktar (ersinbyrktr)
Flash Sheridan (FlashSheridan)
Franco Daniel Berdun (fMercury)
Harry Moreno (morenoh149)
Hon Lau (masterlook)
Hudson Jameson (Souptacular)
Iuri Matias (iurimatias)
Ivan Molto (ivanmolto)
Jacques Dafflon (jacquesd)
Jason Hill (denifednu)
Javier Rojas (fjrojasgarcia)
Jaycen Horton (jaycenhorton)
Joel Gugger (guggerjoel)
Jon Ramvi (ramvi)
Jonathan Velando (rigzba21)
Jules Lainé (fakje)
Karolin Siebert (karolinkas)
Kevin Carter (kcar1)
Krzysztof Nowak (krzysztof)
Lane Rettig (lrettig)
Leo Arias (elopio)
Liang Ma (liangma)
Luke Schoen (ltfschoen)
Marcelo Creimer (mcreimer)
Martin Berger (drmartinberger)
Masi Dawoud (mazewoods)
Matthew Sedaghatfar (sedaghatfar)
Michael Freeman (stefek99)
Miguel Baizan (mbaiigl)
Mike Pumphrey (bmmpxf)
Mobin Hosseini (iNDicat0r)
Nagesh Subrahmanyam (chainhead)
Nichanan Kesonpat (nichanank)
Nick Johnson (arachnid)
Omar Boukli-Hacene (oboukli)
Paulo Trezentos (paulotrezentos)
Pet3rpan (pet3r-pan)
Pierre-Jean Subervie (pjsub)
Pong Cheecharern (Pongch)
Qiao Wang (qiaowang26)
Raul Andres Garcia (manilabay)
Roger Häusermann (haurog)
Solomon Victorino (bitsol)
Steve Klise (sklise)
Sylvain Tissier (SylTi)
Taylor Masterson (tjmasterson)
Tim Nugent (timnugent)
Timothy McCallum (tpmccallum)
Tomoya Ishizaki (zaq1tomo)
Vignesh Karthikeyan (meshugah)
Will Binns (wbnns)
Xavier Lavayssière (xalava)
Yash Bhutwala (yashbhutwala)
Yeramin Santana (ysfdev)
Zhen Wang (zmxv)
ztz (zt2)
Without the help offered by everyone listed above, this book would not have
been possible. Your contributions demonstrate the power of open source and
open culture, and we are eternally grateful for your help. Thank you.

Preface
This book is a collaboration between Andreas M. Antonopoulos and Dr. Gavin
Wood. A series of fortunate coincidences brought these two authors together in
an effort that galvanized hundreds of contributors to produce this book, in the
best spirit of open source and the creative commons culture.
Gavin had been wishing to write a book that expanded on the Yellow Paper (his
technical description of the Ethereum protocol) for some time, primarily to open
it up to a wider audience than the original Greek-letter-infused document could
possibly allow.
Plans were underway — a publisher had been found — when Gavin got talking
to Andreas, whom he had known from the very beginning of his tenure with
Ethereum as a notable personality in the space.
Andreas had recently published the first edition of his book Mastering Bitcoin
(O’Reilly), which quickly became the authoritative technical guide to Bitcoin
and cryptocurrencies. Almost as soon as the book was published, his readers
started asking him, “When will you write Mastering Ethereum?” Andreas was
already considering his next project and found Ethereum to be a compelling
technical subject.
Finally, in May 2016, Gavin and Andreas were both coincidentally in the same
city at the same time. They met up for a coffee to chat about working on the
book together. With both Andreas and Gavin being devotees of the open source
paradigm, they both committed to making this a collaborative effort, released
under a Creative Commons license. Thankfully, the publisher, O’Reilly Media,
was happy to agree, and the Mastering Ethereum project was officially launched.

How to Use This Book
The book is intended to serve both as a reference manual and as a cover-to-cover
exploration of Ethereum. The first two chapters offer a gentle introduction,
suitable for novice users, and the examples in those chapters can be completed
by anyone with a bit of technical skill. Those two chapters will give you a good
grasp of the basics and allow you to use the fundamental tools of Ethereum.
Chapter 3 and beyond are intended mainly for programmers and include many
technical topics and programming examples.
To serve as both a reference manual and a cover-to-cover narrative about
Ethereum, the book inevitably contains some duplication. Some topics, such as
gas, have to be introduced early enough for the rest of the topics to make sense,
but are also examined in depth in their own sections.
Finally, the book’s index allows readers to find very specific topics and the
relevant sections with ease, by keyword.

Intended Audience
This book is mostly intended for coders. If you can use a programming
language, this book will teach you how smart contract blockchains work, how to
use them, and how to develop smart contracts and decentralized applications
with them. The first few chapters are also suitable as an in-depth introduction to
Ethereum for noncoders.

Ethereum Addresses and Transactions in this Book
The Ethereum addresses, transactions, keys, QR codes, and blockchain data used
in this book are, for the most part, real. That means you can browse the
blockchain, look at the transactions offered as examples, retrieve them with your
own scripts or programs, etc.
However, note that the private keys used to construct the addresses printed in
this book have been “burned.” This means that if you send money to any of these
addresses, the money will either be lost forever or (more likely) appropriated,
since anyone who reads the book can take it using the private keys printed herein.

References to Companies and Products
All references to companies and products are intended for educational,
demonstration, and reference purposes. The authors do not endorse any of the
companies or products mentioned. We have not tested the operation or security
of any of the products, projects, or code segments shown in this book. Use them
at your own risk!

Bookscreen
e-books shop

Sources
Previous Post Next Post