{"id":146,"date":"2017-06-21T08:09:01","date_gmt":"2017-06-21T12:09:01","guid":{"rendered":"http:\/\/dwan.org\/?p=146"},"modified":"2019-10-25T15:17:42","modified_gmt":"2019-10-25T19:17:42","slug":"the-blockchain-part-of-blockchain","status":"publish","type":"post","link":"https:\/\/dwan.org\/index.php\/2017\/06\/21\/the-blockchain-part-of-blockchain\/","title":{"rendered":"The blockchain part of Blockchain"},"content":{"rendered":"<p>The blockchain data structure (which is a part of, but distinct from the larger Blockchain ecosystem) consists, perhaps unsurprisingly, of an ordered series of &#8220;blocks.&#8221;<\/p>\n<p>In addition to a payload of data and a few other housekeeping values, each block (except the first one, the &#8220;genesis&#8221; or &#8220;origination&#8221; block) contains the hash of the previous block.  As described <a href=\"https:\/\/dwan.org\/index.php\/2017\/06\/13\/proof-of-work-and-the-nonce\/\">in a previous post<\/a>, hash values are easy to verify and challenging to fake.  A block is valid if it contains the hash of its predecessor. A valid blockchain contains only valid blocks.<\/p>\n<p>A valid blockchain demonstrates an <i>order of events<\/i>. One cannot create a block without referring to the prior one. If the hashes are correct, we know that the blocks were created in sequential order, and therefore that the data stored on the chain was <i>also<\/i> written in that order.  We know the relative order in which the data was written (we can&#8217;t generate a subsequent block without all the prior ones).  We also know that the data has not changed since being written (changes to a block will change the hash, and require changes to all future ones).<\/p>\n<p>Notably, we get <i>no promises at all<\/i> concerning validity or security.  Merely storing information in a blockchain data structure does not make it correct, complete, or private.  In fact, since most Blockchain systems are <i>distributed ledgers<\/i> (the topic of a future post), information on the chain is somewhat radically public.  Every node in most Blockchain networks eventually see every piece of data on the chain.<\/p>\n<p>Bitcoin and some (but not all) Blockchain systems up the ante on what constitutes a valid block by adding a <i>nonce<\/i>.  The nonce is a value that, added to a block, yields a hash with specific and rare properties.  This imposes a cost, called &#8220;proof-of-work,&#8221; on creating blocks.  When creating a new block, authors must try (on average) a large number of nonces until they find one that yields a valid hash. The point of this is to make it computationally challenging merely to create a single new valid block at the end of the chain, and prohibitive to go back and corrupt earlier blocks.<\/p>\n<p>The computational work of &#8220;mining&#8221; in the Bitcoin system is actually just searching for valid nonces.  This is sufficiently different from conventional mining that it bears saying: In the usual use of the word &#8220;mining,&#8221; we are seeking out and refining a valuable resource. In Blockchain systems that use proof of work, the rare and precious resource at hand is the trustworthiness of the system itself.  Value is not <i>removed<\/i> by the mining operation &#8211; it is actually being <i>created.<\/i><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The blockchain data structure (which is a part of, but distinct from the larger Blockchain ecosystem) consists, perhaps unsurprisingly, of an ordered series of &#8220;blocks.&#8221; In addition to a payload of data and a few other housekeeping values, each block (except the first one, the&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[3],"class_list":["post-146","post","type-post","status-publish","format-standard","hentry","category-blockchain","tag-blockchain"],"_links":{"self":[{"href":"https:\/\/dwan.org\/index.php\/wp-json\/wp\/v2\/posts\/146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dwan.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dwan.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dwan.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dwan.org\/index.php\/wp-json\/wp\/v2\/comments?post=146"}],"version-history":[{"count":10,"href":"https:\/\/dwan.org\/index.php\/wp-json\/wp\/v2\/posts\/146\/revisions"}],"predecessor-version":[{"id":160,"href":"https:\/\/dwan.org\/index.php\/wp-json\/wp\/v2\/posts\/146\/revisions\/160"}],"wp:attachment":[{"href":"https:\/\/dwan.org\/index.php\/wp-json\/wp\/v2\/media?parent=146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dwan.org\/index.php\/wp-json\/wp\/v2\/categories?post=146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dwan.org\/index.php\/wp-json\/wp\/v2\/tags?post=146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}