A private key is a secret piece of data that only the user knows and is used to access their account or make digital transactions. It is used to generate signatures that can prove ownership or identity. A public key is a cryptographic code used to receive, encrypt and decrypt messages and to make digital transactions. The public key is also known as the address of the user and is available publicly for everyone to see.