<?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 David Gudeman on Medium]]></title>
        <description><![CDATA[Stories by David Gudeman on Medium]]></description>
        <link>https://medium.com/@davidgudeman?source=rss-5481f36daff5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*YX2oiQtR3haasnuB5aa3Ow.jpeg</url>
            <title>Stories by David Gudeman on Medium</title>
            <link>https://medium.com/@davidgudeman?source=rss-5481f36daff5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 23:17:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@davidgudeman/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[Using the EVM to simplify Chia Pools]]></title>
            <link>https://medium.com/liquidum-network/using-the-evm-to-simplify-chia-pools-d5bd696411c3?source=rss-5481f36daff5------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5bd696411c3</guid>
            <category><![CDATA[mining-pool]]></category>
            <category><![CDATA[chia]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[David Gudeman]]></dc:creator>
            <pubDate>Thu, 01 Jul 2021 22:21:58 GMT</pubDate>
            <atom:updated>2021-07-01T22:21:58.602Z</atom:updated>
            <content:encoded><![CDATA[<p>Pooling is a critical component of how miners evaluate participation in a cryptocurrency network. Without pooling, small miners cannot participate and networks becomes highly centralized.</p><p>Today we’re going to answer three questions: How does pooling work in PoW blockchains? How is Chia different? Finally, how could Chia be improved?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QKf64Q1uC5jFd9BwUDasUQ.jpeg" /></figure><h3><strong>Pooling in Proof of Work (PoW)</strong></h3><p>Let’s say miner Bob joins a pool on a PoW network like Bitcoin or Ethereum. The pool sends Bob a block, and Bob compute hashes until he finds a winning hash or receives a new block from the pool. The blocks that the pool sends only pay rewards to the pool’s address. Bob is compensated for his work by sending partial results to the pool operator to prove that he is contributing to the overall hashrate.</p><p>If Bob attempts to “cheat” by mining blocks that do not pay out to the pool, the pool will notice the incorrect payout address and refuse to pay Bob. If the pool “cheats” by refusing to pay Bob, he will notice and leave the pool, losing only the small rewards for his partial results, at most a few minutes of work. Proof of Work naturally prevents “double mining” because the resources used for hashing (ASICs, GPU, etc) must be dedicated to a particular piece of work. Any hashrate spent on a second block is removed from the first block.</p><h3>Pooling in Chia</h3><p>Mining in Chia is called “farming”. Bob generates large files called “plots” which he farms to generate rewards. He receives “challenges” over the network and uses them to construct “proofs” from his plots. Some of these “proofs” are “good” enough for a reward. When Bob finds a “good” proof, he chooses a reward payout address, attaches it to the proof, and sends the proof over the network. The network then pays a block reward to Bob’s chosen address.</p><p>Unlike Proof of Work, Chia plots do not naturally prevent “double mining”. Bob could simultaneously farm many challenges on the same plot using almost no additional resources. Pooling cannot be implemented with pool-specific challenges.</p><p>Instead, Chia added another kind of plot called a “portable plot”. When Bob creates a portable plots, he seeds the entire plot with the address of a “Plot NFT” smart contract. A portion of all rewards generated by this plot are automatically sent to the Plot NFT. The NFT can then be configured to forward the rewards to a pool of Bob’s choosing, or to Bob’s own address if he does not want to join a pool. Bob can change the payout address, but must first publicly give notice for an “escape time”, long enough for pools to notice the address change.</p><p>This configuration is visible to pool operators, so they can compensate Bob for mining in the pool and stop compensating him if he changes the payout address. Bob joins a pool by pointing his NFT to the pool. He sends partial farming results to the pool, and the pool pays him for these results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DnVe-w4Qyih_Y2FMqLlZrQ.png" /><figcaption>Chia’s Plot NFT Architecture</figcaption></figure><p>Let’s look at how this design prevents cheating with a few examples.</p><ul><li>Suppose Bob joins a Chia pool but selfishly tries to keep rewards. When he farms a winning block, he changes the payout address to pay himself. Because of the “escape time”, the payout address does not change quickly enough and the rewards still go to the pool.</li><li>What if the pool stops paying Bob? Bob would notice that he is no longer being compensated, and switch his Plot NFT to point away from the pool. He only loses the rewards for a few minutes between pool payouts.</li><li>Say Bob wants to “pool hop” by farming on multiple pools at the same time. This is prevented by the “escape time” as well. Each pool would notice Bob’s intent to switch and stop paying him.</li></ul><p>This sounds great, but how is it all implemented in Chia? It’s complicated by the fact that the underlying blockchain represents state through UTXOs as opposed to an account model like Ethereum. Stateful things like “which pool a miners plots are attached to” have to be represented with immutable “coins”. The Plot NFT is actually a “coin” created by spending a the “singleton genesis coin”. The “singleton genesis coin” is itself XCH (1 mojo) because all state in Chia is represented by unspent XCH coins. When a miner spends this “singleton genesis coin”, it creates a singleton which specifies the pool it wants to participate in. And if a miner wants to update its pool it would “spend” the singleton to create a new singleton. Chia has recreated “state” in a clever and functionally pure way, but all the components and layers of indirection can be overwhelming.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zIVF0SjNB--q0VLifpJexQ.png" /><figcaption>Chia Lisp Implementing State without State [1]</figcaption></figure><p>What if Chia were able to use Ethereum-like smart contracts written in Solidity? Could we build Plot NFTs more easily?</p><p>We need a few pieces of state to track where the rewards will go, and a timer to prevent the owner from changing the address without the pool knowing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*gEXdwA03SXmWE0MG6QSc-Q.png" /></figure><p>Then we provide a method to allow the owner or pool operator to withdraw the rewards.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*IAO7J46FIgyxN56uVPuFlQ.png" /></figure><p>The owner of the plot should be able to change which pool they are mining in, or switch to solo mining, but the change must include a delay so that the pool operator has time to notice the upcoming change.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t52qySGPk-GuR03WkThcyA.png" /></figure><p>Finally, we need to give the pool a way to detect which plots are farming for the pool, so that miners will only be paid if their rewards will go to the pool</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*B3GIGSBkh2rPG47mwM9-dQ.png" /></figure><p>Putting it all together:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/852b67a55bb55636bd0525c06c9ff2b4/href">https://medium.com/media/852b67a55bb55636bd0525c06c9ff2b4/href</a></iframe><p>And that’s it! A nearly[2] production-ready implementation of a Chia plot NFT in just 30 lines of code. Any developer can read this contract and easily understand what it is doing. Another cool side effect, by using Ethereum we could turn this plot contract into an ERC-721 token, so that plots can be bought and sold independently of who does the actual farming.</p><p>We believe that this example illustrates a potential way to improve Chia dramatically. While we love Chia’s new Proof of Space and Time consensus mechanism, we believe that it would be even better if combined with Ethereum style smart contracts.</p><p>That’s why we founded <a href="https://liquidum.org/">Liquidum</a>. We are combining Chia’s consensus engine with Ethereum’s smart contract and developer ecosystem to build <strong>a new blockchain that is efficient, fast and truly decentralized</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xCwYSl0Vbqjo3iq-G7dkPg.png" /><figcaption>Introducing Liquidum</figcaption></figure><p>With Liquidum, you can write Solidity smart contracts, build Dapps with web3.js, send transactions using Metamask. The same plots used for Chia’s Proof of Space and Time are used to secure Liquidum, <strong>including new portable pooling plots</strong>.</p><p>We’ll be writing more about Chia and Liquidum here, and you can always learn more on <a href="https://liquidum.org/">liquidum.org</a>.</p><p>Happy Farming!</p><p>[1] In Chia Lisp, you can compactly represent state using hash trees. Because this pattern is so common, Ethereum does this for you. Every Ethereum smart contract comes with a built-in state tree accessible via “load” and “store” vm instructions.</p><p>[2] A real contract would need to emit events so that pool operators can easily monitor for changes. The contract would also need to support ownership transfer</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5bd696411c3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/liquidum-network/using-the-evm-to-simplify-chia-pools-d5bd696411c3">Using the EVM to simplify Chia Pools</a> was originally published in <a href="https://medium.com/liquidum-network">Liquidum</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>