August 2018
Intermediate to advanced
90 pages
1h 57m
English
With the private key, a public key is generated. Perform this step by passing the private key that was generated to the privtopub function, as shown here:
# Generate Public Keymy_public_key = privtopub(my_private_key)print("Public Key: %s\n" % my_public_key)
Now, with the public key, generate a bitcoin address. Do this by passing the public key that is generated to the pubtoaddr function:
# Create a bitcoin addressmy_bitcoin_address = pubtoaddr(my_public_key)print("Bitcoin Address: %s\n" % my_bitcoin_address)
The following screenshot shows the private key, public key and bitcoin address that is generated:
Read now
Unlock full access