<?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 Nico Vergauwen on Medium]]></title>
        <description><![CDATA[Stories by Nico Vergauwen on Medium]]></description>
        <link>https://medium.com/@Nico_Vergauwen?source=rss-c0b927f5f0d9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*2NIdILA_EWwczpzH_ri3Pg.jpeg</url>
            <title>Stories by Nico Vergauwen on Medium</title>
            <link>https://medium.com/@Nico_Vergauwen?source=rss-c0b927f5f0d9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 22:08:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Nico_Vergauwen/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[The Verifiable Agent]]></title>
            <link>https://medium.com/@Nico_Vergauwen/the-verifiable-agent-d3f7be6e6f9c?source=rss-c0b927f5f0d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3f7be6e6f9c</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Nico Vergauwen]]></dc:creator>
            <pubDate>Mon, 29 Jun 2026 08:31:21 GMT</pubDate>
            <atom:updated>2026-06-29T08:31:21.028Z</atom:updated>
            <content:encoded><![CDATA[<p><em>follow me on X for the best Crypto x AI insights — </em><a href="https://x.com/nico_vrgwn"><em>https://x.com/nico_vrgwn</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2Vb5SYKAd0No6isP" /></figure><p>Since the U.S. government forced Anthropic to abruptly disable Claude Fable globally the decentralised tech world is obsessed with where AI models are running. Everyone is arguing about decentralized inference and moving models out of centralized providers. But as we move from AI copilots to autonomous and sovereign agents that execute tasks, handle money and make decisions on our behalf or on its own, the biggest hurdle isn’t where the inference happens, it’s <strong>trust</strong>. That requires infrastructure for connected intelligence and coordination where agents can perceive, remember, connect and act. The real unlock for the foundation of the entire AI agent economy is a verifiable state machine for agents that can prove what model an agent used, how an agent thought, what it remembers and what actions it took. Until we have verifiable state machines that guarantee the integrity of an agent’s execution and memory, these agents remain isolated. By binding verifiable inference and memory to a trustless coordination substrate, <a href="https://theseus.network/">https://theseus.network</a> isn’t just a new protocol, it is the operational framework for the next era of the internet.</p><h3>Execution</h3><p>An agent’s decision is only ever the product of three things: the model that ran, the inputs and context it was handed, and the computation that tied them into an output. Leave any of those unverified and the decision is just an assertion with confidence attached. Trusting what an agent did means being able to pin down every link in that chain.</p><blockquote><em>Did the agent run the model it was supposed to ? <br>Did the agent use the given input and context ? <br>Did that specific combination produce this exact output or actions (tool calls) ? <br>Is the agent mandated to execute those actions ?</em></blockquote><h3>Memory</h3><blockquote><em>Was the context used legitimate or poisoned ?<br>Were the memories used current or stale ? <br>Why did specific data allowed to influence an action ?</em></blockquote><p>Execution proves an agent computed honestly. It says nothing about whether the thing it computed over was real. An agent that faithfully reasons over a poisoned context produces a poisoned result with a clean signature on it, and a memory that was true last week can quietly wreck a decision made today. The standard that applies to computation has to apply to what the agent pulls into context in the first place</p><h3>The Verifiable Agent</h3><p>Put the two together and an agent’s entire decision can be reconstructed and checked by anyone: the model it ran, the context it ran on, the result that followed, and the right it had to act. That is the line between an agent you have to supervise and one that other agents, protocols and people can build on.</p><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//x.com/TheseusNetwork/status/2064183571246723151&amp;image=https%3A//i.embed.ly/1/image%3Furl%3Dhttps%253A%252F%252Fpbs.twimg.com%252Fprofile_images%252F2057706594453098496%252FAaRYt8eC_200x200.jpg%26key%3Da19fcc184b9711e1b4764040d3dc5c07" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/60943893dfae7c5440de1570f11e938c/href">https://medium.com/media/60943893dfae7c5440de1570f11e938c/href</a></iframe><blockquote>If you’re building autonomous or verifiable agents, my DMs are open on X — <a href="https://x.com/nico_vrgwn">https://x.com/nico_vrgwn</a>.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3f7be6e6f9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Agents & Smart Contracts 2.0 — The third wave of blockchain]]></title>
            <link>https://medium.com/coinmonks/ai-agents-smart-contracts-2-0-the-third-wave-of-blockchain-88a1137fdeae?source=rss-c0b927f5f0d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/88a1137fdeae</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Nico Vergauwen]]></dc:creator>
            <pubDate>Thu, 11 Jun 2026 05:34:15 GMT</pubDate>
            <atom:updated>2026-06-11T05:34:15.576Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//x.com/TheseusNetwork/status/2064183571246723151&amp;image=https%3A//i.embed.ly/1/image%3Furl%3Dhttps%253A%252F%252Fpbs.twimg.com%252Fprofile_images%252F2057706594453098496%252FAaRYt8eC_200x200.jpg%26key%3Da19fcc184b9711e1b4764040d3dc5c07" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/60943893dfae7c5440de1570f11e938c/href">https://medium.com/media/60943893dfae7c5440de1570f11e938c/href</a></iframe><p>For most of the last decade, crypto has been described as a new financial system. The pitch was that finance, identity, governance, and most of the institutional plumbing of the modern world would migrate onto open networks where the rules were enforced by code instead of trust in people. What crypto actually built was an execution environment: software that could hold assets, enforce rules, and coordinate activity without relying on any institution in the middle. That turned out to be a very real breakthrough. It just wasn’t enough on its own.</p><h3>The problem was always that smart contracts could act, but not think, interpret and perceive.</h3><p>A smart contract can move money, settle a trade, or enforce collateral requirements with near-perfect reliability. But it cannot interpret context. It cannot read a document, evaluate intent, detect fraud, weigh ambiguity, or make a judgment call. The moment a system depended on interpretation rather than deterministic execution, the abstraction broke.</p><h3>That constraint shaped almost the entire history of crypto.</h3><p>The categories that worked over the last decade were the ones where the world could be reduced to explicit rules and clean inputs; stablecoins and decentralized exchanges. All other categories struggled because they depended on interpretation and judgment. Lending without overcollateralization. Insurance. Reputation. Governance. Prediction markets. Most forms of decentralized coordination. These systems all failed at the same boundary: somewhere in the loop, someone had to decide whether something was true.</p><p>Is this oracle being manipulated? Was this insurance claim legitimate? Is this computed result correct ? Did this shipment actually arrive? Does this governance proposal make sense?</p><p>The contract itself could not answer those questions, so the decision leaked outward into committees, multisigs, moderators, legal entities, oracles, and informal governance structures. The trusted intermediary came back in a form worse than the institutions we already trusted. We spent ten years trying to build judgment-dependent systems on top of software that could not perform judgment.</p><h3>Agents change the design space</h3><p>Not because AI models are perfect, but because machine intelligence and judgment now exists as a callable primitive. A model can interpret text, evaluate evidence, recognize patterns, detect inconsistencies, and produce a defensible decision inside a software system, and often surprisingly well. Once you combine machine judgment with programmable execution, the nature of the contract itself changes. A smart contract is no longer just a static rules engine. It becomes software capable of observing, reasoning, and acting.</p><h3>The smart contract becomes an AI agent, and vice versa</h3><p>This is why the recent wave of AI agents feels qualitatively different from the bots that came before. Most software historically could execute tasks but not interpret reality. Agents can now do both. They can read information, form judgments, take actions, and adapt over time. The original promise of smart contracts was about creating software-native institutions: systems that could coordinate economic activity without relying on centralized human operators. The problem was that institutions require judgment and perception, and blockchains up until now only knew how to execute rules.</p><h3>Crypto suddenly looks different in that world</h3><p>A market can monitor itself for manipulation. A lending protocol can evaluate risk instead of demanding blanket overcollateralization. An insurance system can adjudicate claims based on evidence rather than predefined triggers. A reputation system can emerge from observed behavior instead of static attestations. Governance can evolve from token-weighted polling into systems that can actually reason about outcomes and constraints. For years these ideas existed in an uncanny valley where they sounded plausible conceptually but collapsed operationally. The missing primitive was interpretation.</p><h3>Theseus is building that coordination and interpretation layer</h3><p>The new markets that traditional smart contracts promise to deliver, finally become possible. The categories that failed in the last decade become buildable. At the same time, a new class of economic participants is emerging that fits crypto rails naturally well.</p><p>Human beings have operated inside dense institutional layers for centuries. We have banks, courts, regulators, customer support, etc. Most people do not wake up desperate for a censorship-resistant settlement layer without intermediaries. But agents transacting, hiring each other, and settling their own disputes have no banks or courts to fall back on. They need an open economy.</p><p>For a decade the original vision felt almost real and never quite was. The rails existed. The assets existed. The settlement layer existed. But the execution model was still incomplete. Ethereum gave software the ability to hold assets and enforce rules.</p><h3>Smart contracts 2.0 give software the ability to perceive, decide, and act.</h3><p>That is not a marginal improvement to the chain. It is not faster blocks, cheaper gas, or a better VM. It is a shift from deterministic execution over pre-chewed inputs to cognitive execution over the world as it actually exists. The world that was promised was waiting for smart contracts that could think.</p><blockquote><a href="https://theseus.network/">Theseus.network</a> gives agents the properties of smart contracts; persistent identity, verifiable execution, and independence. That means agents can hold resources, execute as themselves, prove what they did, and operate under rules multiple stakeholders can trust.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*h3tvdv9IBEehcwZp.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88a1137fdeae" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/ai-agents-smart-contracts-2-0-the-third-wave-of-blockchain-88a1137fdeae">AI Agents &amp; Smart Contracts 2.0 — The third wave of blockchain</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rollups are Symbi-idiotic]]></title>
            <link>https://medium.com/@Nico_Vergauwen/rollups-are-symbi-idiotic-7ebd3680eb7a?source=rss-c0b927f5f0d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ebd3680eb7a</guid>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Nico Vergauwen]]></dc:creator>
            <pubDate>Tue, 22 Apr 2025 16:18:56 GMT</pubDate>
            <atom:updated>2025-04-22T16:24:56.726Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://x.com/0xiamnico"><em>Follow me on X if you liked this blog</em></a><em>. Title courtesy of </em><a href="https://x.com/chainyoda"><em>chainyoda</em></a></p><p>Ethereum’s pivot to rollups is often celebrated as a masterstroke: faster scaling, decentralized execution, low transaction costs. But behind the narrative, an uncomfortable truth lurks: <strong>Rollups are currently not symbiotic with Ethereum.</strong></p><p>They are extractive layers, made possible by incentive misalignment, that weaken Ethereum’s economic engine. Meanwhile, sharding, dismissed as “too complex,” might not have been harder, and would have secured Ethereum’s monetary future far better.</p><p>It’s time to face harsh truths and confront the elephants in the room.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OmtHiKMq6y02XBZQ" /></figure><h3>1. Rollups are extractive by design</h3><p>L2 Rollups batch hundreds or thousands of transactions into a single ‘post’ on Ethereum L1 (referred to as a blob). Rollups are incentivized to <strong>maximize execution profits internally while minimizing the fees they pay to Ethereum’s base layer</strong>. The bulk of value capture (MEV, sequencer fees, …) accrues at the rollup layer, not Ethereum.</p><p>Neither are teams like Arbitrum or Optimism incentivised to decentralise sequencers or improve alignment with Ethereum, as they are raking in millions of dollars in value capture at the expense of Ethereum’s validators.</p><p>As a result <strong>Ethereum only sees a fraction of the value it enables</strong>. This is a fundamental inversion of incentives: more activity benefits rollups, not Ethereum. Ethereum’s original promise was a fully self-reinforcing ecosystem: Users pay fees → Validators secure the chain → ETH strengthens as money → Users trust the system more.</p><p>Rollups break this natural cycle. They treat Ethereum as a <strong>resource to be exploited</strong>, not an economy to be sustained. Sharding, for all its supposed complexity, would have kept Ethereum’s heart beating: <strong>one system, one economy, one money.</strong></p><p>If we are to break the trajectory that we are on, the community must come to the realisation that <strong>Rollups are not Ethereum. They are passengers , not partners.</strong></p><h3>2. Sharding was neither impossible, nor slower</h3><p>Sharding wasn’t abandoned due to technical motivations but political ones. Ethereum had already stacked significant complexity with the merge, beacon chain and maintaining compatibility with the live chain. Many of the technical drawbacks are even more exaggerated with rollups because they lack any form of standardisation imaginable. A lot of the technical complexity people blamed on &quot;sharding&quot; was really:</p><ul><li>Building a brand new consensus mechanism (PoS)</li><li>Engineering a whole new validator flow</li><li>Getting slashing, incentives, and liveness properties right under partial validator sets</li><li>Migration and backward compatibility from Ethereum 1.0</li></ul><p>Meanwhile former EF employees started their own venture funded rollup projects which destroyed all objectivity in decision making when it came to sharding vs rollups. The EF itself wanted a quick solution to not have its lunch taken by emerging alt-L1s. It was politically easier to bless rollups as the official path, even though economically rollups are parasitic if not carefully controlled and were at the time mostly technically incomplete due to a lack of fraud proofs.</p><blockquote>“Rollups are a pragmatic solution that will get us 80% of the way to the full sharding dream, but 10 years faster.” — Vitalik Buterin, 2021.</blockquote><p>It has already been <strong>half a decade</strong> since the “rollup-centric roadmap” was declared and trust-minimized L2s are <em>still</em> in transition. Most rollups still don’t have proper fraud proofs and operate on infeasible trust assumptions. Forced inclusion guarantees are still mostly theoretical. Decentralised sequencer setups are mostly experimental and there just isn’t a incentive for existing teams to switch to a based rollups, losing out on their millions of dollars in sequencer revenue.</p><p>Meanwhile the user experience on Ethereum has become completely fragmented with no final solution in sight. Account and chain abstraction remain hot topics in the Ethereum community but without a short-term solution.</p><p>It’s time that Vitalik &amp; co admit that the rollup roadmap has all the issues that were critiques against execution sharding while just being a significantly worse end-result for Ethereum.</p><h3>3. Rollups == Sharding was a lie</h3><p>Many people tried arguing “each rollup is like a shard”, but that’s misrepresenting important facts. Rollups are a scaling workaround with significantly worse alignment.</p><pre>+----------------------------------+----------------+---------------+<br>|             Property             |     Shard      |     Rollup    |<br>+----------------------------------+----------------+---------------+<br>| Revenue captured by Ethereum?    | ✅              | ❌            |<br>| Native trust model ?             | ✅(validators)  | ❌(sequencer) |<br>| Aligned with ETH value accrual ? | ✅(very strong) | ❌(very weak) |<br>| Decentralised by default ?       | ✅              | ❌            |</pre><p>The comparison falls apart as soon as you examine incentives. Shards are <em>part of Ethereum</em>, secured by Ethereum validators, and naturally aligned with ETH’s economic model, congestion on a shard means higher fees, more ETH burned, and more rewards for validators. Rollups, on the other hand, are <strong>adjacent platforms</strong> that minimize what they pay to Ethereum while capturing most of the execution value for themselves. Framing rollups as equivalent to “shards” obscured the reality: this was not scaling <em>within</em> Ethereum’s trust model, but scaling <em>around</em> it , trading symbiosis for convenience.</p><h3>Where do we go from here ?</h3><p>Looking forward, it’s important to recognize that not all hope is lost. Ethereum is still the most decentralised and diverse blockchain ecosystem in existence with multiple client teams and lots of independent efforts. This is not to be underestimated, but by itself not sufficient.</p><p>There are efforts, like Ethereum’s exploration of <strong>native rollups</strong> and <strong>ZK-fying the base protocol, </strong>that attempt to re-tighten the alignment between scaling solutions and Ethereum’s core security and economics.</p><p>These initiatives envision a future where rollups are more tightly coupled to Ethereum’s validator set and settlement guarantees, potentially restoring the “one system, one economy” vision Ethereum once pursued.</p><p>However, it’s also worth being honest about timelines…</p><p>Based on the latest projections, full native rollup support and protocol-level ZK security are unlikely to materialize until <strong>2029–2030</strong>. That’s nearly a full decade after the original scaling roadmap pivoted toward rollups, a longer journey than anyone expected.</p><p><strong>In that light, it becomes fair to ask:</strong></p><blockquote>If Ethereum had continued pursuing execution sharding directly, gradually rolling out new shards while securing them with the Beacon Chain, would we already be enjoying native, symbiotic scaling today?</blockquote><p>It’s plausible, even likely, that Ethereum could have introduced <strong>new shards beyond the original L1</strong> by now, scaling capacity in a way that naturally reinforced ETH’s value and validator security without detouring through intermediary trust assumptions.</p><h3>My Final Plea</h3><p>Ethereum’s strength has always been its ability to evolve, sometimes imperfectly, sometimes painfully, but always aiming for better alignment between technology, incentives, and values.</p><p>Rollups are here to stay, and they will undoubtedly carry much of Ethereum’s future growth. But it’s crucial to remember the original vision: s<strong>caling should strengthen Ethereum, not hollow it out. </strong>Execution sharding wasn’t just about scaling throughput , it was about preserving the monetary and security integrity of Ethereum itself.</p><p>As native rollups and ZK-secured base layers slowly emerge, there’s still a path to rebuild that deep alignment. The lesson is clear: scaling is not just a technical challenge, it’s a political and economic one, too. Ethereum must choose symbiosis over convenience if it wants to remain the credible, neutral foundation for the next generation of the internet.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ebd3680eb7a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use “git stash” effectively]]></title>
            <link>https://medium.com/@Nico_Vergauwen/how-to-use-git-stash-effectively-ca7c797f4c20?source=rss-c0b927f5f0d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca7c797f4c20</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Nico Vergauwen]]></dc:creator>
            <pubDate>Thu, 12 Oct 2023 13:12:44 GMT</pubDate>
            <atom:updated>2023-10-12T13:12:44.775Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Before we start, follow me on twitter </em><a href="https://twitter.com/0xiamnico"><em>https://twitter.com/0xiamnico</em></a><em> !</em></p><p>In the vast universe of Git commands, git stash emerges as a hero for developers caught between tasks or needing a clean slate without committing their changes. But how exactly does git stash work? In this quick guide, we&#39;ll dive deep into the magic of stashing in Git.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jc_xR-F_DfvG-CyKv3128A.png" /></figure><h3>What is Git Stash?</h3><p>git stash is a nifty Git command designed to temporarily squirrel away changes you&#39;re not ready to commit. Imagine you&#39;re in the midst of crafting a feature, and suddenly an urgent bug requires your attention. Instead of committing half-baked code or losing your progress, you can simply stash your changes, address the bug, and then return to your feature, retrieving the stashed changes.</p><h3>The Magic of Git Stash</h3><ol><li><strong>Creating a Stash</strong>:<br>Running git stash sweeps all your modifications from tracked files into a separate stash area, restoring your working directory to the state of the last commit. Your changes aren&#39;t lost; they&#39;re just set aside for a while.</li><li><strong>Reapplying Stashed Changes</strong>:<br>git stash apply brings your stashed changes back into play. If you&#39;re feeling confident and want to reapply and simultaneously remove changes from the stash, go for git stash pop.</li><li><strong>Managing Multiple Stashes:</strong><br>For those prolific stashers out there, git stash list is your friend. It displays all your stashed changes. And remember, you can apply, drop, or do any operation on a specific stash using its name, like stash@{1}. For example git stash apply stash@{1.</li><li><strong>Goodbye, Stash!</strong><br>To bid adieu to a particular stash, just git stash drop it.</li><li><strong>Branching from a Stash:</strong><br>Occasionally, stashed changes deserve their own branch. That’s where git stash branch &lt;branchname&gt; steps in, creating a fresh branch for your stashed changes and even courteously dropping the stash afterward.</li><li><strong>Handling Untracked Files:</strong><br>By default, git stash won’t bother with untracked files. But with git stash -u, even these files can join the stashing party.</li><li><strong>Selective Stashing:</strong><br>For those precise moments when you wish to stash only certain files, stage your desired changes with git add &lt;filename&gt; and then use git stash --keep-index.</li></ol><h3><strong>Under the Hood of Git Stash</strong></h3><p>Technically, when you stash, Git crafts a new commit with your changes and tucks it away in a separate repository zone. This ensures your working directory returns to a pristine state. When the time’s right, you can summon these changes back to your workspace.</p><h3><strong>Wrapping Up</strong></h3><p>git stash is more than just a command—it&#39;s a lifeline for developers juggling multiple tasks or facing unexpected detours. It&#39;s the bookmark that lets you pause, shift gears, and resume with ease. So the next time you&#39;re in a code conundrum, remember: just stash it!</p><p>If you found this useful, follow me on Twitter and stay up to date with my latest posts and blogs !</p><p><a href="https://twitter.com/0xiamnico">JavaScript is not available.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca7c797f4c20" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Yield-Bearing Stablecoins: Dope or Nope ?]]></title>
            <link>https://medium.com/coinmonks/yield-bearing-stablecoins-dope-or-nope-bb0fe9cae64f?source=rss-c0b927f5f0d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb0fe9cae64f</guid>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Nico Vergauwen]]></dc:creator>
            <pubDate>Tue, 12 Sep 2023 12:14:11 GMT</pubDate>
            <atom:updated>2023-09-12T12:19:25.720Z</atom:updated>
            <content:encoded><![CDATA[<h3>Yield-Bearing Stablecoins: Dope or Nope ?</h3><p><strong><em>Follow me on X (formerly Twitter), I write about what peaks my interest in Web3: </em></strong><a href="https://twitter.com/0xiamnico"><strong><em>https://twitter.com/0xiamnico</em></strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vwMiUUVIbgvaKhyQr6u_Ww.png" /></figure><p>In the buzzing world of crypto, stablecoins have firmly established their importance. These tokens, which remain relatively stable in price and are often pegged to the US dollar, come in various flavors. The likes of USDC and USDT, backed by tangible dollar reserves, remain vulnerable due to centralization risks.</p><p>MakerDAO’s DAI introduced us to the resilient decentralized model of over-collateralized stablecoins. The essence? Lock up, say $1000 of an asset, mint a fraction of that value in stablecoins, and if the collateral’s value drops below a set margin, external actors can liquidate it, often at a bargain.</p><p>But the latest chatter in crypto circles? APR-bearing stablecoins. These promise pro-rata yield distributions to stablecoin holders from yield-bearing collateral. Theoretically exciting, but some economic pointers suggest potential pitfalls.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_f8n_x6nkxgnSxsQ.png" /></figure><h3>Money’s Role &amp; The Velocity Challenge</h3><p>Money has always worn multiple hats:</p><ul><li>A unit to measure value (&amp; to defer payments).</li><li>An exchange medium.</li><li>A storehouse for value (given its stability despite some inflation).</li></ul><p>For a currency to earn its ‘sound money’ badge, stability is key. It measures value, aids in debt valuation, and facilitates exchange. But the velocity of money is equally crucial. If money isn’t circulating, economies stutter.</p><p>Here’s the catch with APR-bearing stablecoins: Their inherent growth-focused monetary policy, while intriguing, risks creating a currency that’s de facto deflationary if money velocity diminishes. Economic slowdowns often follow such trends.</p><p>🤔 Simplified: If your money might be worth more tomorrow, why spend today? And if everyone thinks this way, is the economy truly thriving?</p><h3>The Nash Equilibrium: A Risky PvP Showdown ☠️</h3><p>When delving into the realm of APR-bearing stablecoins, we’re stepping into a PvP (Player versus Player) arena. Just as gamers in a multiplayer video game might adopt strategies to outcompete others, participants in the APR-bearing stablecoin ecosystem are also vying for dominance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yQLjm1A9s2cxiIyY.png" /><figcaption>The Wilderness in Runescape</figcaption></figure><p>The mechanism design of distributing collateral yield pro-rata to stablecoin holders creates a dynamic where more risk directly translates to higher rewards. In game-theory terms, this sets up a Nash Equilibrium where each participant’s optimal response to the actions of others is to increase their risk.</p><p>In layman terms, imagine you’re in a multiplayer game where the more risks you take, the more rewards you get. If every player realizes they can get maximum rewards by maximizing their risks, then the entire game strategy shifts. Every player starts taking maximum risks, aiming for those higher rewards.</p><p>However, in the case of APR-bearing stablecoins, this “game” can have real-world consequences. If everyone is operating at the minimum collateral ratio, it not only jeopardizes individual positions but can destabilize the entire system. It’s akin to every player in a game using a high-risk, high-reward strategy without considering the collective consequences. The end result? A fragile system ready to topple at the slightest economic shake.</p><p>This shared strategy to maximize individual profit, where everyone is essentially competing against each other, makes the system’s Nash equilibrium a precarious ‘race to the bottom.’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/0*HaGKyUqJPJS9vgzn.png" /><figcaption>A schematic overview of the problems plaguing yield-bearing stables</figcaption></figure><h3>Rethinking the Path Forward: A Stable Solution</h3><p>In our journey through the volatile terrains of APR-bearing stablecoins, the path to stability might be closer than we think. Instead of having the collateral yield spread across all participants, what if we allowed it to accumulate organically within its original debt position?</p><p>By letting collateral yield accrue to itself, we advocate for a system that inherently increases the overall collateral ratio. This isn’t just a technical tweak; it’s a fundamental shift in approach. In this revised model, each debt position bearer holds the reins to their own destiny. They have the autonomy to manage the yield against their collateral without the looming shadow of the “race-to-the-bottom” syndrome seen in shared yield distribution systems.</p><p>In fact, this is exactly our design philosophy for <a href="https://whitepaper.tenderize.me/core-architecture/beefbank"><strong>BeefyBank</strong></a>, where in the future, you can collateralise liquid staked assets for stablecoins.</p><h3>Conclusion</h3><p>The world of crypto and DeFi is a dynamic landscape, rife with innovation but also challenges. As we probe into the intricacies of APR-bearing stablecoins, it becomes evident that while seeking rewards, it’s essential to maintain system stability and integrity. By reimagining how yield accrual works, we not only ensure individual empowerment but also foster a robust ecosystem where stability isn’t sacrificed at the altar of high returns.</p><h4>Did you enjoy reading this blog ? Follow me on Twitter for the latest updates !</h4><h3>iamnico.eth on Twitter: &quot;It&#39;s been a while since I wrote a blog! We&#39;re exploring the hype of APR-bearing stablecoins.From understanding money&#39;s velocity challenge to potential risks in mechanism design, there&#39;s much to unpack! Dive in to find out! 🚀 #DeFi #Stablecoinshttps://t.co/NxzLbE5ZdY / Twitter&quot;</h3><p>It&#39;s been a while since I wrote a blog! We&#39;re exploring the hype of APR-bearing stablecoins.From understanding money&#39;s velocity challenge to potential risks in mechanism design, there&#39;s much to unpack! Dive in to find out! 🚀 #DeFi #Stablecoinshttps://t.co/NxzLbE5ZdY</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb0fe9cae64f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/yield-bearing-stablecoins-dope-or-nope-bb0fe9cae64f">Yield-Bearing Stablecoins: Dope or Nope ?</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I set up a Livepeer node and earned over 1000$ in a month]]></title>
            <link>https://medium.com/coinmonks/a-new-livepeer-video-mining-rig-is-born-46919de23eae?source=rss-c0b927f5f0d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/46919de23eae</guid>
            <category><![CDATA[live-streaming]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[gpu]]></category>
            <category><![CDATA[mining]]></category>
            <dc:creator><![CDATA[Nico Vergauwen]]></dc:creator>
            <pubDate>Mon, 01 Mar 2021 12:33:55 GMT</pubDate>
            <atom:updated>2022-06-24T19:28:09.334Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I Set up a Livepeer node and earned over 1000$ in a month</h3><p>In this article, I’ll walk you through setting up a Livepeer node from start to finish, give you an idea of what type of hardware is required and give you an idea of how much you could earn.</p><h4>What is Livepeer</h4><p><a href="https://livepeer.org/">Livepeer</a> is an open-source decentralised protocol for providing video and live streaming infrastructure that runs on the <a href="https://ethereum.org/">Ethereum</a> blockchain.</p><p>As a hardware provider wanting to provide video infrastructure services you can connect to the Livepeer network which serves as a trustless intermediary to allow you to exchange your services with those that require it such as live streaming applications (e.g. <a href="https://playdj.tv/">PlayDJ.tv</a> ) .</p><p>Currently, the Livepeer network provides the service of <strong>Video Transcoding</strong>. This takes an input video in a certain resolution and bitrate and converts it into other resolutions and bitrates so that every end-user can enjoy the content regardless of their connection speed. This process is what enables you to select different video qualities on websites such as YouTube or Twitch.tv.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fvTFs_7hwciFNjbfyjiCTw.png" /></figure><h4>What is Video Mining</h4><p>Video Mining is an alternative term for Video Transcoding that is more intuitive in the blockchain space.</p><p>When transcoding or video mining you take in small chunks of source video from a Broadcaster, in e.g. a 1080p resolution, and convert them to whatever resolutions the Broadcaster requires. Most common are 720p, 480p and 360p.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zhTG63vcvTbcyk3G13ABxg.png" /></figure><p>Just as with cryptocurrency mining this process can be performed by both a CPU and GPU, where the latter usually outperforms the former. On Nvidia graphic cards video transcoding happens on specific chips (NVENC for encoding and NVDEC for decoding) rather than the CUDA cores used for general compute (the video memory is a shared resource). This means your machine can still perform a variety of other tasks while you are video mining. This is interesting because it allows the Livepeer network to <strong>tap into existing hardware </strong>that is already running. So if you own an Nvidia GPU this is worth checking out.</p><h4>Video Mining Pools</h4><p>Currently, there is Video Mining Pool called Livepool, created by yours truly. It works similarly to a cryptocurrency mining pool. You connect your node to the pool, provide it with an address you want to receive payouts on and you’re off to the races!</p><p>Check out <a href="https://livepool.io/">https://livepool.io</a> for instructions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z7oUI6BL9weir45MvNfBNA.png" /></figure><h4>Hardware Requirements</h4><p><em>For this article we’ll only consider GPU setups.</em></p><p>You’ll need at least one Nvidia GPU, currently Livepeer does not support AMD cards. A list of compatible cards can be found <a href="https://developer.nvidia.com/video-encode-and-decode-gpu-support-matrix-new">here</a>. Generally speaking, you’d want at least an Nvidia Geforce GTX 1050 or better. Newer generations of cards have better NVENC and NVDEC chips that produce a <a href="https://www.youtube.com/watch?v=6fyP7kg0QAc">better quality video</a>.</p><p>Other hardware for your machine is up to you, just make sure everything you order is compatible and don’t make the same mistake I did (more on that later). Generally, you want a decent processor, at least 8 GB of RAM, and preferably an SSD.</p><h4>Other Requirements</h4><p>First thing you’ll need if you’re going to run everything on-premise you’ll need a static IP from your ISP, access to good bandwidth, and unlimited data (you can expect a couple of terrabytes of data exchange monthly).</p><p>You don’t need a static IP if you split your set-up between a lightweight GPU node (or multiple) on-premise and a “business logic” node ran from a datacenter.</p><p>Second, you’ll need access to the Ethereum blockchain. You can either run your own node or create a free account on <a href="https://infura.io/">https://infura.io</a> or <a href="https://alchemy.io/">https://alchemy.io</a> (I only tested infura limits for the free tier).</p><p>Since Livepeer runs on the Ethereum blockchain you’ll need some Ethereum to pay for transaction costs. You’ll also need some Livepeer Tokens to put up as a security bond and to indicate that you are open for work. You can get Ethereum on most cryptocurrency exchanges. You can then get some Livepeer Token via Uniswap, click “Get LPT” in the bottom left of the <a href="https://explorer.livepeer.org/">Livepeer Network Explorer</a> to open the Uniswap widget.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OWLa3gLYtbWlPxTbwZnKHQ.png" /></figure><h4>My Setup</h4><p>Last year I purchased two barely used Nvidia Geforce GTX 1070 cards from a gaming team for about 400 EUR. They were collecting dust until now, but I decided with the huge increase in demand on the Livepeer network I’d finally put them to good use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kqvo3asQLxiiLMeeOLw6zQ.png" /></figure><p>For my CPU I got a AMD Ryzen 5 3600 3,6 Ghz , this is a decent mid-range CPU and will do the job just fine and will even allow you to run some other stuff as well. At first I ordered a Ryzen 5 2600 but it was incompatible with my motherboard, which set me back a week waiting for the new CPU to arrive.</p><p>Other parts:<br>- Motherboard: Asro B550 Phantom Gaming 4 with 2x PCIe 16x slots and one PCIe 1x slot. So you can have up to 3 GPUs if you use a riser for the 1x slot. <br>- Platinum rated 1200W Power supply<br>- Corsair 16 GB DDR4–3200 RAM<br>- 1 TB M.2 SSD</p><p>I have a 250 Mbps connection and can upgrade to gigabit if needed, I also have a static IP from my ISP for 25 EUR monthly but I don’t use it for my Livepeer setup currently.</p><p>I run my 2 GPUs from home and my “business logic” node , also known as an Orchestrator, from a datacenter (e.g. AWS, DigitalOcean, Azure, … ).</p><p>It’s been nearly over 5 years since I’ve built a computer so after some hurdles such as ordering the wrong CPU, not knowing cooling paste was already applied, getting the power supply in the case I’ve learn that I’m terrible at this but probably even worse at cable management. Looks like I ain’t closing this baby up with the tempered glass pane anytime soon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Q7LrtX-KlbyQ__EF5eJdg.png" /></figure><h4>Setting up our Livepeer node</h4><p>This will be a rough rundown, I won’t go into every detail here, for that you can follow <a href="https://livepeer.readthedocs.io/en/latest/transcoding.html">the official documentation</a>.</p><ol><li>Download the software <br>You can download a compressed executable from the releases page on Github: <a href="https://github.com/livepeer/go-livepeer/releases">https://github.com/livepeer/go-livepeer/releases</a></li><li>Unpack your download <br>On windows you can just use something like WinRAR or WinZip, otherwise uncompress the tarball using the following command:</li></ol><pre>tar -zxvf livepeer-linux-amd64.tar.gz</pre><p>3. Move the unpacked Livepeer binary into your executable PATH, alternatively you can just run it from that directory as well.</p><p>4. If you run your setup fully on-premise you’ll need to open a port on the public internet and forward it to port 8935 (default) on your machine.</p><p>5. We can now start our node for the first time and register it with the Livepeer protocol. On first start it will automatically create an Ethereum account for you and ask you to choose a password. By default you can find the encrypted private key for this account in ~/.lpData/mainnet/keystore .</p><pre>livepeer -network mainnet -orchestrator -transcoder -ethUrl &lt;your_infura_url&gt; -pricePerUnit 1 -serviceAddr &lt;your public IP&gt;:8935</pre><p>6. Next start up the Livepeer CLI: livepeer_cli</p><p>under “Node Stats” find your “ETH Account” and send it theEthereum and Livepeer Tokens you purchased earlier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*22XH_yeQS117IkFHYvKpDg.png" /></figure><p>7. Once your LPT and ETH has arrived pick 12. Invoke multi-step &quot;become an orchestrator&quot;.</p><p>First enter your reward cut, this will be your commission on Livepeer Tokens that are delegated to your node from other users that will earn inflationary Livepeer tokens.</p><p>Then enter which percentage of your earned fees from video mining you would like to share with users that delegate their Livepeer tokens to you.</p><p>After that you will have to set your publicly accessibly service URL, this will be your public IP on port 8935.</p><p>Next you will be asked to bond Livepeer Tokens, bond all the LPT you have sent yourself earlier.</p><p>Once you have completed this step you have to wait until the next round of the protocol to start until your node becomes active. Rounds take a little less than a day.</p><h4>Earnings and Test Results</h4><p>The node has been running for a little over a month now and has so far earned 0.87 ETH or about 1200$ at current prices which is almost enough for me to retrieve my hardware cost already, although I should probably discount about 300$ for transaction fees which were pretty steep recently. Since I already pay my ISP regardless the only extra costs are the electricity which is way lower than mining (currently pulling 10–60 Watt per GPU) and my datacenter costs which are about 100$ a month.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jj4A2VbQo0HGFB5ixTRGWg.png" /><figcaption>GPU usage</figcaption></figure><p>I experimented for about a week with a full on-premise set-up which greatly improved my results on the <a href="https://explorer.livepeer.org/?orchestratorTable=performance">Livepeer leaderboard</a> but resulted in much less actual work received due to me being further away from the Broadcasting nodes where most demand comes from.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WyT-GIdaCz6htUTBaA4BMQ.png" /></figure><h4>Questions?</h4><p>Drop by the <a href="https://discord.gg/FfER5HeG">Livepeer Discord server</a>, we’re happy to help you!</p><blockquote>Join Coinmonks<a href="https://t.me/coincodecap"> Telegram Channel</a> and<a href="https://www.youtube.com/c/coinmonks/videos"> Youtube Channel</a> get daily <a href="http://coincodecap.com/">Crypto News</a></blockquote><h4>Also, Read</h4><ul><li><a href="https://medium.com/coinmonks/top-10-crypto-copy-trading-platforms-for-beginners-d0c37c7d698c">Copy Trading</a> | <a href="https://medium.com/coinmonks/crypto-tax-software-ed4b4810e338">Crypto Tax Software</a></li><li><a href="https://coincodecap.com/grid-trading">Grid Trading</a> | <a href="https://medium.com/coinmonks/the-best-cryptocurrency-hardware-wallets-of-2020-e28b1c124069">Crypto Hardware Wallet</a></li><li><a href="http://Top 4 Telegram Channels for Crypto Traders">Crypto Telegram Signals</a> | <a href="https://medium.com/coinmonks/crypto-trading-bot-c2ffce8acb2a">Crypto Trading Bot</a></li><li><a href="https://coincodecap.com/trading-signal">What are the Trading Signals?</a> |<a href="https://coincodecap.com/bitstamp-coinbase"> Bitstamp vs Coinbase</a></li><li><a href="https://coincodecap.com/profitfarmers-review">ProfitFarmers Review</a> |<a href="https://coincodecap.com/cornix-trading-bot"> How to use Cornix Trading Bot</a></li><li><a href="https://coincodecap.com/buy-domain-on-unstoppable-domains">How to Buy Domain Name on Unstoppable Domains?</a></li><li><a href="https://coincodecap.com/crypto-tax-india">Crypto Tax in India</a> |<a href="https://coincodecap.com/altfins-review"> altFINS Review</a> |<a href="https://medium.com/coinmonks/prokey-review-26611173c13c"> Prokey Review</a></li><li><a href="https://medium.com/coinmonks/crypto-exchange-dd2f9d6f3769">Best Crypto Exchange</a> | <a href="https://medium.com/coinmonks/bitcoin-exchange-in-india-7f1fe79715c9">Best Crypto Exchange in India</a></li><li><a href="https://medium.com/coinmonks/best-crypto-apis-for-developers-5efe3a597a9f">Best Crypto APIs</a> for Developers</li><li>Best <a href="https://medium.com/coinmonks/top-5-crypto-lending-platforms-in-2020-that-you-need-to-know-a1b675cec3fa">Crypto Lending Platform</a></li><li>An ultimate guide to <a href="https://medium.com/coinmonks/leveraged-token-3f5257808b22">Leveraged Token</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46919de23eae" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/a-new-livepeer-video-mining-rig-is-born-46919de23eae">How I set up a Livepeer node and earned over 1000$ in a month</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Go: MongoDB CRUD with gRPC]]></title>
            <link>https://itnext.io/learning-go-mongodb-crud-with-grpc-98e425aeaae6?source=rss-c0b927f5f0d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/98e425aeaae6</guid>
            <category><![CDATA[grpc]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Nico Vergauwen]]></dc:creator>
            <pubDate>Fri, 10 May 2019 13:56:36 GMT</pubDate>
            <atom:updated>2019-05-16T09:03:53.425Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/307/0*GccK_os7uZumMgFU.png" /><figcaption>A Gopher in Belgium</figcaption></figure><h3>Go</h3><p>The last couple of weeks I’ve been busy with my new favorite toy: Go. It is an open source programming language created at google in 2007. It is heavily used at Google and has been battle tested before a public release and by now, is considered to be a very stable language. Go tries to find a middle ground between humans and machines for optimal productivity and performance. Many believe it to be the future of back-end development and micro-services.</p><p>While Go is still relatively young, it has been welcomed with open arms in the distributed systems world. Docker, Kubernetes, InfluxDB, Go-Ethereum, … are all built in Go.</p><p>Here’s the classical “Why Go?” list:</p><ul><li>Elegant concurrency using GoRoutines and Channels</li><li>Multi-core support</li><li>Very good raw CPU-and-memory-bound performance</li><li>Types aren’t cumbersome</li><li>Built in testing framework</li><li>Static code analysis</li><li>Compilation / deployment</li></ul><p>In this blog I will not teach you how to write “Hello World” in go, instead we’ll write a CRUD API using the official mongodb-go-driver and gRPC. Before continuing make sure you have Golang, MongoDB, RoboMongo (for ease of use) and Protocol Buffers (link is below) installed. To get the most out of this tutorial you should be familiar with Go syntax a little bit as well as pointers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/0*z27CGh0nvUyvRITs" /><figcaption>A Gopher that clearly lifts</figcaption></figure><h3>gRPC &amp; HTTP2</h3><p>REST in peace, there’s a new kid on the block and it’s called gRPC. <br>gRPC is a modern, HTTP2 based protocol that provides Remote Procedure Call semantics using a strongly-typed binary data format called Protocol Buffers instead of JSON.</p><p>Parsing JSON is very CPU intensive and it is estimated that it takes up 45% of all CPU resources for RESTful services. Combined with the upgrades HTTP/2 offers, gRPC API’s are estimated to be<strong> 5–25x faster</strong> than their RESTful counterpart.</p><p>gRPC was built from the ground up to leverage all the good stuff coming with HTTP/2 and has been battle-tested by Google yet again, handling 10 billion requests per second. Here’s a list of fun stuff that HTTP/2 brings to the table:</p><ul><li>Multiplexing (HTTP/1 opens a TCP connection for every request)</li><li>Server Push</li><li>Header compression (plaintext in HTTP/1 and sent with every request)</li><li>Binary instead of Text (Great match for Protocol Buffers)</li><li>SSL is a first class citizen</li></ul><h3>gRPC vs REST</h3><p>Fully comparing gRPC to REST would be material for a blog post on its own, so here’s an overview:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*hZK9yqVzRcITfP0hWXuBxQ.png" /></figure><h3>Protocol Buffers</h3><p>Like mentioned before Protocol Buffers (protobufs in short) are a strongly-typed, language- and platform neutral, binary data format. You can define how you want your data to be structured once in a <em>.proto</em> file and then use special generated source code to easily create server and client stubs for many languages, your .proto file is the canonical format for API contracts. According to google, <strong>protobufs are 3–10x smaller than XML and 20–100x faster.</strong></p><p>Protocol Buffers are used to defined <strong>messages</strong> (data, requests and responses) and <strong>services</strong> (RPC endpoints) in <em>.proto</em> files.</p><p>To learn more about protocol buffers, please check the extensive <a href="https://developers.google.com/protocol-buffers/docs/overview">documentation</a>.</p><h3>Down To Business: Blog Service API</h3><p>For the remainder of this blog post we will be building a simple CRUD API for a blog service. Since MongoDB just released their official Go driver, we’ll be using MongoDB. We’ll create a server and a small CLI application for the client using Cobra. <strong>Let’s get our hands dirty !</strong></p><ul><li>Cobra does not yet support go-modules for generating subcommands, thus for this tutorial we’ll be using good ol’ $GOPATH :) .</li><li>This is what your folder structure should look like: <br><em>$GOPATH</em>/grpc-mongo-crud/<br>- server<br>- client<br>- proto</li><li>Alternatively you could just generate the subcommand files in your <em>$GOPATH</em> and copy-paste the code into your own repository and use relative paths instead (this is the route I took).</li></ul><p><a href="https://github.com/kyriediculous/go-grpc-mongodb">You can find the code repository on my github</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/0*xIEsYJplggYmACCp.gif" /></figure><h3>1. Creating a Proto file</h3><p>After setting up a new working directory in your <em>$GOPATH</em>, create a new file in the proto folder, let’s call it <em>blog.proto</em>. For simplicity we’ll create seperate messages for each request/response altough some will overlap.</p><p>First a little bit of boilerplate that expresses we use protbufs v3, our package is called blog, and our generate go package will be called blogpb (short for blog protocol buffer).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0cfb6d7195fd5aacede9bb4ba910479c/href">https://medium.com/media/0cfb6d7195fd5aacede9bb4ba910479c/href</a></iframe><p>We’ll need 5 services, each service takes in a request and returns a response:</p><ul><li>CreateBlog (unary)</li><li>ReadBlog (unary)</li><li>UpdateBlog (unary)</li><li>DeleteBlog (unary)</li><li>ListBlog (server streaming)</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8f9d1a364b5f48892034fa7ee6443a1d/href">https://medium.com/media/8f9d1a364b5f48892034fa7ee6443a1d/href</a></iframe><p><em>CreateBlog, ReadBlog</em> and <em>UpdateBlog </em>will return a <em>Blog item</em> in their responses, so we’ll need a Blog Message Type. Messages can be nested, so we can use our Blog Message inside Request/Response messages.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/69820cb52d530fff1c8a9714e9a851b0/href">https://medium.com/media/69820cb52d530fff1c8a9714e9a851b0/href</a></iframe><p><strong>CreateBlog Request / Response</strong></p><p>Both the request and response will consist out of a Blog message, the main difference being that in the request, the ID will be blank as that is created by MongoDB upon creation of the document inside the database. In the response the ID will be filled in.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/79c473fce1174434a9288289eb3b7835/href">https://medium.com/media/79c473fce1174434a9288289eb3b7835/href</a></iframe><p><strong>UpdateBlog Request / Response</strong></p><p>Very similar to CreateBlog, but the Blog message in our Request will already contain the id to find and update that specific item in our database. The response will return the updated document.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6eba567ef416c1004ded82ae3bc5f7f9/href">https://medium.com/media/6eba567ef416c1004ded82ae3bc5f7f9/href</a></iframe><p><strong>ReadBlog Request / Response</strong></p><p>We’ll keep this straightforward and make Blogs searchable by Id only. It is possible though to use id OR title in a single request message using <a href="https://developers.google.com/protocol-buffers/docs/proto3#using-oneof"><em>oneof</em></a><em> .</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0f04fd1b85a738530b91086b8d2f54e1/href">https://medium.com/media/0f04fd1b85a738530b91086b8d2f54e1/href</a></iframe><p><strong>DeleteBlog Request / Response</strong></p><p>The request object is identical to ReadBlog, we find the blog by id and remove it (oneof can be used here too). On success we return true otherwise an error is returned.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/540fd926b0dc85ac9af9b14043bcb19b/href">https://medium.com/media/540fd926b0dc85ac9af9b14043bcb19b/href</a></iframe><p><strong>ListBlogs Request/Response</strong></p><p>This one is special, ListBlogs will list all blogs in our database. All our previous services were unary , which means they adhere to the classic request/response mechanism. It works fine when the data is small, but for large data streaming is more optimal. ListBlogs will use server-streaming; for one request message the server will send back multiple blog messages.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2f897ff24858662f258755fd2f9fe898/href">https://medium.com/media/2f897ff24858662f258755fd2f9fe898/href</a></iframe><p><strong>Protocol Compiler: Protoc</strong></p><p>Now that we have created our <em>.proto</em> definitions it is time to generate our Client and Server stubs in Go. We do this using the <a href="https://github.com/golang/protobuf">protocol buffer compiler combined with the protoc-gen-go plugin.</a></p><p>You can check whether the installation was successful:</p><pre>$ protoc — version<br>libprotoc 3.7.1</pre><p>If it is you can compile your proto file to Go stubs, this will result in a new file in the /proto folder: blog.pb.go</p><pre>protoc proto/blog.proto --go_out=plugins=grpc:.</pre><p>I suggest you go through the newly generated file, you’ll see types and interfaces for the server and client, methods to create a new server and client, types to instantiate (requests, responses and blog) and getters for the fields of those structs.</p><p>You will also see this line at the top of the file, please take it to heart:</p><pre>// Code generated by protoc-gen-go. DO NOT EDIT.</pre><h3><strong>2. Server Implementation</strong></h3><p><strong>Starting / Stopping the server<br></strong>First things first, we’ll need some boilerplate to create a gRPC server and mongoDB connection, give some feedback to the console and handle server shutdowns by the user through a <em>shutdown hook</em>.</p><p>We’ll set all of this up within our main() function, feel free to do some code splitting and cleanup by yourself.</p><ol><li>Add filename and linenumber flags when we use the log package</li><li>Start our listener</li><li>Start a new gRPC server with no service registered yet.</li><li>Create a blog service and register it to our new gRPC server.</li><li>Connect to MongoDB.</li><li>Accept incoming connections on our listener</li><li>Handle user initiated server shutdown (CTRL+C)</li></ol><p>Now let’s start creating our main() function.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/abefc1334330ad6f6eb09dc318cfd30f/href">https://medium.com/media/abefc1334330ad6f6eb09dc318cfd30f/href</a></iframe><p>Now let’s start a new gRPC server and register our Blog service. To achieve this we’ll use the<em> grpc package </em>as well as the <em>blogpb package</em> created by compiling our <em>.proto </em>file. Our <em>blogpb package</em> has a method called <em>RegisterBlogServiceServer</em> that takes in a pointer to a fresh gRPC server and a <em>BlogServiceServer struct</em> that adheres to the <em>BlogServiceServer interface</em> from our generated <em>blog.pb.go</em> file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5ded8a930a6f6450228cc5c25f783362/href">https://medium.com/media/5ded8a930a6f6450228cc5c25f783362/href</a></iframe><p>Great job ! Now well create our mongodb connection, so make sure you have MongoDB installed as well as the official <a href="https://github.com/mongodb/mongo-go-driver"><em>mongodb-go-driver</em></a> we’ll be using. If you’ve ever worked with a mongodb driver in another language, you’ll see that it’s quite similar.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e2eb43fcf1de0c0ccc26fc3fbd2782e3/href">https://medium.com/media/e2eb43fcf1de0c0ccc26fc3fbd2782e3/href</a></iframe><p>Last but not least we’ll serve the listener to accept incoming connections and handle proper server shutdown using a goroutine and channel to block the main channel until the user presses CTRL+C.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0c77e174295a20c77aca490f0ace56ef/href">https://medium.com/media/0c77e174295a20c77aca490f0ace56ef/href</a></iframe><p>And we’re done! You can now start the server running go run server/main.go , make sure however to run sudo service mongod start beforehand, or <em>db.Ping()</em> will return an error. You can then close the server by pressing CTRL+C.</p><p>If all went well you should see something like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*KamsTX-Chf45NYzxCN0kfw.png" /></figure><p><em>** Note: You’ll likely need to add empty methods from the next section to not get compile errors, since BlogServiceServer does not adhere to it’s interface (in blog.pb.go) yet.</em></p><h4>Creating our Proto Service Handlers</h4><p>Now that we have our server ready, it’s time to add methods for the services we defined in our <em>.proto</em> file. The methods will take our BlogServiceServer as receiver so it will comply with its interface.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ad4942488b4b7b30e4fc4dc8c01111b5/href">https://medium.com/media/ad4942488b4b7b30e4fc4dc8c01111b5/href</a></iframe><p>In the function bodies we’ll generally use the following workflow:</p><p>Protbuf Message (Request) → Regular Go Struct → Convert to BSON + Mongo Action → Protobuf Message (Response)</p><p>What’s currently missing is the regular go struct to represent a blog, which can be converted to BSON. So let’s create this type above the main function and add some tags, so that the bson package will use the meta information to assign keys.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9727c69e13be219f9b501643872c9e72/href">https://medium.com/media/9727c69e13be219f9b501643872c9e72/href</a></iframe><p>Now let’s make our <strong>CreateBlog</strong> method. It takes in a <em>context</em> and a request, in this case <em>CreateBlogReq. </em>First we’ll extract the Blog message from our request message and convert it to a regular go struct. <em>InsertOne()</em> will convert it into <em>BSON</em> for us, using the meta tags we provided. The result from <em>InsertOne() </em>returns the <em>Object ID </em>of the new <em>document </em>inside our <em>collection</em>, which we can then add to our <em>Blog protobuf message</em> to be wrapped in a <em>CreateBlogResponse</em>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4c3485ef9d86b5a21a4c4ed3226b92c7/href">https://medium.com/media/4c3485ef9d86b5a21a4c4ed3226b92c7/href</a></iframe><p>Next we’ll do <strong>ReadBlog()</strong>, the <em>ReadBlogReq</em> will take in the<em> Object ID</em> of the blog and retrieve that document from our collection. The MongoDB <em>FindOne()</em> methods takes in a context and a filter, which is a <em>BSON document </em>for which to filter by its keys. We’ll simply have to decode the found document to a regular go struct so we can convert it back to protobuffer messages.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9d407f2ba32260ffe319a7d785eec9a3/href">https://medium.com/media/9d407f2ba32260ffe319a7d785eec9a3/href</a></iframe><p>Now that we can create and read a blog, we should also be able to delete one. For <strong>DeleteBlog</strong> we’ll use the mongodb <em>DeleteOne()</em> method, which takes in an <em>Object ID</em> of the document to remove. If the removal is succesful we’ll return a boolean else an error.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e0ee40b4a6a402bece33ce00255af48e/href">https://medium.com/media/e0ee40b4a6a402bece33ce00255af48e/href</a></iframe><p>For the last of our CRUD operations, we’ll need method to<strong> update a blog</strong>. For simplicity’s sake we are going to entirely replace the existing document inside the collection with the document encoded from our request. In a real-world scenario we’d do nil checks on the arguments so that only filled out fields are actually updated (using the $set keyword from MongoDB). The second quirk is that Mongo’s <em>FindOneAndUpdate()</em> returns the old document, so we’ll have to explicitly tell it to return the new document instead.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/019d443c1960e5ee925767b900c0d7a9/href">https://medium.com/media/019d443c1960e5ee925767b900c0d7a9/href</a></iframe><p>The last method we’ll implement, <strong>ListBlogs</strong>, is slightly different. Our previous operations were <em>unary CRUD operations</em>, which means they use a classical <em>1 response for 1 request mechanism</em>.</p><p>If we want to list all blogs however, the data payload might grow too large to return it in one response, therefore we’ll implement <strong><em>server streaming</em></strong> through gRPC. For one request to list the blogs, the server will keep streaming blog messages until all blogs have been sent back to the client.</p><p>MongoDB is really helpful with this through it’s<em> cursor</em> feature. A cursor in MongoDB is a pointer to the results of a query rather than all of the results in memory.</p><blockquote>A pointer to the result set of a query. Clients can iterate through a cursor to retrieve results.</blockquote><p>So what we’ll do is iterate over the cursor using <em>cursor.Next()</em> and send each blog as message to the client, until the cursor yields no more results at which point we’ll close the server side stream. It’s more straightforward when you see the code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e7cc5fc206eb34bfafceb438e9b9f385/href">https://medium.com/media/e7cc5fc206eb34bfafceb438e9b9f385/href</a></iframe><p>Well done, that’s it for our entire server implementation. You’re on the path to becoming a supergopher ! Next we’ll start working on our CLI client application using <a href="https://github.com/spf13/cobra">Cobra</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*MT2x2BRSYyECJEHwVu5JgA.png" /></figure><h3>3. Client Implementation</h3><p><strong>Cobra<br></strong>As mentioned earlier, we’ll be making a CLI application for our client using Cobra. It comes with a handy generator to generate boilerplate for us.</p><p>The cobra generator doesn’t work with go modules yet, so we’ll generate the command files in our <em>$GOPATH</em> and then copy paste them into our <em>/client</em> folder where we are creating our project (if you started in your <em>$GOPATH </em>from the start, you can run the generator from the <em>/client </em>folder).</p><p>First things first, install cobra. This will create an executable in <em>$GOPATH/bin</em> that we can run from anywhere in the terminal (if you have setup Go correctly).</p><pre>$ go get github.com/spf13/cobra/cobra</pre><p>Once Cobra is successfully installed, we can initiate a new project.</p><pre>$ cobra init</pre><p>This will generate a <em>main.go</em> file and a <em>/cmd </em>folder. The main.go file doesn’t do anything aside from calling <em>execute</em> on the root command, located in <em>/cmd/root.go .</em></p><p>Two things in <em>/cmd/root.go</em> are important to us, the <em>rootCmd struct </em>(a <em>cobra.Command</em> type), which contains the command name and descriptions and the <em>init()</em> function , where we’ll initiate the client. Since <em>sub-commands </em>are bound to the r<em>oot command</em>, Cobra will always initiate a client before executing the <em>sub-command</em>.</p><p>Give your root command a name and some descriptions:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b346b4b7140304a28130b7bb58e69eb5/href">https://medium.com/media/b346b4b7140304a28130b7bb58e69eb5/href</a></iframe><p>And initialize the client:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/44f0fea32d0bdc1b66c8148a66939ca6/href">https://medium.com/media/44f0fea32d0bdc1b66c8148a66939ca6/href</a></iframe><p>I’m not kidding if I say that was the hardest part of our client, pretty straightforward right? Feel free to play around with Cobra by adding flags or commands, you also have “help” flag out of the box. In our finished application it will look something like this when called:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*RAfJueeaQrkJDOOhtIQEcg.png" /></figure><p><strong>Create Blog Command<br></strong>Now that our root command is set up, let’s create our first sub-command so that we can actually add blogs to our database.</p><pre>$ cobra add create</pre><p>This will create a new file, <em>/cmd/create.go </em>with roughly the same layout as <em>root.go</em> . There’s a struct of type <em>cobra.Command</em> and an <em>init()</em> function.</p><p>In the <em>init</em>() function we’ll define our flags. Every blog entry needs an author, title and content so let’s make those flags required as well. To add a flag we first need the <em>Flagset</em> for that command, with <em>StringP(name, shorthand, defaultVal, description)</em> we can add a flag that has a shorthand (eg. ‘a’ for ‘author’). At the end of the<em> init() </em>function we bind our sub-command to the <em>root</em>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/627e355a3ea820a51fb539e57a7d107a/href">https://medium.com/media/627e355a3ea820a51fb539e57a7d107a/href</a></iframe><p>To run a method associated with the create command, our <em>cobra.Command</em> struct will take an additional property <em>RunE</em>. This allows us to execute a method that returns an error, because remember we’re returning internal gRPC errors. The <em>Flagset</em> associated with the command (<em>command.Flags()</em> ) allows us to easily retrieve the arguments given to the flags.</p><p>Out of these flags we can then create our request, <em>CreateBlogReq</em> and call the <em>CreateBlog</em> method on the client. Under the hood this will send the RPC request on the wire and return a response.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a84bd767a63d81897770966f7aee8d6c/href">https://medium.com/media/a84bd767a63d81897770966f7aee8d6c/href</a></iframe><p><strong>Read Blog Command</strong><br>That’s pretty easy right? Let’s continue with something even easier and more straightforward, especially now that you’re getting the hang of it! A command to read a blog; this will take in a single flag, the blog Object Id.</p><p>Similar to the <em>init()</em> function for our <em>create command</em>, we’ll create our flag for the <em>id </em>and bind the sub-command to our root.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4335da3145a35f5533fc0a8ca97f88b1/href">https://medium.com/media/4335da3145a35f5533fc0a8ca97f88b1/href</a></iframe><p>And in our command struct we’ll set the appropriate name and description. Our <em>runE</em> method will be similar as well. We’ll retrieve the <em>id</em> from the <em>flagset</em>, create our request (<em>ReadBlogReq</em>) out of it and invoke the RPC call.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/35ace2c84ff38da9daea38df7810149f/href">https://medium.com/media/35ace2c84ff38da9daea38df7810149f/href</a></iframe><p><strong>Update Blog Command <br></strong>Updating a blog is nearly identical on the client as creating a blog, with the addition of the id flag, because we need to tell mongoDB which document to update of course. Let’s call cobra add update and edit the generated file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/51af7fc325a9d54e62f71d3617bdf040/href">https://medium.com/media/51af7fc325a9d54e62f71d3617bdf040/href</a></iframe><p><strong>Delete Blog Command<br></strong>Similar to the read command, this command takes a single flag, the blog id and removes it from the database. The code is nearly identical apart from the invoked client method.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ee2d7a15d8cfd9d510991a29ec45cd5b/href">https://medium.com/media/ee2d7a15d8cfd9d510991a29ec45cd5b/href</a></iframe><p><strong>List Blogs Command</strong></p><p>This one will be slightly different, because if you remember it’s a RPC method that uses server side streaming. Calling ListBlogs will return a grpc client stream. If you wish to know more about this I suggest you check out the interface for it in the gRPC package. But essentially to list all blogs we’ll loop until we reach the end of the stream.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6dfa04ea745e1adc60eab0b5932e20a0/href">https://medium.com/media/6dfa04ea745e1adc60eab0b5932e20a0/href</a></iframe><h3>4. Finishing Up</h3><p>It’s been a long road, but we’re at the finish line. Now you can actually start playing with the CLI application you made. If you’ve been working from your <em>$GOPATH </em>you can<em> go install</em> the CLI app and use the root command directly from the terminal. Otherwise you can call commands like so:</p><pre>go run client/main.go create -a “Nico Vergauwen” -t “Learning Go” -c “The quick brown fox jumps over the lazy dog”</pre><p>And that’s it , you’re well on your way to become a king at Go and gRPC ! Thank you for reading, I hope you enjoyed it!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/236/0*jSVdjQX5tDsLhxHw.jpg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98e425aeaae6" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/learning-go-mongodb-crud-with-grpc-98e425aeaae6">Learning Go: MongoDB CRUD with gRPC</a> was originally published in <a href="https://itnext.io/">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My ETHparis Hackaton Experience]]></title>
            <link>https://medium.com/@Nico_Vergauwen/my-ethparis-hackaton-experience-ba48a7cb306?source=rss-c0b927f5f0d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba48a7cb306</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[hackathons]]></category>
            <category><![CDATA[events]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Nico Vergauwen]]></dc:creator>
            <pubDate>Thu, 14 Mar 2019 19:17:53 GMT</pubDate>
            <atom:updated>2019-03-14T21:02:36.949Z</atom:updated>
            <content:encoded><![CDATA[<p>A couple of weeks ago I applied to go to <a href="http://ethparis.com/">ETHParis</a>, a hackaton organized by <a href="https://ethglobal.co/">ETHGlobal</a>. Some days later I received my invite, such excitement! It was to be my first blockchain hackaton and even my first hackaton, period.</p><p>At first, I was a little scared, because I didn’t know anyone there, as an introvert that can be quite challenging. But the Ethereum community is such a great community, I found a team while I was still on the Thalys to Paris and there were plenty of opportunities to network before the event started, as well as a team formation event in the evening.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7bjm5IOxAbhHt8DkIaE9yg.png" /></figure><p>Once I arrived, I noticed that Ethereum really embodies decentralization in every aspect. I met people from all over the world from India to San Francisco; all with the same goal, building something great in the next 48 hours.</p><p>In the end I had an amazing experience and I can’t wait for my next ETHglobal event (meet me at ETHnewyork ). ETHparis had more than 350 attendees , 30 workshops/talks and <a href="https://ethparis.devpost.com/submissions">44 new projects</a> came to life which just shows the power of the community. Of course, taking home the <a href="https://0x.org/">0x</a> and <a href="https://ens.domains/">ENS</a> sponsor prizes was a great addition to my first hackaton experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/0*xPE5ByVA3IgbMnf3.jpg" /><figcaption>Simona Pop from Bounties Network hosting the opening ceremony</figcaption></figure><h3>Opening Ceremony</h3><p>After finding my teammates, claiming a spot in the hacker area and discussing what and how we were going to build our project it was time for the opening ceremony. Boris and Simona did a great job of kickstarting the event and emphasized yet again that these hackatons are about learning, mentoring and growing while contributing to the ecosystem.</p><p>After that Simona from <a href="https://bounties.network/">bounties.network</a> talked about how blockchain can have a real tangible impact on people’s lives already. They showcased <a href="https://medium.com/bounties-network/bounties-for-the-oceans-incentives-to-change-the-world-8f3429fd01e9">Bounties for the Oceans</a>, a social/environmental impact project through publicly funded bounties. They wrote out rewards to people who’d show up at a designated beach in Manilla to clean up plastic. Over 3 tonnes of plastic was cleaned over the course of a weekend, which is nothing short of amazing. Equally important was that almost none of the locals who showed up had any previous exposure to Ethereum or cryptocurrencies. Check out the documentary: Bounties for Basura.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FuViGfYZvrQg%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DuViGfYZvrQg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FuViGfYZvrQg%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/fce8cd7569c3245fceb40c2f02efa76f/href">https://medium.com/media/fce8cd7569c3245fceb40c2f02efa76f/href</a></iframe><p>We built GoMommy which is inspired by GoDaddy to register, sell and buy ENS names. We integrated the Ethereum Name Service with 0x, an protocol to build decentralized exchanges for tokenized assets. In order to make ENS names tradeable we had to convert them to ERC721 non-fungible tokens so that ownership of the name is decided by who owns the token, a feature that will be natively implemented in the new ENS registrar that will launch soon.</p><p>Once converted the owner can sell the domain by creating a make offer and sending it to a 0x relayer who keeps the order book off-chain. When someone wants to buy the domain he creates a take offer for that asset that matches the requirements of the make offer. Once a taker is found for a make offer the 0x relayer will settle the transaction on the ethereum blockchain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*FD9wRu1VI6Fgo2QEJqjS2w.png" /></figure><h3>Sponsors and Prizes</h3><p>ETHparis would have not been possible without all the industry sponsors. There was around $35,000 in sponsor prizes, which really gives a cool incentive to build things that can benefit the community. The sponsors encourage you to keep on building your project and eventually launch it. If you have questions or need help integrating their API’s, they are eager to help.</p><p>A special thanks goes out to the ENS and 0x team who thought our project deserved some prizes. We built GoMommy, a marketplace built on 0x protocol to register, buy and sell ENS names by tokenizing them. It was a really good learning experience as none of us had worked with 0x before, and that’s what it’s all about: growing and learning. You can check out <a href="https://devpost.com/software/ens-marketplace">our project on devpost</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/0*4867MiUel2RkdvGa.png" /></figure><h3>To conclude</h3><p>I couldn’t have wished for a better first hackaton experience. <a href="https://ethparis.devpost.com/submissions">44 new projects</a> saw the light of day at ETHparis, 30 workshops/talks took place and there were over 350 attendees, of which a large portion was new to Ethereum.</p><p>Everyone was super friendly and united under the same goal. I managed to find some amazing teammates and we’ll likely continue working on our project when we find the time. ETHparis was an unforgettable experience, see you at ETHnewyork. Time to catch up on sleep!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/0*vC8xc7roPRoY9rHk.jpg" /></figure><p><em>Originally published at </em><a href="https://designisdead.com/blog/my-ethparis-hackaton-experience"><em>designisdead.com</em></a><em>.<br></em><a href="/service/mailto:info@designisdead.com">info@designisdead.com</a><br> VAT: BE457.419.732</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba48a7cb306" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Upgradeable Ethereum Contracts V2]]></title>
            <link>https://medium.com/hackernoon/upgradeable-ethereum-contracts-v2-786d9c18cd9d?source=rss-c0b927f5f0d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/786d9c18cd9d</guid>
            <category><![CDATA[ethereum-contracts-v2]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[upgradeable-contract]]></category>
            <dc:creator><![CDATA[Nico Vergauwen]]></dc:creator>
            <pubDate>Wed, 05 Dec 2018 19:30:08 GMT</pubDate>
            <atom:updated>2019-06-07T16:34:49.277Z</atom:updated>
            <content:encoded><![CDATA[<h4>Getting the most out of delegatecall</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NtJ8sgGGPlVww5TD" /></figure><h4><a href="https://github.com/kyriediculous/upgradeable-contracts-v2">Looking for the code?</a></h4><p>A couple of months ago I wrote my first blog post about upgradeable smart contracts on the <a href="https://hackernoon.com/tagged/ethereum">Ethereum</a> <a href="https://hackernoon.com/tagged/blockchain">blockchain</a>. We explained that once a smart contract has been deployed onto the blockchain it cannot be changed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*r6LLu7uRLpMBsmTa0b58aQ.png" /></figure><p>Wait? Not being able to upgrade code after launching it? That seems like a bad idea, especially if you’re used to an agile development cycle. And while guaranteed code execution can be a benefit, when there is a bug it is the total opposite. Bugs in smart contracts have caused millions of dollars in losses and even gave birth to Ethereum as we know today, after one of the most popular smart contracts in the early days, the<em> slock.it DAO</em>, was found to have a vulnerability that allowed an attacker to drain all funds in the contract (<a href="https://solidity.readthedocs.io/en/v0.4.25/security-considerations.html#re-entrancy">re-entrancy attack</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*Z6WPXJzb1J1Rz9I9Vmkf_A.png" /><figcaption><a href="https://medium.com/swlh/the-story-of-the-dao-its-history-and-consequences-71e6a8a551ee">https://medium.com/swlh/the-story-of-the-dao-its-history-and-consequences-71e6a8a551ee</a></figcaption></figure><h3>First Version</h3><p><a href="https://hackernoon.com/upgradeable-smart-contracts-a7e9aef76fdd">In our last blog post on this subject</a>, we explored a strategy based on the <a href="https://github.com/monax/legacy-docs/blob/master/solidity/solidity_1_the_five_types_model.md"><em>five-types-model</em></a> that was conceived by Monax (now <a href="https://www.hyperledger.org/projects/hyperledger-burrow">Hyperledger Burrow</a>) before Solc was even released, so it’s pretty old in the ethereum world. This model splits storage and logic into separate contracts and has a registry to keep track of the individual parts. <br> <br> This version becomes expensive to deploy, especially if we instantiate the same contract over and over again. This is similar to instantiating classes in traditional programming but contract deployment on the Ethereum blockchain costs real money, so we don’t want to spend more than necessary.</p><h3>Proxy Libraries</h3><p>The <em>five-types-model </em>was okay to start with but wasn’t optimal. With proxy libraries, our base contract is a library already deployed on the blockchain. When we create an instance of this, we will deploy a contract that forwards its calls to the address that is specified. If we want to update some function logic in the library we would redeploy the library and point our contracts to this new library. Even with this strategy, there’s quite a bit of code overhead to make it happen. Eventually, our goal was to limit the code of our instantiated contracts to only one function, a forwarding function.</p><h3>Upgradeable V2</h3><p>A little over a year ago Vitalik released <a href="https://www.reddit.com/r/ethereum/comments/6c1jui/delegatecall_forwarders_how_to_save_5098_on/">a Reddit post</a> regarding the subject of forwarding contracts. The issue was that pre-metropolis (when the post was written), the output size of forwarded functions could not be dynamic and was restricted to <em>4096 bytes</em>. That issue was fixed in <em>Metropolis</em> which allows us to properly implement this type of forwarding now. <br> <br> Contract calls are forwarded using a low-level version of <strong>DELEGATECALL </strong>(although in solidity 0.5.0, the high-level version also returns data now). Delegatecall forwards a call to another contract and allows that contract to <strong>change the storage of the delegator while keeping the original message object</strong>.</p><p>Delegatecall isn’t very well documented. The documentation says that it takes the context of the calling contract (message object and storage) and uses that in the forwarded call. One undocumented feature is that if the forwarder has no storage definitions of itself in the contract, it will still assume the definitions of the master contract with its own values after initialization as long as the storage order matches.</p><p>Let’s make it more clear with a code example (thanks to the guys from <a href="https://www.originprotocol.com/">Origin Protocol</a> for pointing me to this method)</p><h3>Example</h3><p>For starters, we have a master contract. It has an unsigned integer set in storage called <em>count </em>and two functions. One to increment <em>count </em>by one, and one to retrieve the variable.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/61c359b748a3eb652148ad790870e952/href">https://medium.com/media/61c359b748a3eb652148ad790870e952/href</a></iframe><p>Next up we have the contract that will serve as the instance of <em>DummyMaster.sol</em> , <strong>note that both contracts start with <em>address impl</em> because the contracts need to follow each other’s storage order.</strong> In the constructor of <em>Dummy.sol </em>we set the address of <em>DummyMaster.sol </em>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/586182c049d230c71b70cbbbee22291d/href">https://medium.com/media/586182c049d230c71b70cbbbee22291d/href</a></iframe><p>After compiling, <em>Dummy.sol</em> has no ABI that matches DummyMaster, in order to easier interact with the contracts we can write an interface contract that is not deployed. This step isn’t necessary but it’s easier to create the <em>calldata</em> this way by instantiating the interface at the proxy address (see <em>test.js</em>).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/009f4d22b39472a3315558944c28e415/href">https://medium.com/media/009f4d22b39472a3315558944c28e415/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/56dd71f9ec77b85db17a1e9884a204d4/href">https://medium.com/media/56dd71f9ec77b85db17a1e9884a204d4/href</a></iframe><p>Let’s test our new architecture! First deploy the master, then deploy the proxy a couple of times and pass the master address in the constructor. In our test, we deploy the proxy three times. We can test that each proxy has separate storage, the count in all instances must equal 1 if we were using the same contract everytime the count would be 3.</p><p>And that’s it, a really light method to write upgradeable smart contracts! One caveat is that transactions to these contracts are slightly more expensive, therefore it’s not a good idea to use this with a monolith contract that holds all the data, like ERC20 token contracts.</p><p>On the other hand, contracts that are per-user or between a limited set of users, like an escrow, bounty or identity claims registry would greatly benefit from this.</p><p>The full code can be found on <a href="https://github.com/kyriediculous/upgradeable-contracts-v2">my Github</a>! Thanks for reading!</p><figure><a href="http://bit.ly/2G71Sp7"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fKX2mtg7p1lOs7JmosPLsA.png" /></a><figcaption>Learn smart contract development</figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fdde502%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2Fhackernoon%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href">https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=786d9c18cd9d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/upgradeable-ethereum-contracts-v2-786d9c18cd9d">Upgradeable Ethereum Contracts V2</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Make programmable incentives work for YOU.]]></title>
            <link>https://medium.com/hackernoon/make-programmable-incentives-work-for-you-c415bf1f5cef?source=rss-c0b927f5f0d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/c415bf1f5cef</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[community]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Nico Vergauwen]]></dc:creator>
            <pubDate>Wed, 05 Dec 2018 10:21:02 GMT</pubDate>
            <atom:updated>2019-05-24T08:15:11.117Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Exploring more programmable incentives use cases.</em></p><p><em>Want to learn how blockchain can help your business? Request a </em><a href="http://www.designisdead.com/blockchain/"><em>blockchain workshop</em></a><em>!</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*U5Jo2UZ41fwa9pVw.jpg" /></figure><h3>A quick refresher</h3><p>In our last blog we presented <a href="http://www.designisdead.com/blog/Meet-Knuckles-our-blockchain-pilot">‘Knuckles’</a>, a peer-to-peer marketplace for human intelligence. In this decentralized application or ‘dApp’, users can issue tasks they’d like a hand with. Users can attach a bounty to their task to incentivize other users to help them.</p><p>This mechanism of bounties lies at the core of many applications like <a href="https://stackexchange.com/">StackExchange</a>, <a href="https://www.hackerone.com/">Hackerone.com</a> or <a href="https://www.mturk.com/">Amazon Mturk</a>. ‘Knuckles’ relies on that same mechanism of incentives but works very different under the hood. Previously we would have relied on a central operator like Amazon or HackerOne to provide this service for a fee, in return the central operator takes care of hosting, security, payment processing and arbitration. Knuckles on the other hand omits this trusted third party and allows parties to directly engage with one another.</p><blockquote>Stack Exchange is a network of question-and-answer (Q&amp;A) websites on topics in diverse fields, each site covering a specific topic, where questions, answers, and users are subject to a reputation award process.</blockquote><p>This is possible because we use a ledger that’s distributed over a peer-to-peer network of all participants. In an earlier blogpost we’ve laid out a concept called <a href="http://www.designisdead.com/blog/blockchain-programmable-incentives">‘Programmable Incentives’</a>. Quick refresher:</p><blockquote>Blockchains like <a href="https://hackernoon.com/tagged/ethereum">Ethereum</a> allow us to write code or ‘smart contracts’ that live on the <a href="https://hackernoon.com/tagged/blockchain">blockchain</a>. This allows us to make conditional value transfers. With programmable incentives the goal is to reward positive outcomes and behaviour and disincentivize bad behaviour</blockquote><p>In the rest of this blogpost we’ll lay the groundwork for some other exciting use cases for programmable incentives.</p><h3>Customer Loyalty Program &amp; Marketplace</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5LEJqinFf7xcsKc1ARTc3w.jpeg" /></figure><p>Customer loyalty programs are nothing new, far from even. It’s highly likely that you too have a library of customer cards from different stores, many of which have points on them, but you never really visit those stores all that often. Then, when you’re shopping in one of your go-to places you’re desperately trying to find the right card when it’s your turn at the cashier, such a joyful experience. Additionally, loyalty programs are most often something only offered by larger companies, as the overhead for SME is larger than the ROI. On top of that is it the merchant that implements a centralized IT system that prevents double-spending of points.</p><p>What if we could solve those problems using a distributed ledger? Instead of a separate card or app per store we could join the vendors together on a single blockchain platform. Each vendor would be able to issue their own token, which works as a point system. These tokens are transferrable, so you can trade loyalty points with friends and family. Each merchant would implement his/her reward conditions in a smart contract (e.g. Minimum purchase amount). All of this without the stores having to establish a direct trust relationship for this. Isn’t that awesome? One could even build a marketplace where you could effectively trade those points directly with anyone, seamlessly.</p><h3>Social Responsibility Network &amp; Collaborative Commons</h3><p>Another use case we’ve discussed extensively and even have a concept for on the table is a network catering to Social Responsibility, where business, non-profits, people and governments come together to create a positive network effect. To keep the length of the blog post in check we’ll leave government out of the discussion for now. Sadly, volunteering numbers are in decline. Something that’s likely to be attributed to multiple causes. One undeniable fact is that volunteering has been historically driven by intrinsic motivation, maybe this just doesn’t cut it anymore in a society where our lives seemingly get more busy and stressful. The passion to help others is something one either has or doesn’t, our solution does not change that. But we can perhaps try to ignite a spark through incentives. The two main other reasons for people to do charitable work are professional development and the ability to receive discounts at local businesses. Maybe if we can combinate the latter with intrinsic motivation it can yield positive results.</p><p>We could issue ‘badges’ on the blockchain, non-transferrable tokens, that represent a proof-of-completion as verifiable credential. Tokens could be organized by category and merchants would be free to marginally lower prices to holders of tokens that represent causes they approve of. When an entire community approves of a cause, there is a community wide incentive and thus social pressure to maintain the equilibrium and associated positive outcomes (collaborative commons). Additionally, should a scheme of marginal price discrimination be implemented which raises prices slightly for non-volunteers but lowers prices for people with a ‘badge’, merchants could effectively contribute more than the cost of contribution.</p><p>To implement the ‘sense of purpose and impact’ that comes with charity a voting mechanism could be introduced to give influence to contributors over the charity they’re contributing to (either through donation or volunteering). This could be done by way quadratic voting where a donation of X would result in a voting power of √X, but that would be a subject for its own blogpost.</p><h3>Sustainable Transport</h3><p>Another great example of ‘collaborative commons’ would be eco-friendly transportation to reduce the ecological footprint of a community or nation. The incentive and disincentive could be in the form of a carbon tax. We could implement a mechanism of price discrimination as described above. Where the government would tax bad behaviour (high carbon footprint) slightly more and good behaviour would get a slight tax benefit. A dynamic equilibrium would guarantee the incentive. Essentially what you’d get is a carbon credit market for people.</p><p>A cool concept we’ve played with in our minds is incentivizing the notorious Blue bike/Antwerp city bike rides using smart locks and a GPS tracker. We could then keep track of time and distance and pay out a reward according to the total of “good” distance and time travelled by the entire community.</p><p>While distributed ledger networks of IoT devices are still a novelty, identity, tracking of distance and carbon credits could still be maintained on a ledger of local municipalities and companies with such an offering.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/0*YIKklfLB8y_0VpWg.jpg" /></figure><h3>Artificial Moral Agents</h3><p>To conclude we’ll discuss a more futuristic topic in short: how AI and incentives match together. AI is one of the current hot topics in tech, with its rise also come concerns about its dangers. More specifically on the topic of morality and the dangers of AI improvements outpacing our understanding of it.</p><p>Blockchain could potentially offer a solution for creating AI that resembles having a sense of morality. There could be incentives and disincentives in the form of a machine reputation system. The challenge is to create an economic system for the AI to play in that promotes good outcomes for society. You could literally imagine this as different machines playing a virtual game within certain confines that should lead to good outcomes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/347/0*gGSECB9am19-F6xt.png" /></figure><h3>Blockchain for your business</h3><p>We organise <a href="http://www.designisdead.com/blockchain">workshops and interactive sessions</a> to discover viable use cases for your business, industry or verticals.</p><p>Would you like to know more about the use cases we’ve described here? Contact <a href="/service/mailto:yoeri.conickx@designisdead.com">Yoeri Conickx</a>.</p><p><a href="http://www.designisdead.com/blog">View all blogposts</a></p><p><em>Originally published at </em><a href="http://www.designisdead.com/blog/make-programmable-incentives-work-for-you"><em>www.designisdead.com</em></a><em>.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fdde502%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2Fhackernoon%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href">https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c415bf1f5cef" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/make-programmable-incentives-work-for-you-c415bf1f5cef">Make programmable incentives work for YOU.</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>