Homework on Public and Private Keys - Questions
1. Describe the concept of public and private key with your own words.
A private key is a big, random number generated by an issuer, which can be used to encrypt or sign messages. Only the entities that has access to the private key may act on behalf of the issuer, so, if a third party get access to the key, it will be able to sign and decrypt messages as it were the issuer, and, if the issuer loses access to the private key, he or she wonât be able to their resources.
A public key is another number, which is generated by a function using the private key as input, that is designed to be shared with anybody the issuer wants (for instance, the issuer may share it in social media so everyone has access to it, or with a more restricted group of users to allow them to communicate to an API, a private channel, a repository, etc). The public key is used by third parties to communicate with the issuer in a secure environment. It allows anyone to validate if a message was sent by the issuer, in the use case of digital signing, and also allows to encrypt messages that are going to be sent to the issuer.
2. What 2 use-cases can public key cryptography be used for?
Public key cryptography is used for encryption and digital signatures, being the latter the use case bitcoin applies.