get_public_from_secret¶
-
static
Key.
get_public_from_secret
(secret: bytes) → str[source]¶ Converts an ECDSA formatted private key into it’s matching public key with prefix
>>> wif = '5Jq19TeeVmGrBFnu32oxfxQMiipnSCKmwW7fZGUVLAoqsKJ9JwP' >>> secret = unhexlify(base58CheckDecode(str(wif))) >>> Key.get_public_from_secret(secret) 'GLS7qHue1h2eWV8M7WKtb6F8dbhKfEFvLVy9JqvSTHBBEM5JMdsmh'