In the blockchain, public keys are required for identification and private keys are used for encryption and authentication purposes.
The sender can send a message using the public key of the receiver and the receiver can decrypt the message or the transaction using a private key. By using both keys, communication or transaction is kept safe and tamper-proof.