programmingbitcoin icon indicating copy to clipboard operation
programmingbitcoin copied to clipboard

Repository for the book

Results 113 programmingbitcoin issues
Sort by recently updated
recently updated
newest added

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: ![readme-formatting-before](https://user-images.githubusercontent.com/680789/61812667-cd567200-adf8-11e9-95a4-6a45c567b398.png) After: ![readme-formatting-after](https://user-images.githubusercontent.com/680789/61812679-d5aead00-adf8-11e9-84ce-a48b74bef6cb.png)

This diff fixes a straightforward typo: `FiniteField` should be `FieldElement` instead.