Check if the recipient's public key to which the transaction is to be made is a valid public key or not.