get_public_from_private

static Key.get_public_from_private(wif) → str[source]

Get the prefixed public key for a given WIF private key.

>>> Key.get_public_from_private('5Jq19TeeVmGrBFnu32oxfxQMiipnSCKmwW7fZGUVLAoqsKJ9JwP')
'GLS7qHue1h2eWV8M7WKtb6F8dbhKfEFvLVy9JqvSTHBBEM5JMdsmh'
Parameters

wif (str) – A string private key in WIF format

Return str pubkey

The prefixed public key generated from the given wif