original_string: public function extractPublicKey($privateKey, $privateKeyPassword)
      {
          try {
              return CryptoVirgilKeyPair::extractPublicKey($privateKey, $privateKeyPassword);
          } catch (Exception $exception) {
              throw new PublicKeyExtractionException($exception->getMessage(), $exception->getCode());
          }
      }
code: public function extractPublicKey($privateKey, $privateKeyPassword)
      {
          try {
              return CryptoVirgilKeyPair::extractPublicKey($privateKey, $privateKeyPassword);
          } catch (Exception $exception) {
              throw new PublicKeyExtractionException($exception->getMessage(), $exception->getCode());
          }
      }
code_tokens: public function extractPublicKey ( $ privateKey , $ privateKeyPassword ) { try { return CryptoVirgilKeyPair :: extractPublicKey ( $ privateKey , $ privateKeyPassword ) ; } catch ( Exception $ exception ) { throw new PublicKeyExtractionException ( $ exception -> getMessage ( ) , $ exception -> getCode ( ) ) ; } }
docstring: Extracts public key from a private key.
  
  @param string $privateKey
  @param string $privateKeyPassword
  
  @return string
  
  @throws PublicKeyExtractionException
docstring_tokens: Extracts public key from a private key .