This question already has an answer here:
I am reading about cryptography in Bitcoin. Bitcoin adress is created by applying cryptographic hash function to public key of the wallet. I know that this function is a trap door function but what are possible vulnerabilities if the public key could be derived from the address? Public keys are used anyway when authenticating the creator of the transaction (signer of the transaction).