From 989cb006f1113e83e6a5b5bd200f061bb49a322f Mon Sep 17 00:00:00 2001 From: Samir Sadek Date: Wed, 7 Apr 2021 16:43:45 +0200 Subject: [PATCH] remove reference to the old library bitcoin for the new library cryptos --- 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 1ce9389a..e49f51e8 100644 --- a/code/key-to-address-ecc-example.py +++ b/code/key-to-address-ecc-example.py @@ -20,7 +20,7 @@ compressed_private_key = private_key + '01' 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( +wif_compressed_private_key = cryptos.encode_privkey( cryptos.decode_privkey(compressed_private_key, 'hex_compressed'), 'wif_compressed') print("Private Key (WIF-Compressed) is: ", wif_compressed_private_key)