{"id":23732,"date":"2017-05-25T00:38:49","date_gmt":"2017-05-25T00:38:49","guid":{"rendered":"http:\/\/ci027cfe6fb0002697"},"modified":"2017-05-25T00:38:49","modified_gmt":"2017-05-25T00:38:49","slug":"qtums-block-size-limit-will-be-governed-smart-contracts-heres-how","status":"publish","type":"post","link":"https:\/\/bitcoinmagazine.com\/business\/qtums-block-size-limit-will-be-governed-smart-contracts-heres-how","title":{"rendered":"Qtum\u2019s Block Size Limit Will Be Governed by Smart Contracts: Here\u2019s How"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><figure><img decoding=\"async\" src=\"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2024\/11\/qtums-block-size-limit-will-be-governed-by-smart-contracts-heres-how.jpg\" title=\"\"><\/figure>\n<p><a href=\"https:\/\/qtum.org\/en\/\" target=\"_blank\" rel=\"noopener\">Qtum<\/a> is an up-and-coming smart contract platform set to launch in September of this year. Sometimes ambitiously referring to itself as \u201cChina\u2019s Ethereum,\u201d the project recently raised $15 million in three days through a successful crowdsale or \u201cInitial Coin Offering\u201d (ICO).<\/p>\n<p>On a technical level, the Qtum blockchain will resemble Bitcoin, but will integrate an Ethereum-like Virtual Machine on top for smart contracting purposes. Additionally, Qtum is in the process of implementing a \u201cDecentralized Governance Protocol\u201d (DGP). This DGP will have smart contracts determine the blockchain\u2019s parameter selection, like its block size limit.<\/p>\n<p>Jordan Earls, also known as \u201cearlz\u201d online, is the co-founder and lead developer of Qtum.<\/p>\n<p>\u201cWe believe this will allow for Qtum to be the first self-modifiable, self-regulating and ultimately self-aware blockchain,\u201d he told <em>Bitcoin Magazine<\/em>.<\/p>\n<h3>&nbsp;The Concept<\/h3>\n<p>Any blockchain has a number of parameters. In Bitcoin, this of course includes the 1 megabyte block size limit. But it also includes the block reward (currently 12.5), the block interval time (ten minutes) and more. These and three other parameters apply to Qtum as well.<\/p>\n<p>But there are two basic problems with needing to have these parameters. First, they are very hard to get \u201cright,\u201d in so far as that\u2019s even possible, since different parameters benefit different use cases. And second, in a decentralized system, these parameters can be very hard to change.<\/p>\n<p>\u201cThe core rationale and problem we had when designing this is that we will release Qtum with some initial parameters that we try to make perfect,\u201d Earls told <em>Bitcoin Magazine<\/em>. \u201cBut we don&#8217;t know what the ecosystem will look like one month after release, much less one year. So, we designed DGP. That way, we can tune the blockchain to be as usable and secure as possible without needing to fork, just to change a simple number from 1 to 2.\u201d<\/p>\n<p>Qtum plans to realize this way of \u201ctuning the blockchain\u201d by doing what it does best: The DGP will consist of relatively straightforward smart contracts made up of blockchain-readable pieces of executable code.<\/p>\n<p>\u201cWe have open-source smart contracts which implement the rules for changing the parameters, which will then be accepted by all nodes. It implements a fairly simple governance system of \u2018user keys\u2019 and \u2018admin keys.\u2019 There is a modifiable parameter in the contract which determines how many keys of each type must vote in order to approve a change to, say, the block size limit.\u201d<\/p>\n<p>Importantly, through the use of smart contracts, these keys can actually represent more than just a regular user per key: Each key can represent a defined group.<\/p>\n<p>\u201cPerhaps one key represents a majority of hash power; or a key represents coin votes by coin holders; or a key acts according to a dynamic limit based on how full blocks are. Or even oracles: a key can effectively be controlled by people or servers that act based on input not directly readable by the blockchain itself, like USD market price for transaction fees. It\u2019s extremely flexible.\u201d<\/p>\n<p>Qtum will almost certainly include smart contracts for the block size limit, the gas schedule to determine the price of different smart contract operations (for which Ethereum hard forked several times) and the minimum gas price. Additionally, it might deploy smart contracts for block interval times, block rewards, maximum gas per block and maximum script size or signature operations per transaction or block.<\/p>\n<h3>Changing the Rules<\/h3>\n<p>Embedding the parameter selection in smart contracts is clever and having all node software adjust accordingly even more so. However, an arguably even harder problem is not so much what parameter is decided on, but who gets to decide in the first place and how.<\/p>\n<p>In Qtum, the initial parameters will be set by the developers based on their testing and measurements.<\/p>\n<p>\u201cFor instance, we&#8217;ve already determined that a block size of 2 megabytes should be reasonable,\u201d Earls said.<\/p>\n<p>After that, the initial set of rules to define the parameters can be changed themselves within the rules of the system, too.<\/p>\n<p>A smart contract could, for example, start out relatively simple: It requires a majority of core developers to change the rules of the contract. Then, if a majority of core developers decides that instead of just developers, it should also include a majority of coin holders, the contract can be changed to a two-of-two multisig contract. From that moment on, one key would represent the developers, while the other key would represent the majority of coin holders. Next, if both developers and coin holders agree, hash power can have a seat at the table, too, and so forth.<\/p>\n<p>As such, Qtum smart contracts can change not only the parameters of the system, but also how the parameters themselves can be changed.<\/p>\n<p>That said, as Earls acknowledged, the Decentralized Governance Protocol can\u2019t actually solve all governance problems. It\u2019s specifically designed to make certain predefined parameters more easily adjustable, and it can indeed even change how these parameters can be adjusted to some extent.<\/p>\n<p>But the Decentralized Governance Protocol does not and cannot apply to network rules that aren\u2019t among these predefined parameters. Protocol changes outside of these specific parameters would still require a typical upgrade mechanism, like a hard fork or a soft fork.<\/p>\n<p>\u201cI believe if Bitcoin had DGP technology, then we would still see all this fighting about SegWit vs Bitcoin Unlimited, etcetera,\u201d Earls acknowledged. \u201cBut, DGP would have been used in the meantime to increase the block size to something conservative but reasonable like 2 megabytes or 4 megabytes, to avoid all the transaction speed problems. Meanwhile, the developers and community could figure out a more permanent solution.\u201d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Qtum is an up-and-coming smart contract platform set to launch in September of this year. Sometimes ambitiously referring to itself as \u201cChina\u2019s Ethereum,\u201d the project recently raised $15 million in three days through a successful crowdsale or \u201cInitial Coin Offering\u201d (ICO). On a technical level, the Qtum blockchain will resemble Bitcoin, but will integrate an [&hellip;]<\/p>\n","protected":false},"author":2509,"featured_media":23733,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[1662,556,1952,3462,1279],"class_list":{"0":"post-23732","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-business","8":"tag-block-size","9":"tag-blockchain","10":"tag-governance","11":"tag-qtum","12":"tag-smart-contracts"},"author_data":{"id":2509,"name":"Aaron van Wirdum","nicename":"aaron-van-wirdum","avatar_url":"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2024\/12\/aaron-van-wirdum-96x96.jpg"},"featured_image_url":"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2024\/11\/qtums-block-size-limit-will-be-governed-by-smart-contracts-heres-how.jpg","_links":{"self":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts\/23732","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/users\/2509"}],"replies":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/comments?post=23732"}],"version-history":[{"count":0,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts\/23732\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/media\/23733"}],"wp:attachment":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/media?parent=23732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/categories?post=23732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/tags?post=23732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}