1
0
mirror of https://github.com/bitcoinbook/bitcoinbook synced 2024-12-26 00:18:11 +00:00

Addressing errata 152498

This commit is contained in:
Andreas M. Antonopoulos 2015-03-03 11:57:53 -05:00
parent 9ad7c62ca7
commit 6040e26579

View File

@ -24,7 +24,7 @@ wif_compressed_private_key = bitcoin.encode_privkey(
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
public_key = bitcoin.base10_multiply(bitcoin.G, decoded_private_key)
public_key = bitcoin.fast_multiply(bitcoin.G, decoded_private_key)
print "Public Key (x,y) coordinates is:", public_key
# Encode as hex, prefix 04