I know there are ways to get public key from private key using other then web3js tools (EthereumJS: How to get public key from private key and https://kobl.one/blog/create-full-ethereum-keypair-and-address/) Also, there is a way to get public key from address having a transaction sent from that address – Get public key of any ethereum account
I am looking for a way to get public key using web3js. Is there a way to do it?
getPublicKey()
function.