From b01acc076b0bbe318e1e70410b5a162d6dfa1342 Mon Sep 17 00:00:00 2001 From: MaloneGod <809829352@qq.com> Date: Thu, 8 Feb 2018 20:42:50 +0800 Subject: [PATCH] correct an error line 24 'wif' to 'wif_compressed' --- code/key-to-address-ecc-example.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/key-to-address-ecc-example.py b/code/key-to-address-ecc-example.py index 72f958a1..8e8e93a1 100644 --- a/code/key-to-address-ecc-example.py +++ b/code/key-to-address-ecc-example.py @@ -21,7 +21,7 @@ print("Private Key Compressed (hex) is: ", compressed_private_key) # Generate a WIF format from the compressed private key (WIF-compressed) wif_compressed_private_key = bitcoin.encode_privkey( - bitcoin.decode_privkey(compressed_private_key, 'hex'), 'wif') + bitcoin.decode_privkey(compressed_private_key, 'hex'), 'wif_compressed') print("Private Key (WIF-Compressed) is: ", wif_compressed_private_key) # Multiply the EC generator point G with the private key to get a public key point