Asymmetric encryption
Remember: asymmetric or public key encryption is used to send and receive transactions in the Bitcoin network and for transactions in other cryptocurrencies as well as in other types of digital data transfer online, such as the exchange of emails. Asymmetric encryption methods are harder to crack overall and therefore more secure than symmetric methods. This is because asymmetric encryption uses two key pairs for sender and recipient: a public key which both participants know that others may also know and which is also used for encryption and by the miners for validation, and the sender’s private key for signing for decryption that only they possess, as well as the recipient’s private key for claiming the transaction.
The need for new, stronger algorithms in asymmetric encryption is increasing in line with the growing number of applications.
Imagine that it works like a system used in a public letterbox to ensure data security. You can dispatch a letter you are sending through the slit in the letter box but no one can remove it through the slot - only a person who has a (private) key to the letterbox can retrieve the letter (like a postal worker). The need for newer, stronger algorithms in asymmetric encryption is increasing in line with the growing number of applications.
How does asymmetric encryption work in detail?
Each participant in a transaction generates a pair of (that is two) keys. Each key pair consists of a public key - the non-secret key - and a secret key, the private key. The public key should be freely accessible to the participants in the transaction. The private key should only be accessible to its owner and no one else. Similarly, only the owner of the key pair may know the secret or private key.
How are the two keys used? Let’s say the sender wants to send Bitcoin to a wallet. The owner’s wallet address (or “Bitcoin address”) is a hashed version derived from the public key using a one-way function. Since everyone is allowed to know the public key, similar to a bank account number, it is not difficult to transmit it to someone.
In which way are private keys and public keys used during a transaction?
The sender of the transaction needs to know the owner’s public key for encrypting the transaction in order to safely send it to the wallet owner. They initiate the transaction and use their own private key to create a digital signature and confirm they are sending the transaction.
The miners in the network validate the digital signature’s authenticity using the public cryptographic key, put it in a block and the first miner to resolve the block receives the reward. The owner of the wallet has their key pair consisting of the public key and the private key and can now receive the transaction using their private key only they possess, similar to a complex password.
Disadvantages of asymmetric encryption
Asymmetric encryption is much more secure than symmetric encryption methods, still it doesn’t always make sense to employ it as it’s much more computationally intensive and its algorithms are too slow compared to symmetric encryption. These are deciding factors when dealing with large or time-sensitive amounts of data.
Hybrid encryption methods embrace the advantages of both symmetric encryption and asymmetric encryption and provide a solution to this problem. For example, a randomly-generated individual session key (one-time key) is first exchanged using an asymmetric method, and this is then used jointly as the key for a symmetric encryption method, which encrypts the actual information to be communicated.
Now that you know more about asymmetric encryption, in our next article let’s explore exchange-traded cryptocurrency notes (ETCs).