public function extractPublicKey($privateKey, $privateKeyPassword)
    {
        try {
            return CryptoVirgilKeyPair::extractPublicKey($privateKey, $privateKeyPassword);
        } catch (Exception $exception) {
            throw new PublicKeyExtractionException($exception->getMessage(), $exception->getCode());
        }
    }
public function extractPublicKey($privateKey, $privateKeyPassword)
    {
        try {
            return CryptoVirgilKeyPair::extractPublicKey($privateKey, $privateKeyPassword);
        } catch (Exception $exception) {
            throw new PublicKeyExtractionException($exception->getMessage(), $exception->getCode());
        }
    }
public function extractPublicKey ( $ privateKey , $ privateKeyPassword ) { try { return CryptoVirgilKeyPair :: extractPublicKey ( $ privateKey , $ privateKeyPassword ) ; } catch ( Exception $ exception ) { throw new PublicKeyExtractionException ( $ exception -> getMessage ( ) , $ exception -> getCode ( ) ) ; } }
Extracts public key from a private key.

@param string $privateKey
@param string $privateKeyPassword

@return string

@throws PublicKeyExtractionException
Extracts public key from a private key .