

{"id":17509,"date":"2018-06-12T05:31:02","date_gmt":"2018-06-12T05:31:02","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=17509"},"modified":"2022-03-21T15:55:29","modified_gmt":"2022-03-21T10:25:29","slug":"public-key-cryptography","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/public-key-cryptography\/","title":{"rendered":"What is Public Key Cryptography in Blockchain"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">The concept of blockchain\u2019s security encompasses different kinds of security methods and techniques. In our tutorial on \u201c<\/span><i><span style=\"font-weight: 400;\">Blockchain Security,<\/span><\/i><span style=\"font-weight: 400;\">\u201d we focused on the concept and technique of hashing. In another tutorial, we discussed \u201c<\/span><i><span style=\"font-weight: 400;\">Blockchain cryptography<\/span><\/i><span style=\"font-weight: 400;\">\u201d which gave us a broad idea of application and use of cryptography in the blockchain. Moving on, in this tutorial, we set our focus on the \u201c<\/span><i><span style=\"font-weight: 400;\">Public-key cryptography<\/span><\/i><span style=\"font-weight: 400;\">\u201d technique which blockchain-primarily uses to carry out secure transactions. We had a little insight on this topic through some articles earlier, but here, we will have a closer look at it.\u00a0<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">What is Public Key Cryptography?<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Public key cryptography is a security protocol that ensures the safety of data that we exchange through a transaction in a blockchain network. <\/span><span style=\"font-weight: 400;\">The aspect of security is crucial in a point-to-point network like blockchain. Because, in such a network, nodes do not personally know and trust each other.<\/span> <span style=\"font-weight: 400;\">There is a need for a robust security system in place. One which secures the information they are sending or receiving without worrying about security breaches.<\/span><span style=\"font-weight: 400;\"> Also, this eliminates the need for all the nodes to know and trust each other personally.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Public key cryptography is an asymmetric type of cryptography where we use a pair of keys (<\/span><i><span style=\"font-weight: 400;\">public key<\/span><\/i><span style=\"font-weight: 400;\"> and <\/span><i><span style=\"font-weight: 400;\">private key<\/span><\/i><span style=\"font-weight: 400;\">). It uses them to encrypt\/decrypt the information and verify the users. <\/span><span style=\"font-weight: 400;\">The process of public-key cryptography ensures two things i.e,<\/span><\/p>\n<p><i><span style=\"font-weight: 400;\">1. Encryption<\/span><\/i><span style=\"font-weight: 400;\"> of the information at the sender\u2019s end using the public key (of the receiver). This ensures that no third party can access or understand the encrypted information in or out of the network. <\/span><span style=\"font-weight: 400;\">Only the intended receiver can decrypt and read the message<\/span><span style=\"font-weight: 400;\"> using its own private key<\/span><span style=\"font-weight: 400;\">.\u00a0<\/span><\/p>\n<p><i><span style=\"font-weight: 400;\">2. Signing<\/span><\/i><span style=\"font-weight: 400;\"> the message or information for verification using the sender&#8217;s private key. This authenticates the identity of the sender and states that he is a legitimate node in the blockchain network. The receiver verifies this by using the public key of the sender. This verification process of users in a network is done through digital signatures.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Thus, public-key cryptography is a way of providing a digital identity to the user. Through this one can carry out secure transactions within a blockchain network. N<\/span><span style=\"font-weight: 400;\">ow let us understand exactly how this happens.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"> There are three key elements in public-key cryptography i.e. (i) <\/span><i><span style=\"font-weight: 400;\">Pair of keys; Private and public key<\/span><\/i><span style=\"font-weight: 400;\">, (ii) <\/span><i><span style=\"font-weight: 400;\">Cryptography wallet<\/span><\/i><span style=\"font-weight: 400;\"> and <\/span><i><span style=\"font-weight: 400;\">wallet address<\/span><\/i><span style=\"font-weight: 400;\">, and (iii) <\/span><i><span style=\"font-weight: 400;\">Digital signature<\/span><\/i><span style=\"font-weight: 400;\">. Each of these three elements contributes significantly to creating an authentic digital identity just like our bank account, account number, and password. The only difference here is that it is to exchange information or cryptocurrency within a blockchain network.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Public key cryptography uses special algorithms to create these keys.<\/span><span style=\"font-weight: 400;\"> These algorithms work in a unidirectional manner, i.e. the algorithm will first create a private key from it, a public key, and from it, a public address. We cannot reverse the order of generation i.e. we cannot compute the private key from a public key or wallet address from the public key.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This ensures the security of the public key cryptography system even more. It is because the public key and public address are made public to carry out transaction and verification processes.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Therefore, public-key cryptography ensures the integrity of the information, the authenticity of the user, and the legitimacy of the transaction. <\/span><span style=\"font-weight: 400;\">A private key is like an account password for a user. One can decrypt a coded message sent to them and make a digital signature from it for verification.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">A public key i<\/span><span style=\"font-weight: 400;\">s o<\/span><span style=\"font-weight: 400;\">pen for the network which others use to verify a transaction and encrypt a message. Thus, whenever a transaction takes place between two nodes, the private and public keys of both the nodes take part in making the transaction secure. It does so by encrypting the information and verifying the user by their digital signature. T<\/span><span style=\"font-weight: 400;\">his double layer of protection makes public-key cryptography the best security system for blockchain.\u00a0<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Concept of keys: Public key and Private key<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">The cryptographic keys are the most essential element in public-key cryptography. Without the function and significance of keys, there is not much left to understand in public-key cryptography. So, let us learn the concept of keys!\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">As we know, we use a pair of keys i.e. <\/span><i><span style=\"font-weight: 400;\">Public key<\/span><\/i><span style=\"font-weight: 400;\"> and <\/span><i><span style=\"font-weight: 400;\">Private key<\/span><\/i><span style=\"font-weight: 400;\"> in public-key cryptography. Both of these keys are generated using the Elliptic Curve cryptography method. Firstly, it creates the private key and then it creates a public key from the private key using the <\/span><i><span style=\"font-weight: 400;\">Elliptic Curve Algorithm (<\/span><\/i><span style=\"font-weight: 400;\">aka<\/span><i><span style=\"font-weight: 400;\"> ECDSA)<\/span><\/i><span style=\"font-weight: 400;\">. Therefore, both the private and public keys are cryptographically and mathematically linked to each other.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">There is an important thing to note here, i.e. the process of generating a public key from the private key is irreversible. That is, we can obtain the corresponding public key from its private key but we cannot obtain the private key from its public key. The algorithm is designed in such a way that it requires a lot of computational power and time to brute force the private key which is next to impossible.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This algorithm helps in keeping the private key private and untraceable from the public key. <\/span><span style=\"font-weight: 400;\">Because a node in the blockchain network can only carry out transactions within the network.\u00a0 It is possible if its private key is kept secret and its public key which others know in the network.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The private and public keys are of a certain length depending on the algorithm used to create them. Usually, the key length is 256 bits or can fall in the range of 1024 to 2048 bits. Now, the length of the public key seems a little too long for us to easily distribute it in the network. So, we need to create a shorter public address from the public key using a hashing function. Here, the public key is like an email address and public address is like the username. It is obvious that sharing your username with others is easier than sharing the entire email address.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Just like how we cannot compute a private key from its public key, we cannot compute a public key from the public address.<\/span><span style=\"font-weight: 400;\"> Public address (also called a Bitcoin address in a Bitcoin network) is the first thing that we need if two nodes want to carry out a transaction on the blockchain network.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Therefore, in Public-key cryptography the most important elements are a private key, a public key, and the public address. All of this information is kept secure in a software known as <\/span><i><span style=\"font-weight: 400;\">Wallet<\/span><\/i><span style=\"font-weight: 400;\">. A digital wallet is independent of the blockchain network. It stores the important information of a blockchain node such as its address, private key, the public key, and transaction balance.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Let us learn about the private and public key in a little more detail.\u00a0<\/span><\/p>\n<h4>1. Private Key<\/h4>\n<p><span style=\"font-weight: 400;\">A private key is a long series of alphanumeric characters that is unique for every individual user or node in the blockchain network. A private key is like a password which if shared can give away our confidential information. So, we must keep our private key confidential from the network. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">The digital wallets (software or hardware) essentially store the private key as its security is very important. The usual format for storing the key is a wallet import format which has a 51 character long key. This length may vary depending upon the storage formats.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The<strong> two main functions of a private key<\/strong> in providing security in a blockchain network are:\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">a. The private key is used to decrypt a message <\/span><span style=\"font-weight: 400;\">that the sender encrypts using the public key (of the receiver). This ensures that the intended receiver gets the encrypted message and is safe from other users on the way. Once the message reaches the receiver intact, he decrypts it into a readable format using his private key.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">b. Another important function of the private key is securing the message or information by digital signature. <\/span><span style=\"font-weight: 400;\">A digital signature is used to verify<\/span><span style=\"font-weight: 400;\"> a blockchain transaction. In the digital signature, the message is signed using the sender\u2019s private key. <\/span><span style=\"font-weight: 400;\">In this way, the receiver can verify that the message <\/span><span style=\"font-weight: 400;\">(using the sender&#8217;s public key) is actually sent by the sender and not someone else.\u00a0<\/span><\/p>\n<h4>2. Public Key<\/h4>\n<p><span style=\"font-weight: 400;\">A public key is the counterpart of a\u00a0 private key as it is cryptographically derived from it. A public key is available for all the nodes in the network. This helps in the verification of a transaction by all the nodes in a blockchain network. Let\u2019s suppose that you are a node in the network and you want to send a message or information to another node.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To carry out a secure transaction you will sign the message from your private key and send it for verification from the entire network. Each node can access your public key and so they will verify the transaction as authentic and pass it. When all the nodes verify your transaction using your public key the transaction can take place. Generally, a public address is used for transactions rather than the public key because of its length. The public key is long and not easily shareable. So, a shorter version of it is created by hashing which is the public address.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The <strong>two main functions of a public key<\/strong> in providing security in a blockchain network are:\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">a. To encrypt a message or information using the public key of the receiver. This ensures that only the receiver who has its corresponding private key can decrypt and read the message.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">b. To verify if the sender is authentic by <\/span><span style=\"font-weight: 400;\">confirming the digital signature. A digital signature is done by the sender\u2019s private key. A public key verifies the sender\u2019s identity by matching (complementing) with his private key.\u00a0<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Digital signatures in blockchain<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">After the private key and public key, another important aspect of public-key cryptography is the digital signature. No transaction in a blockchain network is secure if it is not digitally signed by the sender\u2019s private key. <\/span><span style=\"font-weight: 400;\">The cryptography i.e. the encryption done using the public and private keys ensures that the information we are sending to other nodes is safe and no one in the middle can read or change it.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Whereas, the purpose of doing a digital signature before sending the information is to state authority over the information and tokens (cryptocurrency).<\/span><span style=\"font-weight: 400;\"> It is like signing a cheque where you state that it is your money that you are giving from your authorized bank account.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Similarly, when you digitally sign the information you send in a blockchain network,\u00a0 you say that you are an authorized node. And you rightfully own the tokens or currency you wish to give to someone in the network. <\/span><span style=\"font-weight: 400;\">Therefore, the digital signature proves the ownership of the funds and the account and protects them from forgery.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Now, let us learn how digital signatures are done.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Before we start understanding the entire process of digital signatures, we must know which algorithm is used to create digital signatures. Similar to the private and public key, digital signature is created by the <\/span><i><span style=\"font-weight: 400;\">Elliptic Curve Digital Signature Algorithm<\/span><\/i><span style=\"font-weight: 400;\"> (<\/span><i><span style=\"font-weight: 400;\">ECDSA<\/span><\/i><span style=\"font-weight: 400;\">). <\/span><span style=\"font-weight: 400;\">An important thing to note here is that<\/span> <span style=\"font-weight: 400;\">ECDSA is not based on encryption. This means that the keys are not encrypted, only the message or information that we are sending is encrypted.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This algorithm applies itself in two parts;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">1. In the first part, it takes the private key and Merkel root (hash) of the transaction and creates the signature by mathematical computations. <\/span><span style=\"font-weight: 400;\">Then this signed transaction is sent out to other users on the blockchain network. They will all verify the signature of the sending node using the second part of the algorithm.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">2. In the second part, other nodes compute a binary result using the digital signature of the sender, the transaction information, and the public key of the sender. If<\/span><span style=\"font-weight: 400;\"> the mathematical algorithm gives the result as True, then it is verified that the sender has sent the message from an authentic node.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">All the validating nodes or computers in the network will verify the digital signature by using the sender\u2019s public key.\u00a0<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">How does Public-key cryptography work?\u00a0<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Now that we are through with all the important concepts related to public-key cryptography. <\/span><span style=\"font-weight: 400;\">Let us move on to understand the entire process of public-key cryptography. And how does it work to secure and verify a transaction on the blockchain.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Suppose you are a legitimate node on a blockchain network.<\/span><span style=\"font-weight: 400;\"> Now, you need to have three things in order to carry out secure transactions within the network; a private key, a public key, and a wallet address, or a public address. For this, you need to install a blockchain wallet software that will automatically create a pair of private key and public key and a wallet address.<\/span><span style=\"font-weight: 400;\"> This software is an independent platform from the blockchain. It gives you a digital identity and a safe place to keep your keys.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Furthermore, your public address (aka wallet address) is like a mailbox and your private key is like the key of that mailbox. Your mailbox or its address is known to everyone and anyone can send you things using the mailbox. But, only you can open your mailbox and access the contents inside it using the key to the mailbox. <\/span><span style=\"font-weight: 400;\">Similarly, anyone within the blockchain network can send you tokens or messages to your public address. But only you can decrypt and read that message using your private key.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Let us summarize the working of public-key cryptography with the help of a situation. Here Raj wants to send a message to Aditi on a blockchain network. We call <\/span><span style=\"font-weight: 400;\">this exchange of information between two nodes on the blockchain a \u201c<\/span><i><span style=\"font-weight: 400;\">transaction<\/span><\/i><span style=\"font-weight: 400;\">\u201d.\u00a0<\/span><\/p>\n<p><b>Step 1<\/b><span style=\"font-weight: 400;\">: Raj will take the message that he wants to share and encrypt it using Aditi\u2019s public key or public address. This will convert the message into an unreadable format.<\/span><\/p>\n<p><b>Step 2:<\/b><span style=\"font-weight: 400;\"> Raj will now take the hashed message and sign this message using his private key. This is known as digitally signing the transaction (digital signature).<\/span><\/p>\n<p><b>Step 3<\/b><span style=\"font-weight: 400;\">: Now, Raj is ready to send this message to Aditi via the blockchain network. But before this, Raj needs to get this transaction verified by the entire blockchain network. Using Raj\u2019s public key, every node on the network will verify the digital signature of Raj and pass the transaction.\u00a0<\/span><\/p>\n<p><b>Step 4: <\/b><span style=\"font-weight: 400;\">After successful verification, Aditi will receive the message but in an encrypted form known as ciphertext. First off, Aditi will also verify the digital signature of Raj using his public key or public address.\u00a0<\/span><\/p>\n<p><b>Step 5:<\/b><span style=\"font-weight: 400;\"> Then, Aditi will decrypt the ciphertext using her private key. This will convert the message into a readable format.\u00a0<\/span><\/p>\n<p><b>Step 6:<\/b><span style=\"font-weight: 400;\"> The transaction is successfully carried out. Also, it is recorded on a new block in the blockchain permanently. No one can deny that this transaction between Raj and Aditi did not take place.\u00a0<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Benefits of Public Key Cryptography<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Public key cryptography promises a lot of security benefits in an open network like blockchain. Three most important aspects, as well as benefits of using public-key cryptography as the security method, are; <\/span><i><span style=\"font-weight: 400;\">Confidentiality<\/span><\/i><span style=\"font-weight: 400;\">, <\/span><i><span style=\"font-weight: 400;\">Integrity, <\/span><\/i><span style=\"font-weight: 400;\">and <\/span><i><span style=\"font-weight: 400;\">Authenticity<\/span><\/i><span style=\"font-weight: 400;\">.\u00a0<\/span><\/p>\n<p><b>1. Confidentiality<\/b><span style=\"font-weight: 400;\">: Blockchain assures confidentiality of the data that we are sharing by using a pair of keys. The public and private keys that are linked to each other make sure that the data or information that we are sending is kept secret from others. <\/span><span style=\"font-weight: 400;\">It maintains confidentiality by encrypting the data using a public key and decrypting it on the other end using its corresponding private key.\u00a0<\/span><\/p>\n<p><b>2. Integrity<\/b><span style=\"font-weight: 400;\">: Public-key cryptography also maintains the integrity of the data by encrypting the data. Due to end encryption, no one except for the sender and the receiver has access to the information. So, one can be sure that the data is intact and no one has changed it in the middle.\u00a0<\/span><\/p>\n<p><b>3. Authenticity<\/b><span style=\"font-weight: 400;\">: Another important aspect and a major benefit of public-key encryption is the authenticity of the user. Because it uses digital signatures in every transaction, it is impossible for some to fake their identity. That is why every node on the blockchain network can be sure that the sender is an authentic part of the network. This is how blockchain builds trust amongst its users.\u00a0<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Limitations of Public Key Cryptography<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Just like everything has a downside to it, there are a few limitations of public-key cryptography.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">1. The ability of mathematical algorithms to encrypt and decrypt data or messages is limited to only a certain size of data. If there are large amounts of data that need to be encrypted the algorithm runs slow. This slows down the process of encryption and demands greater computational power.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">2. If someone has access to the secret private key or accidentally exposes it to the network. All the data encrypted using that private key will be in the wrong hands. <\/span><span style=\"font-weight: 400;\">One cannot restore or re-encrypt the data once the private key is out.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">3. If a node loses its private key, its data will forever be stuck and they cannot make transactions from the same public address again. Such a node will not be able to access the data encrypted by its private key.\u00a0<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Summary<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">This completes our discussion on Public-key cryptography. <\/span><span style=\"font-weight: 400;\">Here, we have covered a lot of aspects related to PKC. Such as, what is PKC, the concept of private and public keys, what is a digital signature, how do PKC works, and lastly the benefits and limitations of PKC. We hope you were able to develop a<\/span><span style=\"font-weight: 400;\"> good understanding of public-key cryptography with the help of the information provided by us.\u00a0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The concept of blockchain\u2019s security encompasses different kinds of security methods and techniques. In our tutorial on \u201cBlockchain Security,\u201d we focused on the concept and technique of hashing. In another tutorial, we discussed \u201cBlockchain&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":17532,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[2037,2077,12686,15645],"class_list":["post-17509","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blockchain","tag-blockchain-cryptography-technology","tag-blockchain-public-key-cryptography","tag-security-in-public-key-cryptography","tag-what-is-blockchain-public-key"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is Public Key Cryptography in Blockchain - DataFlair<\/title>\n<meta name=\"description\" content=\"Learn about digital signatures, public and private keys, Public key cryptography in Blockchain, its benefits and limitations.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/public-key-cryptography\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is Public Key Cryptography in Blockchain - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Learn about digital signatures, public and private keys, Public key cryptography in Blockchain, its benefits and limitations.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/public-key-cryptography\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-06-12T05:31:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-21T10:25:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Public-key-Cryptography-01.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is Public Key Cryptography in Blockchain - DataFlair","description":"Learn about digital signatures, public and private keys, Public key cryptography in Blockchain, its benefits and limitations.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/public-key-cryptography\/","og_locale":"en_US","og_type":"article","og_title":"What is Public Key Cryptography in Blockchain - DataFlair","og_description":"Learn about digital signatures, public and private keys, Public key cryptography in Blockchain, its benefits and limitations.","og_url":"https:\/\/data-flair.training\/blogs\/public-key-cryptography\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-06-12T05:31:02+00:00","article_modified_time":"2022-03-21T10:25:29+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Public-key-Cryptography-01.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"13 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/public-key-cryptography\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/public-key-cryptography\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"What is Public Key Cryptography in Blockchain","datePublished":"2018-06-12T05:31:02+00:00","dateModified":"2022-03-21T10:25:29+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/public-key-cryptography\/"},"wordCount":2939,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/public-key-cryptography\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Public-key-Cryptography-01.jpg","keywords":["Blockchain Cryptography technology","Blockchain Public key cryptography","Security in Public Key Cryptography","What is Blockchain Public Key?"],"articleSection":["Blockchain Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/public-key-cryptography\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/public-key-cryptography\/","url":"https:\/\/data-flair.training\/blogs\/public-key-cryptography\/","name":"What is Public Key Cryptography in Blockchain - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/public-key-cryptography\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/public-key-cryptography\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Public-key-Cryptography-01.jpg","datePublished":"2018-06-12T05:31:02+00:00","dateModified":"2022-03-21T10:25:29+00:00","description":"Learn about digital signatures, public and private keys, Public key cryptography in Blockchain, its benefits and limitations.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/public-key-cryptography\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/public-key-cryptography\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/public-key-cryptography\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Public-key-Cryptography-01.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Public-key-Cryptography-01.jpg","width":1200,"height":628,"caption":"What is Public Key Cryptography in Blockchain"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/public-key-cryptography\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Blockchain Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/blockchain\/"},{"@type":"ListItem","position":3,"name":"What is Public Key Cryptography in Blockchain"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team provides industry-driven content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our expert educators focus on delivering value-packed, easy-to-follow resources for tech enthusiasts and professionals.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam2\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/17509","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=17509"}],"version-history":[{"count":8,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/17509\/revisions"}],"predecessor-version":[{"id":108411,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/17509\/revisions\/108411"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/17532"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=17509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=17509"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=17509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}