1
0
mirror of https://github.com/bitcoinbook/bitcoinbook synced 2024-11-23 08:38:10 +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
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
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
satoshi-words.cpp
select-utxo.py
vanity-miner.cpp
websocket-example.go