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

`len(bin(16))` is 7, not 6. So if we want to get to `4`, we need to have: `len(bin(total))-3` and not: `len(bin(total))-2`

Hi. I think that cell [9] (corresponding to pg. 141, Chapter 7) contains a mistake. The transaction that is deal with in the code is 'transaction' but I think that...

Figure 3-2 should be a plot of the secp256k1 curve in F_103, it appears to be plotted over F_199. Attached is the plot over F103 ![secp256k1overF103](https://user-images.githubusercontent.com/77066666/105779599-b0928180-5f3c-11eb-8e3c-d832b6617ffc.png)

Test for exercise 9 in chapter 9 tests for block target and difficulty. It should test for block target only. Exercise for difficulty is exercise 10. This line should be...

According to https://en.bitcoin.it/wiki/Script#Stack the OP_2ROT operation should move the 5th and 6th last elements to the top of the stack, not duplicate them. Fixes #139.

Hi Jimmy, You introduce the modulo operator on the LHS of the equation which I don't believe is correct. Since we are interested in the elements in the left set...

The following line should be removed: https://github.com/jimmysong/programmingbitcoin/blob/2a6558263923214320bbdeb10826464fe24ef540/code-ch09/block.py#L153 The reason is that in `Chapter9.ipynb` in Exercise 9 one first implements the method `bits_to_target(bits)` and only then in Exercise 10 the method...

Change flag bit from 1 to 0 in chapter 11.

The boxes on the bottom layer of CH11 Figure 1. _Merkle Tree_ should be 'Hash' followed by 'Tx A', 'Tx B', 'Tx C', 'Tx D'. Right now it has 'Hash...