
Enjoy fast, free delivery, exclusive deals, and award-winning movies & TV shows with Prime
Try Prime
and start saving today with fast, free delivery
Amazon Prime includes:
Fast, FREE Delivery is available to Prime members. To join, select "Try Amazon Prime and start saving today with Fast, FREE Delivery" below the Add to Cart button.
Amazon Prime members enjoy:- Cardmembers earn 5% Back at Amazon.com with a Prime Credit Card.
- Unlimited Free Two-Day Delivery
- Streaming of thousands of movies and TV shows with limited ads on Prime Video.
- A Kindle book to borrow for free each month - with no due dates
- Listen to over 2 million songs and hundreds of playlists
- Unlimited photo storage with anywhere access
Important: Your credit card will NOT be charged when you start your free trial or if you cancel during the trial period. If you're happy with Amazon Prime, do nothing. At the end of the free trial, your membership will automatically upgrade to a monthly membership.
Buy new:
-55% $35.73$35.73
Ships from: Amazon.com Sold by: Amazon.com
Save with Used - Acceptable
$30.50$30.50
Ships from: Amazon Sold by: Vang's All Sales

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Programming Bitcoin: Learn How to Program Bitcoin from Scratch 1st Edition
Purchase options and add-ons
Dive into Bitcoin technology with this hands-on guide from one of the leading teachers on Bitcoin and Bitcoin programming. Author Jimmy Song shows Python programmers and developers how to program a Bitcoin library from scratch. You’ll learn how to work with the basics, including the math, blocks, network, and transactions behind this popular cryptocurrency and its blockchain payment system.
By the end of the book, you'll understand how this cryptocurrency works under the hood by coding all the components necessary for a Bitcoin library. Learn how to create transactions, get the data you need from peers, and send transactions over the network. Whether you’re exploring Bitcoin applications for your company or considering a new career path, this practical book will get you started.
- Parse, validate, and create bitcoin transactions
- Learn Script, the smart contract language behind Bitcoin
- Do exercises in each chapter to build a Bitcoin library from scratch
- Understand how proof-of-work secures the blockchain
- Program Bitcoin using Python 3
- Understand how simplified payment verification and light wallets work
- Work with public-key cryptography and cryptographic primitives
- ISBN-101492031496
- ISBN-13978-1492031499
- Edition1st
- PublisherO'Reilly Media
- Publication dateMarch 26, 2019
- LanguageEnglish
- Dimensions7 x 0.6 x 9.1 inches
- Print length319 pages
Discover the latest buzz-worthy books, from mysteries and romance to humor and nonfiction. Explore more
Frequently bought together

Customers who viewed this item also viewed
From the brand

-
Cryptocurrency & Blockchain
-
Explore finance resources
-
More from O'Reilly
-
Sharing the knowledge of experts
O'Reilly's mission is to change the world by sharing the knowledge of innovators. For over 40 years, we've inspired companies and individuals to do new things (and do them better) by providing the skills and understanding that are necessary for success.
Our customers are hungry to build the innovations that propel the world forward. And we help them do just that.
Editorial Reviews
Review
--Ken Liu
a winner of the Nebula, Hugo, and World Fantasy awards. His science fiction story about the blockchain, Byzantine Empathy, was originally published by MIT Press.
About the Author
Product details
- Publisher : O'Reilly Media; 1st edition (March 26, 2019)
- Language : English
- Paperback : 319 pages
- ISBN-10 : 1492031496
- ISBN-13 : 978-1492031499
- Item Weight : 1.1 pounds
- Dimensions : 7 x 0.6 x 9.1 inches
- Best Sellers Rank: #128,937 in Books (See Top 100 in Books)
- #24 in Computer Cryptography
- #46 in Bitcoin & Cryptocurrencies
- #160 in E-Commerce (Books)
- Customer Reviews:
About the author

Jimmy Song is a Bitcoin Educator, Developer and Entrepreneur. Jimmy is the author of Programming Bitcoin and The Little Bitcoin Book. In addition, he’s a Bitcoin Fellow at Blockchain Capital, a lecturer at the University of Texas, a speaker at Bitcoin conferences, an avid open source contributor, mostly in Bitcoin, and the instructor of a 2-day workshop for programmers, Programming Blockchain.
Jimmy once bought about $100 worth of beef jerky with Bitcoin back in 2013 for 0.25 BTC. Good beef jerky, but not THAT good. That's one major regret. He also got scammed out of 2.5 BTC when he bought a Alitin Mint Adam Smith 2 BTC coin. Those guys had a copy of the private key and the bitcoins on the coin got stolen a few years ago. Another major regret.
Jimmy's goal is to bring sound money to the world. Bitcoin is the one chance at defunding and decentralizing the power of the oligarchy. Making more developers for the ecosystem is his passion.
PGP Fingerprint: C1D7 97BE 7D10 5291 228C D70C FAA6 17E3 2679 E455
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonTop reviews from the United States
There was a problem filtering reviews. Please reload the page.
- Reviewed in the United States on March 31, 2022Excellent, in-depth, technical overview of how bitcoin works under the hood. This book is a hands-on project book that will take you through building a proof-of-concept bitcoin library, step-by-step. The library you'll build can parse and validate transactions, verify blocks, interact with other nodes on the bitcoin network and more.
Like other reviews mentioned, this is an advance level book. It's not a book for folks new to bitcoin or folks without programming experience. I also agree that reading Mastering Bitcoin first will make this book a much better experience because you'll know where each of the modules you're building fits in the bigger picture.
The author has set up the hands-on project as Jupyter Notebooks which makes it really nice to code along the text. In addition, he goes into more details on the math behind elliptic curve cryptography which I appreciated. Overall, highly recommended for people that want to remove the veil and see how bitcoin works to the smallest detail.
- Reviewed in the United States on February 22, 2019I took Jimmy's "Programming Blockchain" bootcamp and witnessed first hand how much Jimmy prepared for his teaching material. His material is amazingly in-depth and comprehensive. From finite fields math to elliptic curves to how wallets and transactions are created, to the different types of transaction formats and how to create them yourself, to more advanced topics like SegWit and Lightning. This book is the result of Jimmy's many hours of teaching. I can't recommend this book enough to anyone who seriously wants to get their hands on Bitcoin scripting or learn how Bitcoin works under the hood.
Be warned, it is not a light reading and it's best to work out all the exercises yourself (there are plenty, enough for you to be able to create your own Bitcoin wallet software at the end). IMO this book is the equivalent of one maybe two graduate level courses if it's taught in universities. Well worth the investment.
- Reviewed in the United States on May 19, 2019I was coming from a background in php and javascript and didn't know any python. Learned some rudimentary python just so I could go through the book. Just enough to understand the syntax and the inner workings of python.
Not good enough at programming to have taken full advantage of the book but it really helped me a lot in understanding the math behind Bitcoin. From the very basics of cryptography to understanding address generation, Script, transaction validation, block validation, and even some networking.
A must read for anyone interested in understanding Bitcoin at a more technical level, rather than just taking the word of developers. For me it was great first step towards financial Bitcoin sovereignty.
- Reviewed in the United States on June 11, 2019While the book's cost was surprisingly high compared to the excellent volumes by Andreas and Safedean, the facts that (1) color is used extensively and very tastefully and (2) the paper quality is superior in this text justifies the additional cost for me.
- Reviewed in the United States on March 17, 2019An amazing book. If you really want to understand Bitcoin, read Mastering Bitcoin first, then work your way through this book. Although Jimmy recommends intermediate level Python programming skills, if you have any coding background, you should be able to zip through a quick Python primer (like SoloLearn's) and be pretty well prepped to dig in (this is what I did, and was fine).
Highest recommendation
- Reviewed in the United States on May 2, 2019Great book, easy to navigate for a beginner, I would definitely recommend this to someone getting into bitcoin as a good first book.
- Reviewed in the United States on October 19, 2023This book covers everything that you need to know about creating Bitcoin from scratch. However, this book tends to be a long read and it's best for someone who is already a pretty decent computer programmer. It's not for the novice or someone who just got started.
- Reviewed in the United States on May 8, 2019TL;DR Buy the paperback, it’s very helpful to have a physical book in front of you to reference as you’re looking at your computer screen trying to write code.
Jimmy introduces the reader to Bitcoin by way of its most foundational building blocks: math and cryptography (both surprisingly accessible, not much fancy math at all). Along with example Python code throughout the book, he also gives code exercises to reinforce your learning (as well as their answers, which are helpful when you’re stuck). The code is also pretty accessible for non-coders (it definitely helps to have some working knowledge of programming though). Also, the Python library is on his GitHub for quick reference purposes (trust me, you’ll want to use this).
I spent quite a bit of time digging into each chapter’s content, but for many topics you can choose to go as deep as you want (although some chapters are crucial to the ones that follow it, like the transactions chapter). I was quite impressed with how intuitive most of his analogies and explanations were, so they lend themselves to a lighter read if you want to explore a few select chapters without reading the book from cover to cover.
Now, the unexpected and massive benefits of having the physical paperback in from of you as you look at the code on your computer:
- At certain points you’ll probably have a few browser tabs open simultaneously for referencing the codebase on Jimmy’s GitHub. I did this often, and having the paperback in front of me was especially helpful for the topics that combined concepts from different chapters with code from different files. It’s much easier to keep track of everything if the book is in front of you.
- You can write notes directly in the book (I took notes on a Trello board, and you can do both for quick reference)
- Your eyes will thank you for not staring uninterrupted at the computer screen.
The content is dense and I struggled through a lot of it, but understanding the elegantly designed system of Bitcoin is now something I’ll always have a deep appreciation for.
Top reviews from other countries
- PauloReviewed in Canada on April 19, 2019
5.0 out of 5 stars The quality for delivery is great
Good so far. It is brand new and nice wrapped.
One person found this helpfulReport -
Francisco Javier Segura SaviñonReviewed in Mexico on December 29, 2019
5.0 out of 5 stars Increible. No lo leas sin saber Python 3 o haber leido antes Grokking Bitcoin
Al principio esta muy pesado y porque la criptografía de curva elíptica es muy pesada, sin embargo empieza a tomar sentido a partir del capítulo 3, donde une todas las piezas encontradas anteriormente. Los demas capitulos son geniales, en especial en donde haces una transacción en la testnet y tu mismo la lanzas a la red. 10/10.
- Alexandre AllegroReviewed in Germany on February 1, 2023
5.0 out of 5 stars Great book if you want to dive into the technical parts of bitcoin
Awesome book, great explanations. But not for the not-tech folks. It's very technical, be warned.
- BrunoReviewed in Brazil on April 4, 2019
5.0 out of 5 stars Fantastic content and approach
I attended to Jimmy's classes with not much confidence since math is not really my thing. But the way he approaches the subject makes it feasible even for people like me. I really like the small steps to build a much bigger picture. All of the sudden you're creating BTC transactions and validating them with your own code. Awesome.
Reading the books allowed me to remember things I did not catch / took note during the classes.
One person found this helpfulReport - vizeet srivastavaReviewed in India on March 9, 2020
5.0 out of 5 stars Best bitcoin book for provrammer
Best book to learn bitcoin if you are a programmer...