<?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 Tim Olson on Medium]]></title>
        <description><![CDATA[Stories by Tim Olson on Medium]]></description>
        <link>https://medium.com/@timolsoncrypto?source=rss-fb00054f5d6d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*AQmrdVzUXCmIRfM30hPdTw.jpeg</url>
            <title>Stories by Tim Olson on Medium</title>
            <link>https://medium.com/@timolsoncrypto?source=rss-fb00054f5d6d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 13:03:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@timolsoncrypto/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[TurtleCoin: CryptoNight Soft Shell is Nonsense]]></title>
            <link>https://medium.com/@timolsoncrypto/turtlecoin-cryptonight-soft-shell-is-nonsense-8e5c3ca5f572?source=rss-fb00054f5d6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e5c3ca5f572</guid>
            <category><![CDATA[asics]]></category>
            <category><![CDATA[proof-of-work]]></category>
            <category><![CDATA[cryptocurrency-mining]]></category>
            <dc:creator><![CDATA[Tim Olson]]></dc:creator>
            <pubDate>Sat, 20 Oct 2018 19:04:28 GMT</pubDate>
            <atom:updated>2018-10-22T00:20:19.425Z</atom:updated>
            <content:encoded><![CDATA[<h3>TurtleCoin: CryptoNight Soft Shell</h3><p>I apologize to the CryptoNight Soft Shell author for my previous tone of voice, but it’s unconvincing.</p><p>TurtleCoin’s proof-of-work (PoW) is called CryptoNight Soft Shell, and it’s a modification to the classic CryptoNight PoW used by other CryptoNote coins, most notably Monero. You can read about CryptoNight Soft Shell here:</p><p><a href="https://blog.turtlecoin.lol/archives/introducing-cryptonight-soft-shell/">Introducing CryptoNight Soft Shell</a></p><p>Our team at altASIC recently open-sourced a super-fast ASIC design for CryptoNight, so I do understand CryptoNight ASICs:</p><p><a href="https://github.com/altASIC/Open-CryptoNight-ASIC">altASIC/Open-CryptoNight-ASIC</a></p><p>Soft Shell’s authors make an assumption often parroted by software engineers that ASIC’s cannot adapt to changing conditions, like the resizing of the PoW’s memory scratchpad or the number of iterations in a loop. While it’s true that an ASIC, once produced, cannot change its function or code, that does <em>not</em> prevent an ASIC from having a variable for the loop counter. ASICs can handle all kinds of logic-based algorithims, but they can’t change that code after production.</p><p>Soft Shell adds an additional parameter to CryptoNight which changes as the blockchain grows. Both the number of inner-loop iterations and also the size of scratchpad memory follow a periodic curve. The idea is that an ASIC cannot handle changing these parameters, but ASICs can certainly have a variable for a loop counter. Handling a variable number of iterations in an ASIC is trivial.</p><p>The changing amount of scratchpad (SRAM) memory is a <em>little</em> more troublesome. An ASIC must be designed to be able to handle the maximum amount of memory required during the Soft Shell cycle, but as long as this fits on a single chip, there is no problem. We can always use less memory during the times when Soft Shell calls for a smaller scratchpad. We write the logic to run many small scratchpads or just a few big scratchpads, and tune it by the blockchain height. It does increase the total size of the chip…</p><p>Doesn’t this waste space on the ASIC and make it more expensive? Yes and no. This flexible code allows the whole chip to be used at all stages of the Soft Shell cycle, so it just means a bigger chip for the worst-case parameters for memory. The economics of chip design is millions of dollars for the first chip, then a few bucks each after that. Adding a few dimes to the per-unit cost does very little to discourage ASIC miner production.</p><p>After manufacturing, the ASIC could not run a different algorithm. If Soft Shell changed completely to XL Shell and needed a large DRAM for scratchpad, any existing chips would be brikt.</p><p>If Soft Shell grows beyond what a single chip can hold in terms of memory, it becomes a memory-bound proof-of-work. An ASIC miner can do the logic part better than a CPU, and the DRAM part at least as well.</p><p>Actually, Soft Shell as it stands would hurt CPUs worse than ASICs. CPUs have a fixed design, a fixed ratio of compute-to-memory (1 MiB per core). Original CryptoNight is already well-tuned for memory-to-compute ratios in consumer CPUs, so by changing this ratio to be different than what is set by CryptoNight, Soft Shell actually reduces the relative performance of CPUs. An ASIC may be custom-built to handle these new parameter ranges, but CPUs already align with the original CryptoNight parameters and would do worse at times.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e5c3ca5f572" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CryptoNight is Poison]]></title>
            <link>https://medium.com/@timolsoncrypto/cryptonight-is-poison-ab598bfe2d2c?source=rss-fb00054f5d6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab598bfe2d2c</guid>
            <category><![CDATA[monero]]></category>
            <category><![CDATA[cryptocurrency-mining]]></category>
            <category><![CDATA[proof-of-work]]></category>
            <dc:creator><![CDATA[Tim Olson]]></dc:creator>
            <pubDate>Tue, 16 Oct 2018 18:53:56 GMT</pubDate>
            <atom:updated>2018-10-21T23:46:21.693Z</atom:updated>
            <content:encoded><![CDATA[<p>Complex proofs-of-work (PoW) give unfair advantages to those who can untangle these Gordian knots. Our team at altASIC got 5x better performance than the Bitmain X3 only because the CryptoNight PoW is complicated and we found new optimizations that were <em>missed</em> by the largest miner manufacturer in the world.</p><p><a href="https://github.com/altASIC/Open-CryptoNight-ASIC">altASIC/Open-CryptoNight-ASIC</a></p><p>CryptoNight has a long history of obfuscation and optimization. The original pseudonymous author secretly designed CryptoNight to be efficiently mined on a CPU, but the public code that was released was extremely slow and purposefully inefficient. Because CryptoNight was so complex, it took some time and a computer scientist to untangle it. David Andersen figured out efficient code and privately mined on AWS until his code was leaked to Bitcointalk. His story is a great read:</p><p><a href="https://da-data.blogspot.com/2014/08/minting-money-with-monero-and-cpu.html">Minting Money with Monero ... and CPU vector intrinsics</a></p><p>David Andersen really knows his stuff, and I’m glad he got some cash, but we see how a complex proof-of-work serves only to aggregate coins to the elite miner writers.</p><p>For a long time after Andersen’s miner, CryptoNight was presumed to be ASIC-resistant, since it had been designed to optimize CPU utilization. However, any proof-of-work that a CPU can do well, an ASIC can do smaller and faster with less power, and in 2017 it became clear from the growing Monero hashrate that one or more manufacturers had indeed developed an ASIC for CryptoNight. Building such an ASIC is not easy, and again we saw coins accumulate to only the best in the business.</p><p>Now in 2018, our open-source release raises the bar again, by <em>another 500%</em>. We did this by overlapping some compute code in a clever 6-stage pipeline that only takes 4 cycles per hash. This was an optimization that had been <em>missed</em> by three different ASIC companies including Bitmain.</p><blockquote>How does the largest miner writer in the world <em>miss</em> a 5x optimization? Because the proof-of-work is complicated.</blockquote><p>The more complicated a proof-of-work is, the more opportunity there is for clever people to find optimizations that are not known to the general mining community. Four years after the original release of CryptoNight, after it had been studied by a computer science luminary, talented miner authors, and several ASIC companies, there was <em>still</em> a huge optimization left to be discovered.</p><blockquote>Proof-of-work complexity hurts decentralization.</blockquote><p>There are many other examples of complicated proofs-of-work putting money in the hands of a few people. Ethash and Equihash have both seen ASICs developed and also had certain GPU implementations significantly outperform others, especially near launch before many optimizations were widely known.</p><p>If we want a fair mining market, the proof-of-work must:</p><ul><li>Have a known optimal solution</li><li>Be simple to implement</li></ul><p>Proofs-of-work without a long history of study and research and without a mathematical proof of computational lower bounds will always be subject to tricks and cleverness, where only the strong prevail. If the proof-of-work solver is both simple and proven to be optimal, then a large number of people should be able to write miners which are roughly equivalent in performance. This is the way to make mining fair.</p><p>Let’s learn the lesson of CrypoNight and demand <em>simple, proven</em> proofs of work.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab598bfe2d2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>