Mastering Bitcoin by Andreas M. Antonopoulos
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Andreas M. Antonopoulos e3695afbf6
Merge pull request #742 from syncom/syncom/ch07-2-of-5-multisig
6 days ago
code Update 1 year ago
images Drop references to Colored Coins 8 months ago
theme Edited theme/pdf/pdf.css with Atlas code editor 3 years ago
tools Adding the figure renaming report 3 years ago
.gitignore Ignore _build directory for bookbuilder 6 months ago
.travis.yml Update .travis.yml 3 years ago
LICENSE New license for the book, as negotiated with the publisher O'Reilly media. Under CC-BY-SA, translations and other derivatives are now permitted 5 years ago readme: Update link to second edition, third print 6 months ago
appdx-bips.asciidoc ch04: Drop reference to BIP-38 6 months ago
appdx-bitcoinwhitepaper.asciidoc Revert accidental s/=/==/ in the Bitcoin Whitepaper appendix. 2 years ago
appdx-bitcore.asciidoc appdx-bitcore: Drop reference to playground 6 months ago
appdx-bx.asciidoc Remove segwit appendix from book 3 years ago
appdx-pycoin.asciidoc Fix typos 1 year ago
appdx-scriptops.asciidoc The workaround requires an extra element on the stack; OP_NOP does nothing 7 months ago
atlas.json Updated atlas.json 2 years ago
author_bio.html Edited author_bio.html with Atlas code editor 3 years ago
book.asciidoc book: Fix broken links 8 months ago
ch01.asciidoc Wording: possible but pointless (introduction) 1 week ago
ch02.asciidoc ch.02: Let us not be too assuming about the gender of "each miner" 6 days ago
ch03.asciidoc 450 MiB is now the default cache size 1 week ago
ch04.asciidoc Merge pull request #733 from hebasto/210113-trap 1 week ago
ch05.asciidoc Merge pull request #572 from mmartinbar/develop 9 months ago
ch06.asciidoc ch06: Remove link to strange transactions (n/a) 6 months ago
ch07.asciidoc ch07: Typo fixes 1 week ago
ch08.asciidoc ch08: Update number of DNS seeds 1 week ago
ch09.asciidoc ch01/ch09/ch10: Standardize pluralization of 'bitcoin' 6 months ago
ch10.asciidoc ch10: make it clear that hard fork is in bitcoin 1 week ago
ch11.asciidoc Edited ch11.asciidoc with Atlas code editor 3 years ago
ch12.asciidoc ch12: Drop reference to 6 months ago
colo.html Merge pull request #557 from oboukli/colophon-updates 1 year ago
copyright.html copyright: Add Will Binns as GitHub Editor 8 months ago
cover.html Adding theme directory, boilerplate files, and readme to new repo 5 years ago
dedication.html Edited dedication.html with Atlas code editor 3 years ago
github_contrib.asciidoc github_contrib: Add contributor, 'Dan Raviv' 6 months ago
glossary.asciidoc Update block reward due to halving. 6 months ago
ix.html Adding theme directory, boilerplate files, and readme to new repo 5 years ago
praise.html replacing asciidoc praise page with html praise page 5 years ago
preface.asciidoc Github contributions moved to separated file 6 months ago
second_edition_changes.asciidoc Completed changelog 3 years ago
titlepage.html AU QC1 edits 3 years ago
toc.html Edited toc.html with Atlas code editor 4 years ago

Code Examples: travis_ci

Mastering Bitcoin

Mastering Bitcoin is a book for developers, although the first two chapters cover bitcoin at a level that is also approachable to non-programmers. Anyone with a basic understanding of technology can read the first two chapters to get a great understanding of bitcoin.

This repository contains the complete first edition, second print, published in December 2014, and the complete second edition, third print, published in March 2018, as published by O’Reilly Media in paperback and ebook formats.

Issues, Errors, Comments, Contributions

If you know how to make a pull request to contribute a fix, please write the correction and use a pull request to submit it for consideration against the develop branch. If you are making several changes, please use a separate commit for each to make it easier to cherry-pick or resolve conflicts. Otherwise, please submit an issue, explaining the error or comment. If you would like to contribute extensive changes or new material, please coordinate with the author first; contact information can be found on his website:

Reading this book

To read this book, see book.asciidoc. Click on each of the chapters to read in your browser. Other parties may choose to release PDFs of the book online.



“Mastering Bitcoin (Second Edition, Second Print): Programming the Open Blockchain” is now available in paperback and ebook formats by many booksellers worldwide:

Mastering Bitcoin (First Edition Second Print) is also published in Japanese, Korean, and Chinese (Simplified) by publishers in the respective countries.

Mastering Bitcoin (Open Edition), based on the First Edition, has been translated by volunteers into more than a dozen languages. Translations are available for free under CC-BY-SA license at:


The book’s source code, found in this repository, is kept synchronized with the print and ebook editions.

Mastering Bitcoin - First Edition

The tags Edition1Print1, Edition1Print2 correspond to the two existing prints of Mastering Bitcoin (First Edition) as published by O’Reilly Media.

Creative Commons License
Mastering Bitcoin - First Edition by Andreas M. Antonopoulos LLC is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

This “Free Culture” compliant license was approved by my publisher O’Reilly Media (, who understands the value of open source. O’Reilly Media is not just the world’s best publisher of technical books, but is also a strong supporter of this open culture and the sharing of knowledge.

Thank you O’Reilly Media!

Mastering Bitcoin - Second Edition

The tags, second_edition_print_1 and second_edition_print2, correspond to the first (June 8th, 2017) and second (July 20th, 2017) print of Mastering Bitcoin (Second Edition), as published by O’Reilly Media.

Creative Commons License
Mastering Bitcoin - Second Edition by Andreas M. Antonopoulos LLC is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.


If you are interested in translating this book, please join our team of volunteers at:

Free copies of “Mastering Bitcoin Open Edition,” translated in many languages, can be downloaded from: