<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Helium Dev on Medium]]></title>
        <description><![CDATA[Stories by Helium Dev on Medium]]></description>
        <link>https://medium.com/@HeliumDev?source=rss-6ce6d137e116------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RQSufXTSl3j5KVHNyKGFIg.png</url>
            <title>Stories by Helium Dev on Medium</title>
            <link>https://medium.com/@HeliumDev?source=rss-6ce6d137e116------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 19:28:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@HeliumDev/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A Decentralized Approach to Building an IoT Network]]></title>
            <link>https://medium.com/helium-blog/a-decentralized-approach-to-building-an-iot-network-82beacb3ad46?source=rss-6ce6d137e116------2</link>
            <guid isPermaLink="false">https://medium.com/p/82beacb3ad46</guid>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[hardware]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[community]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Helium Dev]]></dc:creator>
            <pubDate>Thu, 21 Mar 2019 17:06:12 GMT</pubDate>
            <atom:updated>2019-03-21T17:06:12.646Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BCSkhn7aGxCk6jfaaeM1Ug.jpeg" /></figure><p><em>By </em><a href="https://blog.hackster.io/@jdgemm"><em>Dal Gemmell</em></a><em>, Head of Product Marketing and Planning</em></p><p>You may not be aware, but there’s a race going on to shape our future.</p><p>To control how we interact with our environment in new ways that could make us safer, smarter, and more productive.</p><p>Not satisfied with controlling access to our phones and computers, the telco giants want to dominate connectivity for billions of devices and control data collected from our interactions with the everyday world.</p><p>We lost the race for phones and computers to the telcos, and now they’re coming for control of everything else.</p><h4>Centralized vs. Decentralized IoT Network</h4><p>So what’s the alternative? If you want to build a wireless network optimized for long range and extended battery life for devices on the network, how would you do it?</p><p>Fundamentally there are two approaches: centralized vs. decentralized.</p><p>The <strong>centralized approach</strong> requires deploying infrastructure: either passing the costs/burdens without adding anything in return onto customers or attempting to become a mini-telco. For those who don’t feel customers should worry about deploying, maintaining, and having to support wireless infrastructure then the remaining choice is to become a mini-telco. The problem: it will take a <strong><em>long time to build</em></strong> and place towers and will <strong><em>require huge amounts of upfront capital</em></strong>. Not only for initial implementation, but also for operations, maintenance, and support. But even if ‘successful’ what have you really accomplished? You’ve become a mini-telco and at that point are you really better than an actual telco?</p><p>A <strong>decentralized approach</strong> would involve flipping the existing model on its head similar to how Airbnb became the largest accommodations provider without owning hotels. Airbnb built a community of hosts that provide spaces, and guests who rent the spaces.</p><p>For a decentralized wireless network, a two-sided market with a community of builders who provide wireless services on the supply side, and users of the network on the demand side, <strong><em>prevents past mistakes of telcos</em></strong> and <strong><em>ensures community ownership of the network</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IWwylE4Wbz-83bSDb02MfQ.png" /></figure><p>However, in this new approach <strong><em>how would you motivate builders to participate in laying the foundation for wireless infrastructure</em>?</strong></p><p>In other words, what’s in it for them?</p><h4>Solving the Cold Start Problem</h4><p>In a decentralized wireless network, solving the cold start problem needs to be addressed with well-designed hardware and powerful incentives.</p><p>In addition to the design, the hardware (let’s call it a hotspot) needs to consume minimal amounts of power, and be simple to set up.</p><p>The incentives need to be designed in a way that grows the supply side of the market independent of the actions of the demand side. In other words, builders of the network should receive rewards both for contributing to the network AND usage activity on the network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Oan9RpJ1COFCk8uCpww4A.jpeg" /></figure><p>If builders were only rewarded when a device connected to the internet through a hotspot the cold start problem would persist.</p><p>Users will only start to seriously look at the network once there was sufficient coverage (e.g., how willing would you be to purchase a cellphone knowing coverage would be based on the number of cellphones sold?). From a builder’s perspective, if their only reward is based on fees collected from devices then they’ll hold off deploying a hotspot until there’s lots of devices built for the network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4nZtOh50Bzgfx1TXGf_MCg.png" /></figure><p>So how to reward builders independent of usage just for providing wireless coverage in a way that is automated without any centralized authority?</p><h4>Blockchain in the Real World</h4><p>Using blockchain would allow you to create an incentive system to reward builders in two ways: first, by providing wireless coverage the builder could <strong>earn mining rewards</strong>; and second any time an <strong>IoT device connects to a hotspot</strong> to transfer data to the internet the builder also earns.</p><p>Blockchains are far from perfect and after 10 years as usage and value has grown limitations have emerged including the formation of mining pools, the amount of power needed for consensus and proof of work protocols, and the censoring of transactions.</p><p>To avoid replicating these mistakes you’d need new protocols that could contribute useful “work” to the network, were energy efficient, prevented censoring of transactions, and could scale to handle a high volume of microtransactions.</p><p>By building new protocols you could use blockchain as the underlying technology for the reward system to ensure the network was truly decentralized, owned and operated by the builder community and ultimately avoid the past mistakes of telcos.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rIj7k53i5_wX24qpMXr03g.png" /></figure><h4>Open Source</h4><p>Besides correctly incentivizing all participants to act in the <strong>best interests of the network, </strong>for a community-owned, decentralized network to be successful it needs to run on <strong>truly open protocols and hardware</strong>. The infrastructure — from the wireless modulation scheme to cloud routing — has to be open for enterprises to trust the network and the motivations of the operators. Proprietary technologies will only further fragment the infrastructure, cause more complexity, and ultimately negatively impact progress.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S7f08QzEOsJcnXPETtcXUQ.jpeg" /></figure><h4>The Race Isn’t Lost. Yet.</h4><p><a href="http://www.helium.com/">Helium</a> is taking a decentralized approach to building a new kind of wireless network: truly open, private, and community owned.</p><p>This community-built and owned network will deliver ubiquitous and affordable wireless coverage that lets us interact with our world in ways never before possible.</p><p>A new class of devices and applications built on this network will emerge with the potential to solve an unlimited number of problems including protecting communities from wildfires, finding lost pets miles from home, or identifying food or water sources instantly.</p><p>We lost the race for phones and computers, but the stakes are even bigger for everything else.</p><p><strong>And we can win.</strong></p><p>Join the race and contribute to something bigger.</p><p>To learn more about our decentralized approach towards networking, including how to become a builder, <a href="https://www.helium.com/waitlist">visit here</a>.</p><figure><a href="http://whitepaper.helium.com/"><img alt="" src="https://cdn-images-1.medium.com/max/637/1*Wg_HKTWT2Hc-lMLbj6hc_Q.png" /></a></figure><figure><a href="http://www.helium.com/"><img alt="" src="https://cdn-images-1.medium.com/max/637/1*z-Xgs07MRVcMGCmKo_1T6A.png" /></a></figure><figure><a href="https://t.me/helium_network"><img alt="" src="https://cdn-images-1.medium.com/max/637/1*UWS3yLuMThJxzfZ_Lxl2pw.png" /></a></figure><figure><a href="http://www.helium.com/waitlist"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sUH7ukHjrKVxSeIEoYMBWQ.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82beacb3ad46" width="1" height="1" alt=""><hr><p><a href="https://medium.com/helium-blog/a-decentralized-approach-to-building-an-iot-network-82beacb3ad46">A Decentralized Approach to Building an IoT Network</a> was originally published in <a href="https://medium.com/helium-blog">The Helium Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Blockchain is a Terrible Idea for Applications]]></title>
            <link>https://medium.com/helium-blog/why-blockchain-is-a-terrible-idea-for-applications-21de0fd6c425?source=rss-6ce6d137e116------2</link>
            <guid isPermaLink="false">https://medium.com/p/21de0fd6c425</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Helium Dev]]></dc:creator>
            <pubDate>Fri, 16 Nov 2018 18:11:22 GMT</pubDate>
            <atom:updated>2018-11-16T18:11:22.801Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0FBJxJiUYg1hLl6pcJN37A.jpeg" /></figure><p><em>By Andrew Thompson, VP of Engineering</em></p><h3>Here we go again</h3><p>Much like when the .com bubble burst, the cryptocurrency/blockchain market is headed towards an extinction event. There’s a reckoning to come and even companies with good ideas will discover issues during project execution. It turns out it’s a lot easier to describe in a whitepaper your plan to replace AWS, AirBnB or Uber with your blockchain project than actually pulling it off. These are difficult markets to attack and showing up to the fight with inferior UX, a fraction of the user-base, and the one shining “advantage” of decentralization won’t be enough.</p><h4>Why blockchains aren’t suitable for almost all projects</h4><p>Blockchains are not suitable for almost all projects; they’re slower, more complicated to develop applications for, and there are many security issues. In addition, decentralized applications running on the blockchain are out of your control — updates or changes require consensus.</p><p>All of which results in a minimum viable product that’s a lot harder to build or much more insecure. The upshot of this is the blockchain version of anything is either going to take significantly more effort to build or the team will have to cut corners that should not have been cut to get to a MVP faster.</p><h4>Using a blockchain, but not decentralized</h4><p>Some projects address blockchain shortcomings by using databases to store data (e.g., CryptoKitties, Bee Token). So, for example, a small amount of data goes onto a blockchain, but the majority is stored in a database (stored off-chain) with references back to the blockchain.</p><p>This hybrid approach may solve some problems, but others appear. What happens if the server goes offline or you lose the database? Also, anytime databases are leveraged, core centralized problems return: databases can be attacked, data stored in the database can be changed, or get compromised.</p><p>If 90% of data is stored off-chain in a database what have you really built and why have you built it on the blockchain?</p><p>The only thing you’ve done is tie your data to a public ledger and verify a link from the blockchain to the database existed at a certain point. But what‘s the benefit besides creating a digital notary about when something was added and evidence that something hasn’t been tampered with since? We can’t use that information to figure out any meaning at that point in time as it’s usually a one-way-hash of the data stored elsewhere.</p><p>Similarly, many projects use IPFS with a cluster of distributed nodes to host the data rather than keep it on the blockchain. This on the face of it feels decentralized, but there’s often no thought put in to the economics or incentive around keeping these nodes online. If the data is only “distributed” among a handful of participants, it’s really not a significant improvement over just using a centralized database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aNZ2qgWGupN4hNadUfgcaw.jpeg" /></figure><h3>Blockchain burdened by extra work</h3><p>If transaction speed is critical to your application’s success then you should think databases, not blockchains.</p><p>Some blockchains claim they can perform up to 500,000 tx/sec and while this speed may be fast compared to other blockchains, it’s slow compared to a database running on just a single machine (not a cluster). For example, a big SQL server is going to eat those numbers for lunch and will crush the capacity of Bitcoin, Ethereum or whatever blockchain network.</p><p>Even if future blockchains do increase in speed, fundamentally it is highly unlikely it will ever be faster than a database because it needs to do extra work. Most ‘classic’ blockchains combine two distinct activities together: mining and transaction processing.</p><p>Bitcoin is the best example; once you have enough transactions you start mining that block, and then need to solve the associated challenge to prove you’ve expended the requisite effort to “secure” the block. Requiring this proof of work ensures that the blockchain is proof against a minority party (in terms of compute power) derailing the consensus rules. Regardless of the blockchain, when mining is coupled with transaction processing the system can only go as fast as mining permits.</p><p>Other blockchain architectures elect or designate block producers so they decouple the Sybil attack countermeasures from the act of producing a block. This leads to faster block production rates, but there’s still a lot of work every consumer of that block has to do; signature validation, merkle tree checking, verifying hashes, etc. If you skip any of these steps for efficiency’s sake you’re open to being fed false or altered information, which will corrupt your view of the distributed ledger.</p><p>With 40 years of database research, compared to approximately ten for blockchains, databases will be faster for the foreseeable future.</p><p>To successfully design a blockchain-powered system that can actually be called decentralized it’s crucial to very carefully consider what you store on-chain and what you can <strong>avoid</strong> storing on-chain. At Helium we really want to let the device owners store their own information however they want and just use the blockchain as a routing and settlement layer for tracking gateway identity. Devices simply indicate their identity and we use prefix routing on their identifier to route the packet to the right place. We don’t store information about the actual device on-chain. The fastest blockchain transactions are the ones you don’t make.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kGzodCZd8DuKkjSA8OZQnA.jpeg" /></figure><h3>Loss of control</h3><p>Fundamentally when you put something on the blockchain that means you’re effectively releasing control. Are you willing to give up control to become truly decentralized? If so, you need to prepare for a number of questionable uses of the system. You don’t get to say I’m banning that user. Or I’m deploying a new version of the software to fix a bug. If you’re not willing, then why choose to use a blockchain?</p><p>If you are truly committed to a decentralized system, depending on the type of governance, to take action buy in is typically required from the majority of participants. This can take time and be cumbersome. As an example, we’ve seen contention over the Bitcoin 1 MB block size. The issue turned into a huge, very polarized debate and ended up with Bitcoin Cash becoming a fork. Technical decisions get weaponized as political ones.</p><p>In Bitcoin, for miners to vote they need to put a small amount of information in a piece of an unused block as a voting mechanism. Lots of chains recognize this as an issue and look to improve it with better on chain governance. However, now you have to solve a distributed voting problem with weak identities. If you choose to let only the miners vote then you disenfranchise the users and the network becomes run for-and-by miners.</p><p>Finally, another governance model is “whatever the development team says”. Indeed, this is often the early model used, somewhat by necessity (blockchains are software, they don’t launch bug-free). However, if you don’t have a plan or the desire to move beyond this eventually you’ll hit a point where you’re disenfranchising your users and they’ll push back.</p><blockquote>Bitcoin has over 70 chain forks and probably several hundred codebase forks. This reflects not only Bitcoin’s popularity but also the fact that it has a fair miner and developer-centric governance.</blockquote><p>When users don’t feel their needs are being met, there are several ways they can push back: they can refuse to update their software, they can fork the codebase or they can jump ship to something else that meets their needs better. None of these are desirable from the project creator’s standpoint so you should try to forestall them by making sure the users feel like their concerns and needs are being considered.</p><p>Bitcoin has over 70 chain forks and probably several hundred codebase forks. This reflects not only Bitcoin’s popularity but also the fact that it has a fair miner and developer-centric governance. An even more extreme example is Monero, Monero is a fork of Bytecoin, but it has completely obliterated Bytecoin in terms of market share because the community fork was more focused on features that users wanted to see and that the community did not trust the original developers of Bytecoin.</p><p>At Helium, this loss of control was actually something we wanted. Nobody wants to trust their information to a third party or have hardware they paid for stop working if a company goes out of business or on an “<a href="https://ourincrediblejourney.tumblr.com/about/">incredible journey</a>”. We very intentionally designed a system that flipped the normal IoT ownership rules on their head to put the customer back in charge of their information and devices while still building a seamless global network. To that end, we needed a network that enabled devices that don’t trust each other to still collaborate safely. This is the killer feature of blockchains, they allow untrusted consensus to be built and systems to be resilient if any members of the community depart. We want to enable other companies and users to build their own gateways, implement their own end-nodes, their own wallet, their own consensus implementation, etc. We think the value of an “always on, everywhere” IoT network far outweighs the advantages of a single-vendor, proprietary network. After enabling the creation of that network, a profitable business model can be derived by providing services around that open ecosystem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sv2Gwx4iD7qFweQ17adGiQ.jpeg" /></figure><h3>Increased complexity</h3><p>What makes building blockchain applications complicated is you’re forced to use a less expressive way to write business logic for applications that need to run in an untrusted context.</p><blockquote>There’s hundreds of millions of ETH locked up in smart contracts because of various programming errors.</blockquote><h4>Fuzzy business logic</h4><p>To write blockchain applications you often need to work with something like a smart contract; and while the smart contract language will give you certain primitives, they may not be ones you’re familiar with. Solidity has all kinds of gotchas, trips, and traps. Mistype one character and your smart contract is vulnerable. There’s hundreds of millions of ETH locked up in smart contracts because of various programming errors.</p><p>In general, it’s not clear the industry is very good at writing smart contracts, and the support and tooling for writing them well is still a very fast moving area. With traditional legal contracts, contract disputes have ways to be resolved. A smart contract, almost by definition, cannot be wrong because “code is law”. However, if there’s an error in a smart contract, unlike with a regular contract, you can’t take a dispute to a court to decide intent vs implementation. If we can’t write regular software without bugs, we should be cautious about delegating final decisions to immutable code that we can’t fix or revert if an error is found later.</p><p>Implementing your business logic with these constraints can be very tricky. Smart contracts also usually cost tokens or “gas” to run and store data on the chain, so you have to be extremely careful how often you execute your code and how much storage it uses. At one point it was estimated storing 1Gb on the Ethereum blockchain would cost about 1 million dollars.</p><p>Even if you’re able to implement your business logic compactly and safely in a smart contract, now you have the problem of upgrading it. Often the solution is to have a shim contract that calls into the latest version of your “real” code. In fact, whole smart contract “operating systems” are emerging to give you access to smart contracts implementing common tasks. While this sounds great, we’ve seen several cases where a failure in a fundamental contract like this has been catastrophic.</p><p>At Helium we’ve chosen to avoid implementing smart contracts for now. Happily, our blockchain doesn’t require general purpose compute to be useful. We plan to implement some of the more useful smart contract patterns (Hash Time Locked Commitments, Multisig transactions, etc). If smart contract languages, runtimes, and tooling improve we’ll definitely revisit that decision, but for now we feel that it’s safer to provide a set of well-tested, predefined transaction types that deliver the features we anticipate needing.</p><h4>Running without trust</h4><p>One of the biggest challenges running in an untrusted context is how do I generate a random number in a smart contract? It’s actually very hard because if that random number is at all important to the execution of that smart contract, the miner is going to see it before anybody else. So with that prior knowledge, it’s possible they can take unfair advantage of the system including front-running the transaction.</p><p>How do you build these systems when effectively all your business logic is out there for everyone to see? Imagine building an application and anyone can look at the source code and state of the system at any time. Let’s say you’re running a public lottery on the blockchain; everybody pays in, whoever draws the random number gets paid. If you run the lottery server, and you’re honest (or regulated by the state gaming commission) it’s easy. As soon as everyone is running the lottery server how do you make that work without being exploited or front-run?</p><p>If you’re running code on a smart contract, which is effectively where you put your business logic for a distributed application (dApp), you have to figure out how to keep that secret from the people running the smart contract as part of the mining process so they don’t have privileged information. You need to consider what happens if a miner is looking for these kinds of transactions or smart contract executions. There are already examples of bad actors with privileged positions using knowledge of incoming transactions to take advantage of the system.</p><p>At Helium we are very interested in preventing the miner censoring transactions they don’t like or front-running them when it’s profitable. To that end, the consensus protocol we’ve chosen to implement, HoneyBadgerBFT, is a censorship <em>resistant </em>consensus protocol. It makes use of threshold encryption to ensure that miners have a harder time ignoring valid transactions they don’t want to include (because the transaction fee is too low, or because it might dilute their power or position) and we’re investigating ways to strengthen those properties further.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IkPXAy0qxFzImxhpoqa8HA.jpeg" /></figure><h3>Security</h3><p>Once you put information on a permissionless blockchain, everyone can see it. Some users may have some special local knowledge, eg. a decryption key, that can allow them to access private information in a public blockchain but, in general, what one user of the blockchain sees, everyone sees. This can make some things that are simple in the centralized model much harder when it’s done in a decentralized way on a public, permissionless blockchain. If a miner can use transaction information to predict the outcome of a smart contract, they can front-run that transaction by delaying the user’s transaction and putting a transaction they crafted to exploit their advance knowledge ahead of it in the blockchain. Imagine a miner seeing a large buy/sell order transaction come in on a decentralized exchange where they can use that advance knowledge to their advantage by buying/dumping right before the big trade is processed.</p><blockquote>The immutability of the ledger can be a double-edged sword and you need carefully consider what you want to store and how you want to store it because there’s no undo button.</blockquote><p>In general the stakes for putting information into a blockchain are much higher; once you put it in, you can’t take it back out. This means that even if you think what you’re doing today is secure you also have to think about what that information could mean in the future if a private key is lost or your security scheme is broken. The immutability of the ledger can be a double-edged sword and you need carefully consider what you want to store and how you want to store it because there’s no undo button.</p><h3>And still we chose a blockchain</h3><p>At Helium we knew a blockchain was a critical component to build a wireless network that was truly decentralized. To learn why we chose to build our own blockchain despite knowing the formidable challenges read my blog post <a href="https://blog.helium.com/introducing-the-helium-blockchain-dc2f8997083c">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mn09S7-36U5go-s2UlTZ1A.png" /></figure><figure><a href="http://www.helium.com/"><img alt="" src="https://cdn-images-1.medium.com/max/871/1*paiBV-xskzmx0RqBc1TO6Q.png" /></a></figure><figure><a href="http://whitepaper.helium.com/"><img alt="" src="https://cdn-images-1.medium.com/max/871/1*KfWl9J_Cjinis9Odf_mx3A.png" /></a></figure><figure><a href="https://t.me/helium_network"><img alt="" src="https://cdn-images-1.medium.com/max/871/1*O2rbqG2kGjEXWVGN2WS0HA.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21de0fd6c425" width="1" height="1" alt=""><hr><p><a href="https://medium.com/helium-blog/why-blockchain-is-a-terrible-idea-for-applications-21de0fd6c425">Why Blockchain is a Terrible Idea for Applications</a> was originally published in <a href="https://medium.com/helium-blog">The Helium Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a truly decentralized system with a distributed key generator]]></title>
            <link>https://medium.com/helium-blog/building-a-truly-decentralized-system-with-a-distributed-key-generator-930a210f4a72?source=rss-6ce6d137e116------2</link>
            <guid isPermaLink="false">https://medium.com/p/930a210f4a72</guid>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[decentralization]]></category>
            <dc:creator><![CDATA[Helium Dev]]></dc:creator>
            <pubDate>Thu, 16 Aug 2018 21:05:23 GMT</pubDate>
            <atom:updated>2018-08-16T21:05:23.998Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r7917C5gzvWWBmA_n-MahA.png" /></figure><p><em>By Andrew Thompson, VP of Engineering</em></p><p>Any system that still requires a trusted entity to hold secrets is by nature not decentralized and suffers from a number of weaknesses including: single point of failure, susceptibility to Denial of Service attacks and, worst of all, having the secret stolen.</p><p>When we set out to build a new wireless network for machines at Helium, we had a number of design goals, key among them was to be truly decentralized in nature (other goals included permissionless, byzantine fault tolerance, useful proof of work/identity, high confirmed transaction rate, and transactions being censor resistant. For more details see the Helium <a href="http://whitepaper.helium.com/">whitepaper</a>).</p><p>Since centralized organizations dictate network cost and coverage, we decided a decentralized approach would be an effective way to provide broad, affordable wireless coverage for low power devices over long distances.</p><p>To build our decentralized machine network we chose to reward our community to provide wireless network coverage by hosting gateways.</p><p>To ensure community members provide valid coverage we created a new proof of work system we call Proof of Coverage. Proof of Coverage is the first proof protocol that leverages radio waves to validate network coverage and uses it to achieve consensus on a physical blockchain.</p><p>Community members providing coverage with gateways are rewarded with Helium tokens through mining and transaction fees from users of the network.</p><p>For a gateway to mine it needs to belong to the consensus group. Gateways can be elected to a consensus group by earning a score based on providing legitimate wireless coverage.</p><p>In Helium, this consensus group is temporarily assigned the task of running the consensus protocol to accept transactions and create blocks. The Helium consensus protocol needs to use threshold encryption for two tasks: to agree on transactions for the next block without censoring them and to provide a ‘<a href="https://eprint.iacr.org/2000/034.pdf">common coin</a>’ to break deadlocks in agreement . These kinds of threshold cryptosystems require a key to be shared between all members of the consensus group. Obviously a single party knowing the complete key is a big security hole, so that‘s why we needed to build a distributed key generator.</p><p>A <a href="https://eprint.iacr.org/2012/377.pdf">distributed key generator</a> is a way for a group of nodes to collectively agree on a public/private key pair <em>without</em> any single party knowing the private key (everyone knows the public key). This is actually very hard to achieve, but it relies on the fact that <a href="https://en.wikipedia.org/wiki/Lagrange_polynomial">lagrange interpolated shares</a> are homomorphic (in that operations can be performed on shares even without knowing the full value). For example, you can add A{share1}+B{share1} to get C{share1} that you can add to someone else’s C{share2} to get the <em>full</em> value of C (assuming A and B were split into 2 shares each).</p><p>I wanted to explain how a DKG works over <a href="https://en.wikipedia.org/wiki/Pairing-based_cryptography">pairing based keys</a> in a way that should be understandable to a non-technical audience. I’ve played with a few metaphors, but the one that comes closest to how it actually works is based on pin-tumbler locks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sQMhh7aG1Y4DxbXtc8i9hA.jpeg" /></figure><p>A pin tumbler lock works by the key pushing several ‘key pins’ to the right height such that the shear line between the key pin and the driver pin lines up with the shear line between the part of the lock that rotates (the core), and the part of the lock that is fixed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*20tDWHdQdq9Xs4rk6WSmEw.png" /></figure><p>When the correct key is inserted, all the pins line up so the shear line is clear and the core can rotate. If even one pin is wrong the lock won’t open.</p><p>Imagine with me, if you will, that I design a lock (with the corresponding key). I know how deep each cut for each pin on the key needs to be, but nobody else does. I give all my peers a share of the key pin information such that T+1 (T+1 is the <em>threshold</em> number of shares you need to reconstruct the original data) shares of the key pin information are enough to make a key that opens the lock. This is called <a href="https://en.wikipedia.org/wiki/Shamir%27s_Secret_Sharing">secret sharing</a>.</p><p>Now, this is fine if everyone trusts me to not leak my knowledge of the key. However, it is not sufficient if we want the property that <em>nobody</em> should know what the key looks like, and this is where a <em>distributed</em> key generator comes in.</p><p>In addition to ‘normal’ pin-tumbler locks, locks exist with a ‘cross key’ where the key has several blades, each one with a corresponding set of pin tumblers:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*deLaVA_foqwWtm0u3CAGYQ.png" /><figcaption>‘Cross Key’ Keys require two sets of combination blades</figcaption></figure><p>Now, imagine the key had N blades (where N is the number of people you are generating the key with). Each member generates the pin tumbler configuration for <em>their</em> blade and shares it as described above. Then once everyone has shared their blade and received their share of the other blades we now have a lock that <em>nobody</em> knows how to open, but T+1 members can combine their shares to construct a key to unlock it. This is distributed key generation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZeY0chwmCIgc2Yv-JQgAxQ.png" /><figcaption>Blades combining to form a new key</figcaption></figure><p>In normal usage the full key is not usually recovered, rather holders of the key shares work together to perform operations in a <a href="https://en.wikipedia.org/wiki/Threshold_cryptosystem">threshold cryptosystem</a> (eg. T+1 of N are required to participate in signing a message or T+1 of N parties are required to participate in decrypting a message).</p><p>Building a distributed key generator is hard but necessary work to achieve a more secure system, and these challenges excite the team knowing we’re building the world’s first decentralized machine network.</p><p>To follow progress of our DKG work, check out our <a href="https://github.com/helium/erlang-dkg">github repo</a>.</p><figure><a href="https://t.me/helium_network"><img alt="" src="https://cdn-images-1.medium.com/max/610/1*fgCQWsakNXfBUVgwfvnSfg.png" /></a></figure><figure><a href="http://www.helium.com/"><img alt="" src="https://cdn-images-1.medium.com/max/610/1*AG902TeF2RCJiXgzN6Mo0Q.png" /></a></figure><figure><a href="http://whitepaper.helium.com/"><img alt="" src="https://cdn-images-1.medium.com/max/610/1*VPqg41pBgmw5zRJDuQUO2A.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=930a210f4a72" width="1" height="1" alt=""><hr><p><a href="https://medium.com/helium-blog/building-a-truly-decentralized-system-with-a-distributed-key-generator-930a210f4a72">Building a truly decentralized system with a distributed key generator</a> was originally published in <a href="https://medium.com/helium-blog">The Helium Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>