- Describe the concept of public and private key with your own words.
Just like a padlock, a public key can be seen and attempted by any third party or spectator. The complex innerworkings of the padlock can be thought of as the encryption which match a private key with the unlocking mechanism being the digital signature. Anyone can see the padlock on the outside and know that there is a secret combination on the inside. Only the bearer of the key can know the unique grooves of the key, whereas the encryption makes up the notches or grooves of the key, or digital signature.
- What 2 use-cases can public key cryptography be used for?
Public key cryptography can be used for both encryption and digital signatures. Encryption is useful any time you don’t mind a third party viewing a dataset or address while attaching a private value to the said address. This is especially valuable when thinking of Bitcoin or Blockchain when the Blockchain or distributed ledger is available for all to see. When encryption is coupled with the veracity of digital signatures, UTXO’s able to remain unique and private. We commonly think of Bitcoin as separate transactions when it is really, one large ledger made up of smaller blocks. As it relates to public keys or public addresses, anyone can view the transaction(s) but only those with the private key can de-crypt or deride the message. The message is made up of information such as input + output data including UTXO’s. Digital signatures are very complex hashes by the private key to sign a message. When a TX is sent, it is “signed” or appended with the digital signature.