{"id":22446,"date":"2018-03-15T16:51:41","date_gmt":"2018-03-15T16:51:41","guid":{"rendered":"http:\/\/ci027cfe6fb00226c3"},"modified":"2018-03-15T16:51:41","modified_gmt":"2018-03-15T16:51:41","slug":"decred-sets-its-sights-decentralization-2018","status":"publish","type":"post","link":"https:\/\/bitcoinmagazine.com\/business\/decred-sets-its-sights-decentralization-2018","title":{"rendered":"Decred Sets Its Sights on Decentralization in 2018"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><figure><img decoding=\"async\" src=\"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2024\/11\/decred-sets-its-sights-on-decentralization-in-2018.jpg\" title=\"\"><\/figure>\n<p>In 2015, Bitcoin developers Jake Yocom-Piatt and David Collins were getting frustrated with Bitcoin. The way they saw it, although Bitcoin started off as a decentralized system, over time, miners and a select group of developers had gained too much control over the protocol. In an attempt to create a system with a more open governance structure, the two launched <a href=\"https:\/\/www.decred.org\/\" target=\"_blank\" rel=\"noopener\">Decred<\/a> (short for \u201cdecentralized credit\u201d) on February 8, 2016.<\/p>\n<p>Decred is based on an alternative implementation of bitcoin called btcd, written in Google\u2019s programming language <a href=\"https:\/\/golang.org\/\" target=\"_blank\" rel=\"noopener\">Go<\/a>. The project\u2019s core ideas stem from a white paper titled \u201c<a href=\"https:\/\/www.decred.org\/research\/mackenzie2013.pdf\" target=\"_blank\" rel=\"noopener\">Memcoin2: A Hybrid Proof-of-Work, Proof-of-Stake Cryptocurrency.<\/a>\u201d Similar to Bitcoin, Decred has a 21 million supply cap. But unlike Bitcoin, 1.68 million (8 percent) of Decred\u2019s coins were pre-mined. Of those, half went to pay developers who contributed to the project early on, while the other half was airdropped (given out for free) to ensure a wide distribution in the network.<\/p>\n<p>In Decred\u2019s consensus system, proof of stake works alongside proof of work to give coin holders more of a voice in the system. Anyone who owns decred can buy <a href=\"https:\/\/forum.decred.org\/threads\/decred-ticket-buying-newbie-guide.5166\/\" target=\"_blank\" rel=\"noopener\">tickets<\/a> to participate in the protocol. The price of tickets (currently around $8,000) fluctuates based on demand to ensure that around 41,000 tickets are active in the network at any given time. When you buy a ticket (a process known as \u201cstaking\u201d) your coins are temporarily locked up for several months. When a new block is created, five tickets are chosen at random to verify the block and vote on outstanding issues. As an incentive to participate, voters get 6 percent of the block reward.<\/p>\n<p>Now headed into its third year, Decred recently released its 12-month <a href=\"https:\/\/blog.decred.org\/2018\/02\/28\/2018-Decred-Roadmap\/\" target=\"_blank\" rel=\"noopener\">roadmap<\/a>. <em>Bitcoin Magazine<\/em> spoke with project lead Yocom-Piatt to get a sense of the highlights of the roadmap.<\/p>\n<h3>Autonomous Treasury<\/h3>\n<p>Decred\u2019s most important project, by far, is its treasury system. Last year, Decred applied voting to unactivated consensus changes in the daemon. Similar to how soft forks get activated in Bitcoin, stakeholders in Decred vote by flipping a version bit in a block header. Once a majority threshold is reached, the new code activates automatically. <\/p>\n<p>Now, Decred wants to completely decentralize the control of its development funds. (Other projects are working toward similar goals, but if Decred pulls this off, it could be among the first to fully disintermediate the handling of treasury funds.)<\/p>\n<p>As it stands, 10 percent of Decred block rewards go into a <a href=\"https:\/\/explorer.dcrdata.org\/address\/Dcur2mcGjmENx4DhNqDctW5wJCVyT3Qeqkx\" target=\"_blank\" rel=\"noopener\">development fund<\/a> to create a consistent cash flow for the project. Right now, control of the funds (currently valued at $28 million) is in the hands of the Decred Holdings Group LLC. Plans are to pass control of those funds to the community via a decentralized autonomous organization (DAO), a type of smart contract that requires stakeholders to approve all spending. <\/p>\n<p>How it works is, anyone in the community will be able to submit a development proposal for a small fee. Ticket holders can then vote on the proposals they want to fund. Once a proposal is approved, users can create their own decentralized autonomous entity (DAEs) to govern the release of those funds.<\/p>\n<p>\u201cFor most practical purposes, you can consider a DAO and a DAE to be identical in function,\u201d Yocom-Piatt explained. \u201cFor Decred, there will be the project-level Decred DAO, which is effectively a government entity whose actions are dictated by the stakeholders, and then individual users can form their own DAEs, similar to how you or I could form a C-corporation or LLC here in the U.S. to start a business.\u201d<\/p>\n<p>Both the DAO and DAEs will exist on-chain, but proposal submission and voting will take place off-chain in a version-control system dubbed \u201c<a href=\"https:\/\/blog.decred.org\/2017\/10\/25\/Politeia\/\" target=\"_blank\" rel=\"noopener\">Politeia<\/a>,\u201d which is anchored to the blockchain via <a href=\"https:\/\/opentimestamps.org\/\" target=\"_blank\" rel=\"noopener\">timestamps<\/a>. This means nobody can surreptitiously modify a proposal.<\/p>\n<p>\u201cEvery hour, there is an anchor dropped into the Decred blockchain that allows you to basically say [that] all the information that is in this <a href=\"https:\/\/git-scm.com\/\" target=\"_blank\" rel=\"noopener\">Git<\/a> repository existed on or before a given date,\u201d said Yocom-Piatt. \u201cIt is like a time-ordered version of <a href=\"https:\/\/github.com\/\" target=\"_blank\" rel=\"noopener\">Github<\/a> that you cannot fake.\u201d<\/p>\n<p>Work on Politeia is nearly done, says Yocom-Piatt. Decred just needs to add a voting element before deploying the platform on the mainnet. He thinks Decred could have the DAO up and running by the end of 2018, but DAEs may not happen until 2019. <\/p>\n<p>Both types of smart contracts will be written in Bitcoin\u2019s scripting language (remember, Decred is a fork of Bitcoin) but will require extensions in the form of new <a href=\"https:\/\/en.bitcoin.it\/wiki\/Script#Opcodes\" target=\"_blank\" rel=\"noopener\">opcodes<\/a>. <\/p>\n<h3>Decentralized Exchange<\/h3>\n<p>In another ambitious undertaking, Decred is looking to remove trusted third-parties from the process of moving funds in and out of Decred. This way, someone holding, say, bitcoin, can trade their bitcoin for decred directly, without going through an external exchange. <\/p>\n<p>Key to this idea is the <a href=\"https:\/\/en.bitcoin.it\/wiki\/Atomic_cross-chain_trading\" target=\"_blank\" rel=\"noopener\">atomic swap<\/a>, smart contracts that authorize cross-chain trades based on whether participants can publish a hash preimage. Decred <a href=\"https:\/\/bitcoinmagazine.com\/articles\/decred-adds-atomic-swap-support-exchange-free-cryptocurrency-trading\">completed<\/a> the first on-chain atomic swap between Decred and Litecoin in October 2017. The next step is to create a decentralized exchange that is distinct from the majority of its peers. <\/p>\n<p>\u201cEveryone else who has used [atomic swaps] to date, has done so in an attempt to capture a fee on the swaps, either as an explicit fee or via an intermediate blockchain or a token that is used to coordinate the swap,\u201d Yocom-Piatt said. <\/p>\n<p>In contrast, Decred wants to implement atomic swaps in a way that captures no revenue, so that, eventually, other exchanges are no longer needed. \u201cThis isn&#8217;t about finding a way to compete with other exchanges for trading fees; it is about eliminating them,\u201d he said. <\/p>\n<p>Decred\u2019s goal in 2018 is to come up with a formal proposal for a decentralized exchange and put the proposal on Politeia for stakeholder approval. <\/p>\n<h3>Consumer-Oriented Approach<\/h3>\n<p>On-chain transactions on Decred take five minutes on average to settle (they take 10 minutes on Bitcoin), which is awkward at best when you want to pay for something on the spot. Decred is planning to implement the <a href=\"https:\/\/bitcoinmagazine.com\/articles\/understanding-the-lightning-network-part-building-a-bidirectional-payment-channel-1464710791\">Lightning Network<\/a>, a second-layer solution that allows transactions to be handled instantly off-chain and settled on-chain later, so that users can initiate transactions on the fly. (Lightning is also a central component in enabling atomic swaps.)<\/p>\n<p>Specifically, Decred is implementing lnd, the open-source lightning daemon spearheaded by <a href=\"https:\/\/lightning.engineering\/\" target=\"_blank\" rel=\"noopener\">Lightning Labs<\/a>. The bulk of the work in porting lnd from Bitcoin is nearly complete, says Yocom-Piatt. He adds that the work has been challenging. That is because Lightning was built with <a href=\"https:\/\/bitcoinmagazine.com\/articles\/segregated-witness-part-how-a-clever-hack-could-significantly-increase-bitcoin-s-potential-1450553618\">Segregated Witness<\/a>, and, even though Decred is a fork of Bitcoin, Decred still lacks many of the changes that were bundled into Bitcoin\u2019s Segregated Witness changeset. \u201cThere are some outstanding issues with transaction signatures that still need to be sorted out, at which point testing can begin,\u201d he said.<\/p>\n<p>Some instant transactions, like point-of-sale, are particularly useful if you make them with your mobile phone, similar to <a href=\"https:\/\/www.apple.com\/apple-pay\/\" target=\"_blank\" rel=\"noopener\">Apple Pay<\/a>. To that end, Decred is looking to add simplified payment verification (SPV) support to its wallet, so that mobile clients only need to download a small part of the blockchain to verify transactions.<\/p>\n<p>But Decred wants to implement SPV in a way that preserves privacy. Right now, many light wallets do not support SPV and instead rely on a central server for checking balance and transaction details. <\/p>\n<p>To do this efficiently, the server needs access to your public key, meaning the service can see all of the addresses you use. Meanwhile, most existing SPV clients rely on <a href=\"https:\/\/github.com\/bitcoin\/bips\/blob\/master\/bip-0157.mediawiki\" target=\"_blank\" rel=\"noopener\">bloom filters<\/a> to receive only the transactions relevant to a user\u2019s local wallet. The problem is bloom filters <a href=\"https:\/\/eprint.iacr.org\/2014\/763.pdf\" target=\"_blank\" rel=\"noopener\">leak information<\/a> about their users to all the nodes they connect with. <\/p>\n<p>To step around this issue, Decred is using a new light-client protocol by Lightning Labs known as <a href=\"https:\/\/github.com\/bitcoin\/bips\/blob\/master\/bip-0157.mediawiki\" target=\"_blank\" rel=\"noopener\">compact filters<\/a>, which offer most of the benefits of a centralized light wallet, without the negative privacy aspects of bloom filters. <\/p>\n<p>\u201cIt drastically reduces the amount of data you need to download to have a functional client,\u201d said Yocom-Piatt. \u201cIt is just the headers and some filters, basically 66 MB vs 2.1 GB for entire chain.\u201d He said SPV support should be available to users in the spring. <\/p>\n<h3>Undisclosed Privacy Plans<\/h3>\n<p>In Bitcoin, transactions are traceable. In 2018, Decred wants to introduce a proposal for a unique privacy feature that will allow users to send untraceable payments. Decred remains tight-lipped on the matter, other than to say it will take a different approach than Monero and Zcash. Yocom-Piatt\u2019s final comment on the matter: \u201cWe are going to deliver something working as opposed to just declaring what our plans are.\u201d <\/p>\n<p>Also on the to-do list, Decred plans to make several scaling improvements to its protocol and it will be updating the graphical user interface (GUI) on its <a href=\"https:\/\/decred.org\/wallets\/\" target=\"_blank\" rel=\"noopener\">Decrediton<\/a> wallet to support SPV, mobile, Politeia voting and the Lightning Network. <\/p>\n<p>While many cryptocurrency projects are viewed mainly as a store of value, Decred is steering itself toward a future as a functional payment system, and it wants to be among the first to get there. \u201cOur goal for 2018 is to cut the head off the snake, so nobody can cut the head off the snake later,\u201d Yocom-Piatt concluded. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Part of Decred\u2019s goal in 2018 is to come up with a formal proposal for a decentralized cryptocurrency exchange.<\/p>\n","protected":false},"author":3488,"featured_media":22447,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[556,143,1952,460,1705],"class_list":{"0":"post-22446","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-business","8":"tag-blockchain","9":"tag-decentralization","10":"tag-governance","11":"tag-lightning-network","12":"tag-protocol"},"author_data":{"id":3488,"name":"Amy Castor","nicename":"amy-castor","avatar_url":"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2024\/12\/amy-castor-promo-image-96x96.jpg"},"featured_image_url":"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2024\/11\/decred-sets-its-sights-on-decentralization-in-2018.jpg","_links":{"self":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts\/22446","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\/3488"}],"replies":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/comments?post=22446"}],"version-history":[{"count":0,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts\/22446\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/media\/22447"}],"wp:attachment":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/media?parent=22446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/categories?post=22446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/tags?post=22446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}