You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I do not yet understand .secret and .public_key.format():
privkey = ECPrivateKey()
wif = bytes_to_wif(privkey.secret, compressed=True)
z = public_key_to_address(privkey.public_key.format())
Is the first one (that's being used for generating the WIF) some form of Private Key and the second one some form of Public Key? When I print them I get an odd string with slashes (doesn't look like keys at all).
Why is compressed True? Does it have to be to generate a valid Private Key?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I do not yet understand .secret and .public_key.format():
Is the first one (that's being used for generating the WIF) some form of Private Key and the second one some form of Public Key? When I print them I get an odd string with slashes (doesn't look like keys at all).
Why is compressed True? Does it have to be to generate a valid Private Key?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions