programmingbitcoin
programmingbitcoin copied to clipboard
Repository for the book
A mistake in the code leads to an incorrect answer for the exercise. The first block is used as the last block and the last block is used as the...
In the parse_segwit method the code line: > tx_in.witness = items which means the TxIn class should have this "witness" parameter also in its init procedure. How can this be...
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32 Adding a valid point to itself three times should still be a point on the curve....
This removes an assertion about `difficulty` in `test_target`. Implementing `difficulty` is the subject of Exercise 10. The same assertion is made a couple line lower, in `test_difficulty`.
Since the code for `bits_to_target` is in `helper.py`, an extra `reload` is warranted once code changes are made.
Several typos: - links to helper module are wrong - reload command takes in modules, not the test class - extraneous dots in the test running command
This branch contains a few minor fixes to the chapter 7 code: * a fix for the second cell: it needs to parse on testnet instead of mainnet (a 404/crash...
The current formatting for the setup instructions are a little difficult to read Before:  After: 
This diff fixes a straightforward typo: `FiniteField` should be `FieldElement` instead.
Simple typo fix in Chapter 2.