Describe the concept of public and private key with your own words.
The public and private key cryptography is in some ways similar to that of hash functions in that it should be practically impossible to reverse engineer the public key that is derived from the private key. The difference from a regular hash function is that you can prove to someone that you know the private key without ever needing to share it and they will be able to verify that you are telling the truth.
My understanding of a public and private key cryptography in comparison to hash functions that doesnāt have the same characteristics but a few similarities. Is that you can say that it would be like you are able to prove to someone that you know the input to a hash function in relation to a specific output without ever needing to reveal the actual input to the person.
What 2 use-cases can public key cryptography be used for?
The two main use cases they can be used for is encryption and digital signatures. The encryption part is done through a creation of a random private key and derive a unique public key, then share your public key so that people can encrypt a message with it and only you or some other owner of the specific private key can decrypt the message. The private key is never in the need to be shared anywhere and the owner can still prove he is the owner of it and decrypt from the public key.
The other use case is important for Bitcoin and other cryptocurrencies in that of digital signature. Here we are not that concerned to hide what we send to a specific owner of a private key but instead PROVE that we sent a message and are the owner of a private key. We are using our private keys together with the message to create a digital signature that the other person can verify with the public key and the digital signature. Still the private key is never needing to be shared, thus we are solving the trustless process without needing to share any critical information.
This is at the core of the blockchain revolution in my understanding for the trustless system to work, to PROVE to someone that you are telling truth (owning bitcoins) but without showing the actual truth (private keys connected to Bitcoins) so that they canāt just take your truth (private keys) and go and PROVE it to someone else.