1
0
mirror of https://github.com/bitcoinbook/bitcoinbook synced 2025-04-07 02:06:15 +00:00
bitcoinbook/code
Fan c6fa743597
Update key-to-address-ecc-example.py
If line#24 use 'wif_compressed', it will produce a wrong Key (WIF-Compressed) started with 2.

So there should be 'wif', unless :
wif_compressed_private_key = bitcoin.encode_privkey(
    bitcoin.decode_privkey(private_key, 'hex'), 'wif_compressed')
This is also right. 
However, use the 'compressed_private_key' and 'wif_compressed' is wrong.
2019-12-04 11:39:59 +08:00
..
addr.cpp
bip-table.py
ec-math.py Update ec-math.py 2019-01-01 16:58:31 +00:00
extract-from-pk-script.go
get-utxo.py
hash_example.py
key-to-address-ecc-example.py Update key-to-address-ecc-example.py 2019-12-04 11:39:59 +08:00
max_money.py max_money.py: use variable start_block_reward (eliminate magic number) 2018-05-19 09:10:18 -04:00
merkle.cpp
p2wpkh.js
pay-to-addr-script.go
proof-of-work-example.py
pycoin_example.py
rpc_block.py
rpc_example.py
rpc_transaction.py ch03 rpc API, code examples, libraries 2016-02-04 20:52:15 -06:00
satoshi-words.cpp
select-utxo.py
vanity-miner.cpp
websocket-example.go