{"id":1447,"date":"2019-11-25T18:10:23","date_gmt":"2019-11-25T09:10:23","guid":{"rendered":"https:\/\/standage.co.jp\/?post_type=column&#038;p=1407"},"modified":"2019-12-05T11:01:21","modified_gmt":"2019-12-05T02:01:21","slug":"06-%e7%a7%98%e5%af%86%e9%8d%b5%e3%81%a8%e5%85%ac%e9%96%8b%e9%8d%b5","status":"publish","type":"column","link":"https:\/\/wp.standage.co.jp\/us\/column\/06-%e7%a7%98%e5%af%86%e9%8d%b5%e3%81%a8%e5%85%ac%e9%96%8b%e9%8d%b5\/","title":{"rendered":"06.Private and public keys"},"content":{"rendered":"<p>In the previous chapter, we explained that an address is linked to a &quot;private key&quot; and a &quot;public key,&quot; which are necessary when actually executing a transaction.<\/p>\n<p>Cryptocurrencies employ a method called public-key cryptography, where the &quot;address,&quot; &quot;private key,&quot; and &quot;public key&quot; are always a set.<br \/>\nThat is<br \/>\n&quot;Create private key \u21d2 Create public key \u21d2 Create address&quot;<br \/>\nThis is because it is created in the following way.<\/p>\n<p>This process is irreversible, and it is impossible to identify the underlying private or public key from the address.<br \/>\nOf course, it&#039;s also impossible to determine the private key from the public key.<\/p>\n<p>Now, let&#039;s take a look at how it&#039;s actually used in transactions!<\/p>\n<p>For example, if Alice wants to send 1 BTC to Bob, it would look like this.<br \/>\n\u2460 Alice creates a transaction to send 1 BTC from Alice&#039;s address to Bob&#039;s address.<br \/>\n\u2461 Alice encrypts the created transaction by signing it with her private key and then publishes it on the network.<br \/>\n\u2462 Miners use Alice&#039;s publicly available public key to verify whether this transaction was actually made by Alice. (This is mining!)<br \/>\n\u2463 Verification results show that the &quot;transaction before encryption&quot; and the &quot;decrypted transaction&quot; match, proving that Alice sent this transaction.<br \/>\n\u2464 The money will be sent to Bob&#039;s address. Transfer complete!<\/p>\n<p>It&#039;s easier to understand if you think of the address as your bank account number and the private key as your bank account&#039;s PIN.<br \/>\nIncidentally, a public key is used to generate account numbers and to verify that a transaction is legitimate.<\/p>\n<p>- Your address (account number) is necessary if you want someone to transfer money to you; you must share this information with the person you want to receive the money from.<br \/>\nIf your private key (PIN) is revealed to someone else, they will be able to withdraw money freely, so it would be a serious problem if it were leaked to others.<br \/>\n\u2022 Public keys are used to verify the legitimacy of transactions, so transactions cannot be conducted unless they are made public.<\/p>\n<p>Store your private key securely so that no one else can find it!<\/p>","protected":false},"excerpt":{"rendered":"<p>In the previous chapter, we explained that an address is associated with a &quot;private key&quot; and a &quot;public key,&quot; which are necessary to actually execute a transaction. Virtual currencies use a method called public key cryptography, and the &quot;address,&quot; &quot;private key,&quot; and &quot;public key&quot; must be set in advance. <a class=\"more-link\" href=\"https:\/\/wp.standage.co.jp\/us\/column\/06-%e7%a7%98%e5%af%86%e9%8d%b5%e3%81%a8%e5%85%ac%e9%96%8b%e9%8d%b5\/\">Continue reading <span class=\"screen-reader-text\">06.Private and public keys<\/span><\/a><\/p>","protected":false},"author":1,"featured_media":1528,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","format":"standard","meta":[],"categories":[1],"tags":[92,91],"acf":[],"_links":{"self":[{"href":"https:\/\/wp.standage.co.jp\/us\/wp-json\/wp\/v2\/column\/1447"}],"collection":[{"href":"https:\/\/wp.standage.co.jp\/us\/wp-json\/wp\/v2\/column"}],"about":[{"href":"https:\/\/wp.standage.co.jp\/us\/wp-json\/wp\/v2\/types\/column"}],"author":[{"embeddable":true,"href":"https:\/\/wp.standage.co.jp\/us\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.standage.co.jp\/us\/wp-json\/wp\/v2\/comments?post=1447"}],"version-history":[{"count":1,"href":"https:\/\/wp.standage.co.jp\/us\/wp-json\/wp\/v2\/column\/1447\/revisions"}],"predecessor-version":[{"id":1534,"href":"https:\/\/wp.standage.co.jp\/us\/wp-json\/wp\/v2\/column\/1447\/revisions\/1534"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wp.standage.co.jp\/us\/wp-json\/wp\/v2\/media\/1528"}],"wp:attachment":[{"href":"https:\/\/wp.standage.co.jp\/us\/wp-json\/wp\/v2\/media?parent=1447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.standage.co.jp\/us\/wp-json\/wp\/v2\/categories?post=1447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.standage.co.jp\/us\/wp-json\/wp\/v2\/tags?post=1447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}