1
0
mirror of https://github.com/bitcoinbook/bitcoinbook synced 2024-12-23 23:18:42 +00:00
bitcoinbook/preface.asciidoc

227 lines
14 KiB
Plaintext
Raw Normal View History

2013-07-24 03:50:43 +00:00
[preface]
== Preface
2014-04-02 05:04:34 +00:00
=== Writing the Bitcoin Book
2014-04-04 14:56:05 +00:00
I first stumbled upon bitcoin in mid-2011. My immediate reaction was more or less "Pfft! Nerd money!" and I ignored it for another 6 months, failing to grasp its importance. This is a reaction which I have seen repeated among many of the smartest people I know, which gives me some consolation. The second time I came across bitcoin in a mailing list discussion, I decided to read the white paper written by Satoshi Nakamoto, to study the authoritative source and see what it was all about. I still remember the moment I finished reading those 9 pages, when I realized that bitcoin was not simply a digital currency, but a network of trust that could also provide the basis for so much more than just currencies. That realization: "This isn't money, it's a de-centralized trust network," started me on a four month journey to devour every scrap of information about bitcoin I could find. I became obsessed and enthralled, spending twelve or more hours each day glued to a screen, reading, writing, coding and learning as much as I could. I emerged from this state of fugue, more than 20 lbs lighter from lack of consistent meals, determined to dedicate myself to working on bitcoin.
2014-04-02 05:04:34 +00:00
2014-09-06 20:06:48 +00:00
Two years later, after creating a number of small startups to explore various bitcoin-related services and products, I decided that it was time to write my first book. Bitcoin was the topic that had driven me into a frenzy of creativity, consumed my thoughts and was the most exciting technology I had encountered since the Internet. It was now time to share my passion about this amazing technology with a broader audience. This is the bitcoin book.
2014-04-02 05:04:34 +00:00
=== Intended Audience
2014-04-02 05:12:47 +00:00
This book is mostly intended for coders. If you can use a programming language, this book will teach you how cryptographic currencies work, how to use them and how to develop software that works with them. The first few chapters are also suitable as an in-depth introduction to bitcoin for non-coders - those trying to understand the inner workings of bitcoin and cryptocurrencies. The examples are illustrated in Python and on the command-line of a Unix-like operating system such as Linux.
2014-04-02 05:04:34 +00:00
=== Github Source Code
2014-04-02 05:04:34 +00:00
This book is available on Github, as a repository that contains the text, images and code:
2014-04-02 05:04:34 +00:00
https://github.com/aantonop/bitcoinbook
2014-04-02 05:04:34 +00:00
Fork the book code, try the code examples, or submit corrections via Github.
2014-04-02 05:36:05 +00:00
=== Why Are There Bugs On The Cover?
2014-04-04 14:54:01 +00:00
The Leafcutter Ant is a species that exhibits highly complex behavior in a colony super-organism, but each individual ant operates on a set of simple rules driven by social interaction and the exchange of chemical scents (pheromones). Per Wikipedia: "Next to humans, leafcutter ants form the largest and most complex animal societies on Earth." Leafcutter ants don't actually eat leaves, but rather use them to farm a fungus, which is the central food source for the colony. Get that? These ants are farming!
2014-04-02 05:36:05 +00:00
While ants form a caste-based society and have a queen for producing offspring, there is no central authority or leader in an ant colony. The highly intelligent and sophisticated behavior exhibited by a multi-million member colony is an emergent property from the interaction of the individuals in a social network.
2014-04-02 06:18:29 +00:00
Nature demonstrates that de-centralized systems can be resilient and can produce emergent complexity and sophistication without the need for a central authority, hierarchy or complex parts.
Bitcoin is a highly sophisticated de-centralized trust network that can support a myriad of financial processes. Yet, each node in the bitcoin network follows a few simple mathematical rules. The interaction between many nodes is what leads to the emergence of the sophisticated behavior, not any inherent complexity or trust in any single node. Like an ant colony, the bitcoin network is a resilient network of simple nodes following simple rules that together can do amazing things without any central coordination.
2014-04-02 05:36:05 +00:00
2013-07-24 03:50:43 +00:00
=== Conventions Used in This Book
The following typographical conventions are used in this book:
_Italic_:: Indicates new terms, URLs, email addresses, filenames, and file extensions.
+Constant width+:: Used for program listings, as well as within paragraphs to refer to program elements such as variable or function names, databases, data types, environment variables, statements, and keywords.
**`Constant width bold`**:: Shows commands or other text that should be typed literally by the user.
_++Constant width italic++_:: Shows text that should be replaced with user-supplied values or by values determined by context.
[TIP]
====
This icon signifies a tip, suggestion, or general note.
====
[WARNING]
====
This icon indicates a warning or caution.
====
=== Using Code Examples
This book is here to help you get your job done. In general, if example code is offered with this book, you may use it in your programs and documentation. You do not need to contact us for permission unless youre reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from this book does not require permission. Selling or distributing a CD-ROM of examples from OReilly books does require permission. Answering a question by citing this book and quoting example code does not require permission. Incorporating a significant amount of example code from this book into your products documentation does require permission.
2014-09-25 16:02:07 +00:00
We appreciate, but do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN. For example: “_Mastering Bitcoin_ by Andreas M. Antonopoulos (OReilly). Copyright 2014 Andreas M. Antonopoulos, 978-1449374044.”
Some editions of this books are offered under an open source license, such as CC-BY-NC (creativecommons.org) in which case the terms of that licenses apply.
2013-07-24 03:50:43 +00:00
If you feel your use of code examples falls outside fair use or the permission given above, feel free to contact us at pass:[<email>permissions@oreilly.com</email>].
=== Safari® Books Online
[role = "safarienabled"]
[NOTE]
====
pass:[<ulink role="orm:hideurl:ital" url="http://my.safaribooksonline.com/?portal=oreilly">Safari Books Online</ulink>] is an on-demand digital library that delivers expert pass:[<ulink role="orm:hideurl" url="http://www.safaribooksonline.com/content">content</ulink>] in both book and video form from the world&#8217;s leading authors in technology and business.
====
Technology professionals, software developers, web designers, and business and creative professionals use Safari Books Online as their primary resource for research, problem solving, learning, and certification training.
2014-07-17 04:59:34 +00:00
Safari Books Online offers a range of pass:[<ulink role="orm:hideurl" url="http://www.safaribooksonline.com/subscriptions">product mixes</ulink>] and pricing programs for pass:[<ulink role="orm:hideurl" url="http://www.safaribooksonline.com/organizations-teams">organizations</ulink>], pass:[<ulink role="orm:hideurl" url="http://www.safaribooksonline.com/government">government agencies</ulink>], and pass:[<ulink role="orm:hideurl" url="http://www.safaribooksonline.com/individuals">individuals</ulink>]. Subscribers have access to thousands of books, training videos, and prepublication manuscripts in one fully searchable database from publishers like OReilly Media, Prentice Hall Professional, Addison-Wesley Professional, Microsoft Press, Sams, Que, Peachpit Press, Focal Press, Cisco Press, John Wiley & Sons, Syngress, Morgan Kaufmann, IBM Redbooks, Packt, Adobe Press, FT Press, Apress, Manning, New Riders, McGraw-Hill, Jones & Bartlett, Course Technology, and dozens pass:[<ulink role="orm:hideurl" url="http://www.safaribooksonline.com/publishers">more</ulink>]. For more information about Safari Books Online, please visit us pass:[<ulink role="orm:hideurl" url="http://www.safaribooksonline.com/">online</ulink>].
2013-07-24 03:50:43 +00:00
=== How to Contact Us
Please address comments and questions concerning this book to the publisher:
++++
<simplelist>
<member>OReilly Media, Inc.</member>
<member>1005 Gravenstein Highway North</member>
<member>Sebastopol, CA 95472</member>
<member>800-998-9938 (in the United States or Canada)</member>
<member>707-829-0515 (international or local)</member>
<member>707-829-0104 (fax)</member>
</simplelist>
++++
2014-04-02 05:12:47 +00:00
We have a web page for this book, where we list errata, examples, and any additional information. You can access this page at link:$$http://shop.oreilly.com/product/0636920032281.do$$[].
2013-07-24 03:50:43 +00:00
To comment or ask technical questions about this book, send email to pass:[<email>bookquestions@oreilly.com</email>].
For more information about our books, courses, conferences, and news, see our website at link:$$http://www.oreilly.com$$[].
Find us on Facebook: link:$$http://facebook.com/oreilly$$[]
Follow us on Twitter: link:$$http://twitter.com/oreillymedia$$[]
Watch us on YouTube: link:$$http://www.youtube.com/oreillymedia$$[]
2014-04-02 05:12:47 +00:00
++++
<?hard-pagebreak?>
++++
2013-07-24 03:50:43 +00:00
2014-04-02 05:12:47 +00:00
=== Quick Glossary
2013-10-28 23:19:02 +00:00
This quick glossary contains many of the terms used in relation to bitcoin. These terms are used throughout the book, so bookmark this for a quick reference and clarification.
address (aka public key)::
2013-10-28 23:19:02 +00:00
((("bitcoin address")))
((("address", see="bitcoin address")))
((("public key", see="bitcoin address")))
2014-09-07 15:52:11 +00:00
A bitcoin address looks like +1DSrfJdB2AnWaFNgSbv3MZC2m74996JafV+ - they consist of a string of letters and numbers starting with a "1" (number one). Just like you ask others to send an email to your email address, you would ask others to send you bitcoin to your bitcoin address.
2013-10-28 23:19:02 +00:00
bip::
((("bip")))
Bitcoin Improvement Proposals. A set of proposals that members of the bitcoin community have submitted to improve bitcoin. For example BIP0021 is a proposal to improve the bitcoin URI scheme.
2013-10-28 23:19:02 +00:00
bitcoin::
((("bitcoin")))
The name of the currency unit (the coin), the network and the software
block::
((("block")))
A grouping of transactions, marked with a timestamp, and a fingerprint of the previous block. The block header is hashed to find a proof-of-work, thereby validating the transactions. Valid blocks are added to the main blockchain by network consensus.
blockchain::
((("blockchain")))
A list of validated blocks, each linking to its predecessor all the way to the genesis block.
confirmations::
((("confirmations")))
2014-08-19 15:27:42 +00:00
Once a transaction is included in a block, it has "one confirmation". As soon as _another_ block is mined on the same blockchain, the transaction has two confirmations etc. Six or more confirmations is considered sufficient proof that a transaction cannot be reversed.
2013-10-28 23:19:02 +00:00
difficulty::
((("difficulty")))
A network-wide setting that controls how much computation is required to find a proof-of-work.
difficulty target::
((("target difficulty")))
A difficulty at which all the computation in the network will find blocks approximately every 10 minutes.
difficulty re-targeting::
((("difficulty re-targeting")))
2013-10-28 23:19:02 +00:00
A network-wide re-calculation of the difficulty which occurs once every 2106 blocks and considers the hashing power of the previous 2106 blocks.
fees::
((("fees")))
The sender of a transaction often includes a fee to the network for processing their requested transaction. Most transactions require a minimum fee of 0.5mBTC.
2013-10-28 23:19:02 +00:00
hash::
((("hash")))
A digital fingerprint of some binary input.
genesis block::
((("genesis block")))
The first block in the blockchain, used to initialize the crypto-currency
miner::
((("miner")))
A network node that finds valid proof-of-work for new blocks, by repeated hashing
network::
((("network")))
A peer-to-peer network that propagates transactions and blocks to every bitcoin node on the network.
proof-of-work::
((("proof-of-work")))
A piece of data that requires significant computation to find. In bitcoin, miners must find a numeric solution to the SHA256 algorithm that meets a network wide target, the difficulty target.
reward::
((("reward")))
An amount included in each new block as a reward by the network to the miner who found the proof-of-work solution. It is currently 25BTC per block.
secret key (aka private key)::
((("secret key")))
((("private key", see="secret key")))
The secret number that unlocks bitcoins sent to the corresponding address. A secret key looks like +5J76sF8L5jTtzE96r66Sf8cka9y44wdpJjMwCxR3tzLh3ibVPxh+
2013-10-28 23:19:02 +00:00
transaction::
((("transaction")))
In simple terms, a transfer of bitcoins from one address to another. More precisely, a transaction is a signed data structure expressing a transfer of value. Transactions are transmitted over the bitcoin network, collected by miners and included into blocks, made permanent on the blockchain.
wallet::
((("wallet")))
Software that holds all your bitcoin addresses and secret keys. Use it to send, receive and store your bitcoin.
++++
<?hard-pagebreak?>
++++
=== Acknowledgments
2014-09-25 16:02:07 +00:00
==== Technical Review
==== Early Release Draft (Github Contributions)
2014-05-15 18:04:46 +00:00
Many contributors offered comments, corrections and additions to the early-release draft on Github. Thank you all for your contributions to this book. Notable contributors included the following:
===== (Name - Github ID)
* *Minh T. Nguyen - enderminh: Github contribution editor*
* Ed Eykholt - edeykholt
2014-08-20 15:21:43 +00:00
* Michalis Kargakis - kargakis
* Erik Wahlström - erikwam
* Richard Kiss - richardkiss
2014-08-20 15:21:43 +00:00
* Eric Winchell - winchell
2014-05-15 18:04:46 +00:00
* Sergej Kotliar - ziggamon
* Nagaraj Hubli - nagarajhubli
* ethers
* Alex Waters - alexwaters
* Mihail Russu - MihailRussu
2014-08-20 15:21:43 +00:00
* Ish Ot Jr. - ishotjr
* James Addison - jayaddison
* Nekomata - nekomata-3
* Simon de la Rouviere - simondlr
* Chapman Shoop - belovachap
* Holger Schinzel - schinzelh
2014-08-20 15:21:43 +00:00
* effectsToCause - vericoin
* Stephan Oeste - Emzy
* Joe Bauers - joebauers
* Jason Bisterfeldt - jbisterfeldt
2014-08-20 15:21:43 +00:00
* Ed Leafe - EdLeafe