<?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 Raphaël Haupt on Medium]]></title>
        <description><![CDATA[Stories by Raphaël Haupt on Medium]]></description>
        <link>https://medium.com/@raphabenoi?source=rss-d1a1ae30a292------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*lmAlm-W9lXnYjjevgWGkpA.jpeg</url>
            <title>Stories by Raphaël Haupt on Medium</title>
            <link>https://medium.com/@raphabenoi?source=rss-d1a1ae30a292------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 09:29:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@raphabenoi/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[CO2ken Genesis]]></title>
            <link>https://medium.com/@raphabenoi/co2ken-genesis-74d7a1387ea1?source=rss-d1a1ae30a292------2</link>
            <guid isPermaLink="false">https://medium.com/p/74d7a1387ea1</guid>
            <category><![CDATA[hackathons]]></category>
            <category><![CDATA[carbon-emissions]]></category>
            <category><![CDATA[environmental-impact]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Raphaël Haupt]]></dc:creator>
            <pubDate>Mon, 16 Mar 2020 12:34:43 GMT</pubDate>
            <atom:updated>2020-06-01T19:05:43.000Z</atom:updated>
            <content:encoded><![CDATA[<h4>Carbon offsetting for web3</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_7uiNFriytj0boUeV18BDg.jpeg" /><figcaption>Photography by <a href="https://unsplash.com/@javier365?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Javier Mazzeo</a></figcaption></figure><h3>🌟 TL;DR</h3><ul><li>We tokenize carbon offsets to make them available for the web3 ecosystem. We <a href="https://devpost.com/software/co2ken">debuted</a> at EthLondon, where we won a project bounty 🏆</li><li>Technically, our Solidity modifier can be integrated to any smart contract to calculate and automatically offset the emissions associated with its execution, and a JavaScript API allows dApps to interact with our smart contracts to offer their users carbon offsetting ✨</li><li>This is only the beginning: we have a bold long-term vision for democratizing and increasing transparency along the carbon offset value chain, creating a carbon-neutral web3 and beyond 🧙‍♂️</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JSLzs-Gqm3S7zbn_BPa_-A.png" /></figure><h3>🐱‍💻 Who are we?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WaxFUkPLrlaJ-3tn" /><figcaption>Everything under control @EthLondon</figcaption></figure><p>We — <a href="https://twitter.com/adamspiers">Adam</a>, <a href="https://twitter.com/JanBene18">Jan</a>, <a href="https://twitter.com/0xEther">Nick</a> and <a href="https://twitter.com/raphabenoi">myself</a> — met at EthLondon. Before attending the hackathon, I had been trying to wrap my head around an architecture for web3 emissions offsetting with the other members of <a href="http://curvelabs.eu/">Curve Labs</a>. I came to the hackathon with a rough sketch in my mind and a ton of enthusiasm as a first-time hacker but desperately needed a team. I met the other guys at the venue when all teamless persons were directed to a common corner of solitude by an EthLondon organizer (it was, in fact, a literal corner of the room). We immediately hit it off and began to <em>#buidl</em> 💪</p><h3>ℹ Context</h3><p>We know, beyond a doubt, that when carbon and other <a href="https://en.wikipedia.org/wiki/Greenhouse_gas">greenhouse gases</a> (GHGs) are emitted into the atmosphere, they trap heat, contributing to climate change. If we don’t act fast, we will reach the <a href="https://www.nature.com/articles/d41586-019-03595-0">ecological tipping points</a> that irreversibly put in danger the livelihood for billions of humans and (other) animal species. This is a huge waste management issue: collectively, we fail to price in our contributed carbon emissions, creating global negative externalities. To fix this, we believe understanding the link between our actions and the environment is an important first step. This information needs to be palpable, and as markets have taught us, there is nothing understood easier than putting a price on it.</p><blockquote>“Reduce what you can, offset what you can’t.” — Highly controversal environmental aphorism</blockquote><p>For our MVP, we started with a simple question: “How can a smart contract or <a href="https://hackernoon.com/what-are-decentralized-applications-dapps-explained-with-examples-7ff8f2c4a460">decentralized application (dApp)</a> offset itself?” Our answer: by tokenizing <a href="https://en.wikipedia.org/wiki/Carbon_offset">carbon offsets</a> — certificates confirming a reduction in carbon emissions elsewhere — smart contracts and dApps can compensate for the cost of their own usage. We built a simple API which lets us accomplish this. I’ll jump into it shortly!</p><p>We want to make it clear that offsetting is no silver bullet. Studies estimate that <a href="https://carbonmarketwatch.org/publications/empty-targets-how-to-avoid-trading-of-hot-air-under-the-paris-agreement/">three quarters of circulating carbon credits are <em>“hot air”</em></a> and <a href="https://ec.europa.eu/clima/sites/clima/files/ets/docs/clean_dev_mechanism_en.pdf">don’t lead to additional emission reductions</a>. We should foremost aim to reduce our carbon footprint overall, and only compensate for those activities for which no good alternatives exist today. In our eyes, blockchain is a technology which can be used to realign incentives within our flawed economic system. Our goal is to shed light onto the opaque interplay of intermediaries in the carbon offsets value chain today. Decarbonizing Ethereum is a necessary first step towards reaching this goal 🚀.</p><p>To redux, our MVP was designed with these criteria:</p><ul><li><strong>Foremost, enable carbon emission offsetting </strong>within the Ethereum ecosystem.</li><li><strong>To achieve scalability</strong>, empower smart contracts and dApps to automate offsetting their associated carbon footprint.</li><li><strong>And for transparency, </strong>provide a public, verifiable track record of offsetting activity.</li></ul><p>Let’s dive deeper!</p><h3>⚙ The Hackathon MVP</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uuiSZJQsZIVE6bZk" /><figcaption><em>Overview of possible processes: (1) buying carbon offset certificates; (2) minting new CO2kens; (3) user offsets their emissions via dApp; (4) dApp owner offsets all transactions which go through their smart contracts</em></figcaption></figure><p>The above diagram shows our solution’s different components. Each component role and their interactions is explained by understanding the following four processes:</p><ol><li>Buying carbon offsets from “traditional” retailers</li><li>Minting new CO2kens based on the purchased carbon offsets</li><li>Offset scenario 1: dApp user offsets their carbon emissions</li><li>Offset scenario 2: dApp owner offsets their smart contracts’ emissions</li></ol><h4>Buying carbon offsets from “traditional” market retailers</h4><p>We deployed a <a href="https://hackernoon.com/what-is-a-dao-c7e84aa1bd69">decentralized autonomous organization (DAO)</a> to the Ethereum Rinkeby testnet using the <a href="https://aragon.org/">Aragon</a> framework. We assume this DAO to utilize a <a href="https://medium.com/@OpenLawOfficial/the-era-of-legally-compliant-daos-491edf88fed0">legal wrapper for incorporation</a>, for liability and dispute resolution purposes, however, we didn’t go this far in the hackathon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hCuQoRTyAj2-HqsqnPeljQ.png" /><figcaption><em>A DAO member buys carbon offsets from an offset retailer or directly from its project developers and stores proof of purchase on IPFS</em></figcaption></figure><p>In the current design, a member of the DAO purchases carbon offsets from the traditional offset market. For our MVP, we rely on <a href="https://www.goldstandard.org/">GoldStandard</a> — a Switzerland-based certifier that looks at net carbon project reduction and at other <a href="https://sustainabledevelopment.un.org/?menu=1300">sustainable development goals</a> (SDGs) metrics. Upon purchase, GoldStandard retires an equivalent amount of offset certificates and issues a receipt. The DAO member then stores the receipt on a public, decentralized file storage system — we used <a href="https://ipfs.io/">IPFS</a> — thus creating a digital document fingerprint. Finally, we note that offset quality varies substantially from one certifier to the next. In the future, the DAO would thus also need to curate a registry of quality offset providers.</p><h4>Minting new CO2kens based on the purchased carbon offsets</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dle-ZDZRRW7rOX4wIBY__A.png" /><figcaption><em>With the hash of the receipt, the DAO member now proposes to issue an equivalent amount of CO2kens</em></figcaption></figure><p>The DAO member now proposes — with the receipt hash — to mint new CO2kens, equivalent to the number of purchased offsets. The other members of the DAO verify the proof and pass/fail the proposal. If passed, new CO2kens are issued to <em>CO2ken.sol </em>contract, backed by GoldStandard’s retired carbon offsets.</p><p>Now anybody can send <a href="https://makerdao.com/">DAI</a> — a cryptocurrency stablecoin valued at approximately $1/DAI — to the token contract and retire an equivalent amount of CO2kens and thus offset their carbon emissions. The price of a CO2ken is currently fixed by the DAO and stored in a separate contract called <em>CO2kenData.sol</em>. The pricing is a difficult topic though and we are currently deciding on how to best implement it.</p><h4>Offset scenario 1: dApp user offsets their carbon emissions</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oUYZiykOSXm4UyWDd_-k2w.png" /><figcaption><a href="https://www.co2ken.io/"><em>CO2ken Rinkeby demo UI</em></a></figcaption></figure><p>Now that we have tokenized the carbon offsets, any dApp can interact with the CO2ken contract and offer offset functionalities to their users. To make it as easy as possible for dApp developers, we’ve published an npm package called<em> eth-co2.js</em> — a carbon offset API. Documentation <a href="https://www.npmjs.com/package/eth-co2">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kczdsF5fdFFyLNpEMeX0yg.png" /><figcaption><em>Any Ethereum dApp can now offer carbon offset functionalities to their users by using the eth-co2.js carbon offset API</em></figcaption></figure><p><a href="https://www.co2ken.io/">Our website</a> features the first dApp to use <em>eth-co2</em>. It has a simple UI wherein web3 users can specify the amount and directly offset their carbon emissions. Users input the emission quantity they want to offset, see the cost, and pay in DAI using their favourite crypto wallet. In the future, we want to allow users to calculate their average annual emissions, offset travel-related emissions, or enter their wallet address to offset their web3 carbon footprint. We very much hope to see other projects picking up our API and building dApps we didn’t even think of. <strong>All that being said, don’t send real funds yet! It’s still only a Rinkeby demo.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Fw0J9FV3Tj1_bdRT" /><figcaption><em>Carbon offset parameters provide transparency to the user</em></figcaption></figure><p>The UI’s parameters — as stored in the <em>CO2ken.sol </em>and the <em>CO2kenData.sol </em>contracts — are made available to the frontend via the <em>eth-co2.js </em>API. They provide transparency to the user.</p><ul><li><strong>Current CO2ken price </strong>is fixed by the DAO, likely based on the price of purchased offset certificates.</li><li><strong>Total supply of CO2kens </strong>shows how many tokenized carbon offsets are available.</li><li><strong>DAI in CO2ken contract </strong>shows the total amount of funds from “sold” CO2kens the DAO can withdraw from the<em> CO2ken.sol</em> contract to its treasury.</li><li><strong>C02 emissions for 1 gas</strong> shows the estimated carbon footprint of one unit of gas consumed by the Ethereum network. This metric is important for the next scenario and will be explained in greater detail below.</li></ul><h4>Offset scenario 2: smart contract owner offsets carbon emissions</h4><p>In the above scenario, the user paid to offset emissions. In this scenario, the dApp owner pays to offset emissions associated with their smart contracts’ execution. In return, they can offer their customers <strong>“green smart contracts,” </strong>or alternatively, a<strong> “green dApp</strong>.”</p><p>That being said, calculating the carbon footprint of smart contract execution is a bit of a rabbit hole, and deserves its own <em>Medium</em> post. We don’t think there is a <em>right</em> way to calculate it, but we can, for instance:</p><ol><li>Look at the <a href="https://digiconomist.net/ethereum-energy-consumption">energy consumption of Ethereum</a> for a given period, likely a day, and divide it by the <a href="https://www.etherchain.org/charts/totalGasUsage">total amount of gas</a> used during that period.</li><li>Multiply this value with the <a href="https://www.iges.or.jp/en/pub/list-grid-emission-factor/en">grid emission factor</a> of China. This factor describes how much CO2 is emitted when producing 1 MWh of electricity. China has an extensive cryptocurrency mining industry and a comparably bad energy to carbon emissions ratio which makes it a safe estimate, which is why we chose to use it. That being said, getting more granular energy data with regard to mining is on our todo list.</li></ol><p>Alternatively, we could take the energy consumption per Ethereum transaction found <a href="https://digiconomist.net/ethereum-energy-consumption">here</a>. But looking at gas gives us a more granular metric — and also, without getting into too much detail, it’s what various folks have argued for online [<a href="https://twitter.com/CryptoDemetrius/status/1144357399744196609">1</a>] [<a href="https://hackernoon.com/green-smart-contracts-theres-more-to-blockchain-energy-consumption-than-consensus-898fb23eea75">2</a>] [<a href="https://blog.usejournal.com/eip-2050-ghg-emissions-offsetting-for-crypto-transactions-7daaaee443fb">3</a>]. But hey, this is far from perfect and we’d be happy to collect your ideas as well. You can find all our calculations <a href="https://docs.google.com/spreadsheets/d/1IpgKLB5e6JR12gjSplZ-Y1_xB9ylt8SNFyEKmhPtQ1A/edit?usp=sharing">here</a>.</p><p>One thing we shouldn’t forget: we’re dealing with CO2 emissions. If we use the data we have, take the most conservative estimate, and start offsetting these blockchain emissions, we will at worst offset too much. Given the state of the planet, we kind of have to do this anyway.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YAaP39BWETSRHRetq1toMg.png" /><figcaption><em>DApp providers can integrate the </em>offset()<em> modifier from our Green.sol contract into their “polluting” smart contracts. Methods carrying this modifier automatically offset their own gas cost s — becoming “green smart contracts”</em></figcaption></figure><p>Ok, so now that that’s explained, how does it technically work?</p><ul><li>A user makes an Ethereum transaction using a green dApp, calling one of the dApp’s smart contracts which have already added our <em>offset() </em>modifier to their methods.</li><li>When a method is invoked, it calculates how much gas it is using and adds that number to a variable on smart contract level which tracks how much gas has been consumed.</li><li>When that variable reaches a certain threshold, the contract automatically sends the equivalent amount of DAI to our<em> CO2ken.sol </em>contract to offset all the consumed gas at once. Thanks to this batching method, we reduce the gas cost of our own contract executions.</li></ul><h3>🙀 Outstanding Issues</h3><p>As mentioned, this is an MVP: there are still a lot of things to do and problems to solve. Here’s a selection of the most pressing ones:</p><h4>The agency trust problem</h4><p>The DAO buying accredited offset certificates from a traditional retailer is a workaround to a native web3 accreditation agency. We envision a collaborative network where all agents providing value to the ecosystem — project developers, auditors, customers, and investors — have a stake therein and thus profit from the network’s proliferation. In comparison to traditional retailers, we believe that cryptoeconomic design mechanisms can reduce overhead and fraudulent behavior along the carbon offset value chain, forming overall a more trustworthy accreditation agency.</p><h4>Technical &amp; legal challenges</h4><p>There are still technical obstacles which need to be overcome. Mainly:</p><ul><li><strong>The oracle problem:</strong> we need trusted carbon emission data in order to automatically offset these emissions on-chain. This is particularly important with regard to the <em>offset()</em> modifier which must know the carbon intensity of Ethereum transactions. Currently, the carbon intensity of gas is stored in the <em>CO2kenData.sol </em>contract, but this task should be delegated to a decentralized oracle provider — e.g., <a href="https://chain.link/">Chainlink</a>.</li><li><strong>Tradable ERC-20 or not?</strong> In the current design, a CO2ken is not tradable. This design choice was made deliberately due to the legal uncertainty surrounding tokenized real-world assets and their status as securities. Yet, there are potential benefits of having a tradable <a href="https://medium.com/@jgm.orinoco/understanding-erc-20-token-contracts-a809a7310aa5">ERC-20</a>, it, for instance, opens the door for investors interested in carbon offsets.</li><li><strong>Structuring the CO2ken: </strong>Carbon offsets come in all shapes and sizes. Can we collapse the diversity of traditional carbon offset certificates into a single fungible asset? Or do we need multiple fungible assets? Or even <a href="https://medium.com/hackernoon/non-fungible-tokens-vs-fungible-tokens-whats-the-difference-e5151b7c3aa2">non-fungible tokens (NFTs)</a>?</li></ul><h4>… and finally: Adoption</h4><p>Blockchain-native solutions struggle to bridge into the “non-crypto” universe, due to poor UX, high levels of bias towards the technology amongst the broad public, and barriers with regard to scalability. Additionally, DAI is the only accepted cryptocurrency by the<em> CO2ken.sol </em>contract. Being able to pay with fiat and other cryptocurrencies is a crucial component towards adoption. We aim to address these issues to launch a successful decentralized project.</p><h3>🍃 Next Steps</h3><p>We’re proud of what we came up with at EthLondon, and to be honest, the positive response to what we’ve created has been a little overwhelming. The famous Simona Pop approached and invited us to apply to join the <a href="https://blockchainforsocialimpact.com/incubator/">Blockchain for Social Impact Coalition’s (BSIC) incubator</a>. We did, and were well received! We now have a close team of mentors with both domain and technical knowledge who force us to answer the uncomfortable questions.</p><h3>Simona Pop 🔥 simona.eth on Twitter</h3><p>@DennisonBertram @webflow @dapphero @ETHGlobal I was chatting to this awesome team and they will not only continue working on it but I very much suggested they join the @ethereum4impact incubator ASAP 🤘</p><p><strong>Beyond this, we’re going to:</strong></p><ul><li><strong>Participate in the </strong><a href="https://www.futureofblockchain.co.uk/"><strong>Future of Blockchain</strong></a><strong> hackathon.</strong> We work best under pressure, and there are some features we want to add to our MVP — first and foremost, integrating the <a href="https://thegraph.com/">Graph Protocol</a> to offer users personalized data of their offsetting history.</li><li><strong>Launch our first product. </strong>The goal is to validate our assumptions quickly by getting “real” customers.</li><li><strong>Seek funding.</strong> If we can get funded, we can tackle this project with a full-time intensity, instead of four guys working intermittently. If you feel lucky, generous, or just want to help us move this idea further, shoot a message to <a href="/service/mailto:contact@curvelabs.eu">contact@curvelabs.eu</a>.</li></ul><p>➰ Follow the CO2ken project on <a href="https://twitter.com/CO2ken_io">Twitter</a>, subscribe to our <a href="https://medium.com/@curvelabs">blog</a>, or visit Curve Labs on the <a href="https://www.curvelabs.eu/">web</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74d7a1387ea1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>