1
0
mirror of https://github.com/bitcoinbook/bitcoinbook synced 2024-11-25 09:28:25 +00:00
Commit Graph

56 Commits

Author SHA1 Message Date
Andreas M. Antonopoulos
7ed95b283b Errata 166266 2018-03-14 10:23:46 -06:00
MaloneGod
b01acc076b
correct an error line 24 'wif' to 'wif_compressed' 2018-02-08 20:42:50 +08:00
cclauss
ecd13d3523 whitespace fixes to placate flake8 2018-02-03 01:33:46 +01:00
Andreas M. Antonopoulos
b7d97a5e80
Use of print function from Python 3 requires () 2018-02-02 16:29:36 -06:00
Andreas M. Antonopoulos
9dacbb40e3 Merge remote-tracking branch 'github/develop' into second_edition 2018-02-02 15:08:14 -06:00
Andreas M. Antonopoulos
cbc23caf8a
Merge pull request #431 from cjjojoba/cjjojoba-patch-1
Update ec-math.py
2018-02-02 12:35:19 -08:00
ZhaoChunsheng
5460eb7a8d
Update key-to-address-ecc-example.py
The code is very possible to miss a leading '0'.
E.g:
Private Key (hex) is: 57c003d31cca32f79a22e70334fff37875617e89c04d2746b5efc22067ccb8fd
Before: Compressed Public Key (hex) is: 03 8f0de2360796ae0fe17f1a2b0be30af6fb45eccc4a1c7afb5ebea21d041b6e0
After: Compressed Public Key (hex) is: 03 08f0de2360796ae0fe17f1a2b0be30af6fb45eccc4a1c7afb5ebea21d041b6e0

The bug is in the pybitcointools, but it is not updated, we can only repair it ourselves.
2018-01-27 21:56:25 +08:00
Cihat Imamoglu
fc84c40e8b
Update ec-math.py
* Add a missing word "number"
* Convert `& 1` into `% 2 == 0` for clarity
2017-12-10 14:44:04 +00:00
Manjeet Singh Bhatia
22e17ffd3c
Update hash_example.py
As input and hash are inbuilt functions, so I'd suggest using other names for variables.
here is output from python interpreter.

>>> hash
<built-in function hash>
>>> input
<built-in function input>
2017-12-09 22:05:50 -08:00
Will Binns
d5e2316438
Merge pull request #372 from cclauss/patch-3
from __future__ import print_function
2017-11-18 07:39:50 -06:00
MarcoFalke
fa6ee0557e Rework ch03 for most recent version of Bitcoin Core 2017-10-19 22:35:15 +02:00
cclauss
b8a0cddb9f from __future__ import print_function 2017-09-06 07:23:23 +02:00
cclauss
a47fa095cf from __future__ import print_function
`from __future__ import print_function` to bring the print function from Python 3 into Python 2.6 and 2.7.

Properly deals with comma separated values in print() function.
2017-09-06 06:44:52 +02:00
Will Binns
64f851da26 Merge pull request #367 from cclauss/patch-3
Trailing L not needed in Py2 & Syntax Error in Py3
2017-09-05 20:28:22 -06:00
cclauss
14138a859f Trailing L not needed in Py2 & Syntax Error in Py3
Also print() function, ternary if, avoid backslashes.
2017-08-24 19:07:00 +02:00
cclauss
df302e9fe5 long() and print() for Python 3 2017-08-24 18:44:48 +02:00
cclauss
35fef9a94f long(), print(), xrange() for Python 3
Also remove trailing whitespace
2017-08-24 18:37:02 +02:00
cclauss
3c0b24edd7 print() function for Python 3 2017-08-24 18:29:06 +02:00
cclauss
cb1053f905 print() function for Python 3
Also ternary if
2017-08-24 18:27:27 +02:00
cclauss
bdc3743e30 print() and range() for Python 3 2017-08-24 18:22:28 +02:00
cclauss
06ecaf9168 print() function for Python 3 2017-08-24 18:20:22 +02:00
cclauss
5f3a3d4469 print() function for Python 3 2017-08-24 18:14:02 +02:00
cclauss
f396920189 from __future__ import print_function
Support print('xyz', end='') on Python 2
2017-07-23 10:21:30 +02:00
Andreas M. Antonopoulos
d930042fc6 code fixes to update to libbitcoin v3 2017-07-18 12:07:31 +08:00
Andreas M. Antonopoulos
97496a50fb fixes to code example 2017-07-18 11:37:12 +08:00
Nick Adams
c05329d9cf PR edits through Ch 5 2017-05-09 16:16:06 -04:00
Andreas M. Antonopoulos
611f6514a2 Updated BIP appendix 2017-04-23 13:07:48 +02:00
Andreas M. Antonopoulos
572667c69c Merge pull request #177 from kristjanr/develop
Fix unorderable types error&make code more uniform
2016-12-16 16:37:05 +02:00
Andreas M. Antonopoulos
54de3ac14d transaction fees 2016-12-12 15:00:27 +02:00
Will Binns
3e863bcf9c
code/satoshi-words: save_script, use const. 2016-10-16 12:10:05 -06:00
Andreas M. Antonopoulos
4d15f0aad3 ch03 rpc API, code examples, libraries 2016-02-04 20:52:15 -06:00
Kristjan Roosild
980363b6e1 Fix unorderable types error&make code more uniform 2015-07-29 15:07:36 +03:00
Andreas M. Antonopoulos
6040e26579 Addressing errata 152498 2015-03-03 11:57:53 -05:00
Andreas M. Antonopoulos
b841235043 Addressing errate 151301 2015-02-23 18:09:27 -05:00
Andreas M. Antonopoulos
3a7b435d85 removed time module as it is no longer used in this example 2015-02-23 17:54:19 -05:00
Andreas M. Antonopoulos
cd210e356a Addressing errata 151300 2015-02-23 17:53:30 -05:00
Amir Taaki
e827ff5c86 delete uneeded code, replace with bc::hash_literal as per William Swanson (s_tec)'s comment. 2015-01-21 22:29:43 +01:00
Amir Taaki
d44f6aaf92 switch to decode_base16() per William Swanson (s_tec)'s comment. 2015-01-21 22:26:26 +01:00
Amir Taaki
406a3303bb seed random number generator in ec-math.py 2015-01-18 21:21:22 +01:00
Amir Taaki
f7804da5db Upgrade libbitcoin 1.0 code samples to libbitcoin 2.0 2015-01-18 21:19:57 +01:00
Andreas M. Antonopoulos
e51399af22 cleanup alt library code and examples, move some to appendix 2014-09-28 14:36:24 -04:00
Andreas M. Antonopoulos
aa332a7008 code examples 2014-09-28 11:52:50 -04:00
Andreas M. Antonopoulos
8235b51ca8 review comments from Allyson MacDonald 2014-09-25 12:02:07 -04:00
Andreas M. Antonopoulos
e8bb0e7dae Merge branch 'code_samples' into develop 2014-09-07 11:53:18 -04:00
Andreas M. Antonopoulos
08055ea163 get_utxo and select_utxo 2014-08-29 12:35:42 -04:00
Andreas M. Antonopoulos
8828882153 added max_money.py code example 2014-08-29 10:51:02 -04:00
Cody Scott
e970ea97ee Fixing long lines that are cut off in PDF 2014-08-27 16:08:43 -04:00
Michalis Kargakis
db9d1352b1 Add websocket example 2014-08-07 15:01:22 +03:00
Michalis Kargakis
5da0b85ced Extract info from pk script example
Code example where we extract information from a public key script. Use
go run [filename].go to run every go example instead of go build.
2014-07-31 20:21:26 +03:00
Michalis Kargakis
004c015db2 Handle error when decoding address 2014-07-26 15:58:56 +03:00