<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Inevitable</title>
        <link>https://paragraph.com/@inevitable</link>
        <description>undefined</description>
        <lastBuildDate>Mon, 06 Apr 2026 19:16:32 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <copyright>All rights reserved</copyright>
        <item>
            <title><![CDATA[Web3 Native Database, but not fully decentralized (Tableland)]]></title>
            <link>https://paragraph.com/@inevitable/web3-native-database,-but-not-fully-decentralized-tableland</link>
            <guid>yw1eR6ZRMuGDvK9XSQwL</guid>
            <pubDate>Sun, 08 Sep 2024 19:46:57 GMT</pubDate>
            <description><![CDATA[Tableland is a SQL database supporting on-chain data processes.PrefaceToday’s smart contracts are complicated. They support more complex ...]]></description>
            <content:encoded><![CDATA[<p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://tableland.xyz/">Tableland</a> is a SQL database supporting on-chain data processes.</p><div class="relative header-and-anchor"><h1 id="h-preface"><strong>Preface</strong></h1></div><p>Today’s smart contracts are complicated. They support more complex applications. <strong>Smart contracts need to store, query, and process more complicated and larger data.</strong> Smart contracts are highly coupled with data. Thus these complicated data process scenarios make smart contracts complex and hard to maintain. Developers need to add data-related logic to their contracts, like data queries, data updates, and data filtering. For different data structures, developers need to write different functions.</p><p><strong>Besides extra complexity, another problem is flexibility.</strong> When developers need to query data with complex filters, developers need to add custom query functions to the contracts. Developers cannot directly read and filter the data.</p><p>In the Web2 world, the database takes all data-related work. Applications store clean and structured data in the database. Developers can read desired data with SQL. Data are decoupled with applications.</p><p>Tableland is born to solve these problems. Tableland call itself, Web3 native database.</p><div class="relative header-and-anchor"><h1 id="h-mechanism"><strong>Mechanism</strong></h1></div><p>Because on-chain data storage is expansive, Tableland uses the off-chain database and on-chain smart contracts for privilege checks and data modification.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/7c9ceeb2b23182f9af6a7ca927476520.png" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAARCAIAAAAzPjmrAAAACXBIWXMAAAsTAAALEwEAmpwYAAAC80lEQVR4nI1UXUgUURg9L5U9GoRl9FBBQRFRKlFtP4QGGT0HPSoWPQS+aK66auYfrmWaRERqPWgmiuCD9SL04g9CkoT0Y2vCqsW6zursemdn7p25MXPddXdmjQ6X4Zu5597zfd89d6DHwC0kvsbjOBwE499LOOewfdJ1nVKmRRmlzDllA6XMOWwcCFmRfiwFM69U3004pzg3UsabFSSyra2N6fcL9TeHv4z6OTfiYkmw6FqUPcwbuo2XhRldBemdBemdRfu7b+HFq/sfxVYOAesRkaJn0AiU5KBJWoloVCWEKIoiSdLi4mIwGCSEyLIc2QgvLwSu4PEuePahei+q96AqEzVA2b1DbzjnjG4jIAeVE6gH3KfQsLIsq1QhhKiqKkmS3+8PBAKUUlXVmE6lgOyCdwcq0+DZiUqgPA0eoPTuwddJAnoCGGWcG1ODP93n+z8Nz2/XIl03DG4wTX9eNFp69l3V1cHKy+aoyR0qyekbqJvi3Iiftl2AWRPWWW2RBCilejIEjXNDVcMkKscO2cw9DnuLxLRVoFi8BZup4veAEDI7O+vz+bjOrfySTLgloOsGCWsb6yoJayLYWFeVsCa66QTnXCVU8FeWpeAfSbFWaVFmF6Aa5ZxP9M9dREs+2q7hqRjX0eaCd2rIJw4toRazUJXQwowuF7z5aMvFkzy05qM9C431N4btLhICI+2fgYo8tLrgzUbjaTRcQPNueIZapxV97dvXH/Pz8z6fz+/3L/xaWFpeXFuNZJmGdl9Cyzk0Z6MxB01ASdGBbruLLAFj5NkMUHIS9cdRl4maY6g7glqgdKRjhnNlJRAMhULBoHiuyuE1OUSsHYuB8sOoPYpHwAOg+M7BbtMg2qYjzAqEO5e+Sz3uMef4PReKtSURBqPGh46Zt+6xvqqJ3orx3orx/urJnrKxyYE5wU/xqxArE8xjxC99ykNOpDnjFC5imtkuqlGm6bF423+faDTTdC3KBH8zjtkhdQWJ2SWnmULgf+K/Z5x7icfKO3QAAAAASUVORK5CYII=" nextheight="1037" nextwidth="2000" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><ol><li><p>Dapp smart contracts send data update requests to Tableland smart contracts</p></li><li><p>Tableland smart contracts check the caller’s privilege and emit events with query</p></li><li><p>Tableland off-chain validator network monitor on-chain event and execute SQL</p></li><li><p>Sync Tableland off-chain validator network</p></li></ol><p style="text-align: center"><span data-name="warning" class="emoji" data-type="emoji">⚠</span>&nbsp; Although developers can use smart contracts to execute SQL, dapp smart contracts cannot get any return values. This hurts composability.</p><p><strong>Tableland solves this problem with a dapp frontend, dapp smart contracts, and Tableland three-parties interaction.</strong> The dapp frontend reads data and dapp smart contracts update data.</p><p>Dapp frontend reads data from Tableland gateway. Tableland gateway can directly interact with Tableland off-chain validator network. The function of the Tableland gateway is similar to the function of blockchain RPC. With the gateway, developers don’t need to build their own network nodes.</p><p>If the dapp frontend sends a data update request to the gateway, the gateway will relay the request to the Tableland smart contacts.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/574fffced522999375a00a88c0f12ea8.png" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAYCAIAAAAUMWhjAAAACXBIWXMAAAsTAAALEwEAmpwYAAAEZ0lEQVR4nIVV/09bVRQ/P21IdImZPxAWpoxIMOKyuE1nRrJFf/Q3/4EtLirEMAdEJ4yWwkS+ySQmS3QOxpcgfsnMsmAWZBCmyYhZNnBd+1abdozSIlBey+P1vr53333X3Hfb19dS8OTk9rz3zpeecz7nXKApMggxdJxirGFLJoRQG1mPTF8jlppllaMJOWZWvGzZ2BogH9mtbAEIYS4Wvev1h8Zqy0cYV7DzbOXoh/uu3RkRKGV/0DLj8phz9v3n+89WjjJlk2tKhx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HYHOoBBOoE1RjCmKstXPTiiyPmMNU0pO77kK0FAJ7XvB+Rw4zQlvLAZXfBWZlx1DwbYZbBcgLVE2gxNPb3TdH780N943d7NvbvzS3M3eBzPDAr95cjCyHUyzaMebfVvKa5XqAcbYXjj7I8YYaxlWk5olp0ckj5XVg/8AAsyesvnvtzoAAAAASUVORK5CYII=" nextheight="1482" nextwidth="2000" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><p></p><div class="relative header-and-anchor"><h1 id="h-limitation"><strong>Limitation</strong></h1></div><p>As a "Web3 native database", Tableland still has lots of limitations:</p><ul><li><p>Dapp smart contracts cannot read data and receive execution results. Developers cannot put all data-related logic into smart contracts</p></li><li><p>One table is limited to 100k lines row, 24 columns</p></li><li><p>One data cell is limited to 1kb</p></li><li><p>Only support a subset of SQL, <code>CREATE TABLE</code>, <code>INSERT</code>, <code>UPDATE</code>, <code>DELETE</code>, <code>SELECT</code>, <code>GRANT</code>, <code>REVOKE</code></p></li><li><p>Only support some types, <code>INT</code>, <code>REAL</code>, <code>TEXT</code>, <code>BLOB</code>, <code>ANY</code></p></li></ul><div class="relative header-and-anchor"><h1 id="h-application"><strong>Application</strong></h1></div><p>Tableland names itself "Web3 native database". This is a little exaggerated because of the bad composability between contracts and data. Now Tableland can be applied to games and NFT.</p><p>Tableland has great support for NFT. After creating the table and inserting NFT metadata, developers get a gateway link. Developers can use this link as URI.</p><p>Later developers can use Tableland CLI to update NFT metadata.</p><div class="relative header-and-anchor"><h1 id="h-roadmap"><strong>Roadmap</strong></h1></div><p>Tableland will release its NFT in July. NFT holders can access more development functions. In the future, Tableland will make improvements in the following areas:</p><ul><li><p>Support more SQL</p></li><li><p>Decentralize the validator network</p></li><li><p>Release tokens and use tokens to secure the validator network</p></li><li><p>Database admin panel</p></li></ul><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/53ed2de0fdc446656647b0f211493b6c.png" blurdataurl="data:image/png;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XLVYgymRuR9C2cCSSWZcgCLGZsNncDkqrrlGCQ71KXa9Sj/h8YIbCkUg0GuX5kN9/azQQuD7oicfjmVySJEUnxymKGnC5aDujR1DwcQRtO6vRMMxVURSj0aiYhiAIc/PzWw1/ynvgF+gswEXaKBBoF02TNgrDcYq6AobUYiW2cjDVq9HJ2+A+sMZoMre2XiBt1DMik5/eEOtciUQiNhNmmKssy3Y7HMB7rtd5fXDweRcZJIrzP86GSRvVhmFVCgXQWK9Sg4PFStB2xmIlELStkyS5XicM67heJ1hEjh6WtFGieHedS5ZliqIqTldiOF5dozxVUUHaqHsLC4IgRFOYFgRhNhYLRyKzsZggCCM+nyAIPB+aDIeFNCRJWudKJpPxeFwUxfTz7p07P4CwNxUoP1M19NvysizLYLFIkvTHw4cbPc64I/31cibX7j257+YfTP2FXtim0TZCT2Nv3r4n5105uyEIKjh8ZHvWDgiCKk5XZlQKbc/a8fIrr0LbXoIgSKmsjUan3e5rN27cGPH5PB7P2NiY1zs85PV6vcPjExPXBz3pSZjm+dAmfU8QHcdLSmFdS2lZudFk/l//tMX7i4n7v3Y7HENer9PZB5rA0cMOuFwWK2GxEizLYjjO9To3/sQyuRKJxMTt7wwGA2mjOkkScNF2ZsDl6iRJguhwOvtAKyX/sa65ubnYTPjMmXqNtkmPoHoEbWpu1iNoa+sFGNZptI16BNVoG40m05DXGwwGR3w+v98fDAY34VpZWZ6ZGrdYrbSdcTr7GOaqxUo4etgumh5wucBIc71OR09qKT8ZMkcPK0m/Z3ItLNyLzYQp6orRZO6iabDyNdqmtFlWgujQI6jFSmA4vrGhMrlEUZzkg+ACuAOknT/fvLT0AOxi8OoT11dXH23q/Z9U89h6cHYWGgAAAABJRU5ErkJggg==" nextheight="2556" nextwidth="2000" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><div class="relative header-and-anchor"><h1 id="h-future"><strong>Future</strong></h1></div><p>Tableland is not the end of the Web3 native database. A truly Web3 native database should satisfy the following requirements:</p><ul><li><p>Separate contracts and data</p></li><li><p>Composability between contracts and data</p></li><li><p>Censorship resistance</p></li><li><p>Support Web3 data types, like address and transaction</p></li><li><p>Users have data ownership</p></li></ul><p>If your project satisfies the above points, feel free to DM me on <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/glazecl">Twitter</a>.</p>]]></content:encoded>
            <author>inevitable@newsletter.paragraph.com (Inevitable)</author>
            <category>product</category>
        </item>
        <item>
            <title><![CDATA[Arbitrum Architecture: Inbox]]></title>
            <link>https://paragraph.com/@inevitable/arbitrum-architecture-inbox</link>
            <guid>zf673YzWLm7uxXm1YYn6</guid>
            <pubDate>Sun, 08 Sep 2024 19:43:51 GMT</pubDate>
            <description><![CDATA[在 Arbitrum 推出 Nitro 之际，我们回顾一下 Arbitrum 的架构。Arbitrum 作为乐观证明的先行者，其架构部分有很多值得学习的地方。Arbitrum 是一个 EVM 兼容的乐观证明 L2。虽然 EVM 兼容，但是在一些变量上会有所区别。例如我们在 ...]]></description>
            <content:encoded><![CDATA[<p>在 Arbitrum 推出 Nitro 之际，我们回顾一下 Arbitrum 的架构。Arbitrum 作为乐观证明的先行者，其架构部分有很多值得学习的地方。</p><p>Arbitrum 是一个 EVM 兼容的乐观证明 L2。虽然 EVM 兼容，但是在一些变量上会有所区别。例如我们在 L2 获取 <code>block.number</code> 时，我们得到的是 Arbitrum 上的区块高度，而不是以太坊上的区块高度。</p><p>下图是 Arbitrum 的框架图。基本分为 L2 和一系列部署在 L1 上的智能合约。</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/9bb8bfe51c8aca3603c375cb0950283b.png" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAXCAIAAADlZ9q2AAAACXBIWXMAAAsTAAALEwEAmpwYAAACBElEQVR4nLVVLZOsMBCMWL1ufwAKFbcOhYviF+DOIXFxyHXIyEhcZGRk5MhIZGRsJFdvu4pjv2o/3l0LCiZDutMzA2z5Y7D1LueMa0op5zxvEDfA4xqcb/CQACCioij2+z2yQwhEZK0lIu+9c46IcPXeIx5CWJOttSGEOwRN03DOl2XBLkopOiOeYYxhjJVliYhSijF2OBy89znnEIL3nohSSqC5Q5BSijGCAElCCMYYNIIAjymlaZoYY7vdzjkXYxzHEavOuXDGE4ucc9ZarfU4jtZa55z3XkrZdd262p6Be2utlHIYBph2VYZ/BJC8tXKe56ZpyrKExq+vr+PxyDnv+x452CuldDqdIJ8xxjnf9sUPQQgBXoMGBF3XVVWFGmqthRB1XSulsDpNk9Yaarz3RVHUdb0KRc6FRfB0WZYYIxFhCyklxMYY9RkxRu99CGEYhnEcsQoOtBYR3WnTnDPnvCxLHGIYBnTUdkRW3EzST8KyLM65J3MAvUQ0TVPf91JK9xqMMTjfcwIMszFGCNG27fIaYP0bBHDTX2LVu0bW0V0L/hIBXEop3b5whXmeIeVDAtp0BYajqiql1Db4XyegS4K2bYUQWutfI/B/ZNGq3W3q+ajIGNq3T4CRyQ8mawvkvNemOWdrrX8H+Cw+J8A3PX4KY8wTApT3Y1z9be4Q/Dq+AVSnWGVVVdFiAAAAAElFTkSuQmCC" nextheight="1455" nextwidth="2000" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Arbitrum 部署在 L1 上的桥组件负责 L1 和 L2 的沟通。这个组件包含 4 个智能合约：Inbox，Outbox，Rollup 和 Dispute。在<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/OffchainLabs/arbitrum/tree/afa60b9ab2f8645fb292251d74f2adb42ecde047">这里</a>可以找到这些合约的代码。</p><p>在这篇文章中我们将关注 L1 和 L2 的通讯，也就是 <code>Inbox</code> 和 <code>Outbox</code> 两个合约。</p><p>L1 和 L2 的通信由桥组件基于消息传递实现。消息分为两种：L1 消息，L2 消息。L1 上的智能合约可以直接读取 L1 消息。L2 消息给 L2 来读取。我们使用包含 L2 消息编码的 L1 消息来将信息从 L1 传递到 L2。目前一共有六种信息：</p><ul><li><p><code>ETH_TRANSFER</code> : 以太坊转账</p></li><li><p><code>L2_MSG</code> : L2 上的消息</p></li><li><p><code>L1MessageType_L2FundedByL1</code> : 包含 L2 信息编码的 L1 信息，由 L1 支付手续费</p></li><li><p><code>L1MessageType_submitRetryableTx</code>: L1 上的 Retryable Ticket</p></li><li><p><code>L2MessageType_unsignedEOATx</code>: L2 上未签名的用户交易</p></li><li><p><code>L2MessageType_unsignedContractTx</code> : L2 上未签名的合约交易L2</p></li></ul><div class="relative header-and-anchor"><h2 id="h-inbox">Inbox</h2></div><p>有两种方法可以将信息从 L1 发送到 L2。第一种是直接调用 Send 相关的函数。用这种方式发送信息延迟较低，并且使用起来比较简单。</p><p>第二种方式是创建 Retryable Ticket。接着用户在 L2 兑换这张 Retryable Ticket。这种方式方式的设计初衷是为了弥补第一种方式会因为 Gas 不够而失败。下图展示了三种具体发送信息的方法。</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/35a892cd58cfd7b326e41072e2cdd10b.png" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAWCAIAAAAuOwkTAAAACXBIWXMAAAsTAAALEwEAmpwYAAABkUlEQVR4nM2Vr5LEIAzGeQxUVd9gH2RdJbKysnIlEhkbicRiY5FYbC0Wy800c71u/+ztzfVm7qc6lPRLCF8q6jNlRf2O9eazQPE6vv6aJ4FSChH5mRDC68ics7XWPWOtJaJjgZSS1nrZiojGmKWI/SE455RSRGQ/4cC+7w8ESimPxyOltH5HRMaYswqICBH36+u0vgRijPytEIIQomka3jQMAwCEEJRSUsq2baWUWmsAaNuWQ8ZxFEJIKXPOpRSt9UEFi0BKSczw+jiO1tqU0v1+53UhxDAMzrnb7QYAtVatNa/nnE8r4COKMa7FnXOXHVGtdZomrfXSMZgpL5vcdZ33HhEBABE58LjJy1doxnu/qWZPztk5570nor7vrbXee+fc6TXdO+t9oyEiN2DPKye/j7X2bwUAYJqm6wVKKZy4lJKvLFvhGoEYY9d1eqZpGn4eZ64R8N5z1puUT33wU2hltPVv4EoBmCtYRohSiifHxQJ2di8i8jDeTJd/3IMQAifOU4sxxlx2i0op4YiN4z4A/j9Zx6VOu5IAAAAASUVORK5CYII=" nextheight="1403" nextwidth="2000" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><p></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/6cb62c1171b3e8493a3eef35442f54fc.png" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAUCAIAAABj86gYAAAACXBIWXMAAAsTAAALEwEAmpwYAAABiUlEQVR4nLWVLY/DMAyGS/uvBvczSkcDQ0NNjU2DTU2NQ8NDjYN7ulmtervrx6TdS6pWTp/Y8esM8zz33ud/0+CPWqs8pap7PDMjorwREZVSzgHMjIiqKiI5ZwAws9+hqhpCqLXqIhEBgBOAmXlQa833rqo5Zy+dy0N919vI3jsRnQBqrQ4Yx3EYvl/NbJomZr7f78MiIhqGIaX0vWb5Ms8zIp4Aeu8ppW1NmHmbgZnVWj0z/+ma06UM/IQBgJlVFRH31pRSQgh+TswsIn545wCXqjJza20vtPfubQYAIQQ/qoP4V8CpWmullNaab//iqjcAiOgZiIg30hWHHgGIKMaYngKA2+0GAPgUAKRDPR4P75QjwIvjcs7Xh0qt1ZvlCICIWwARbQHHsEuAlwzoJ+ADGbwApmlyx7kn3M8xxj+zuQrovbs/RGQcRyJyf/k4iTHu+eANQIwREdehlFIKIZzW6g2ALDM8PrXO1A8AfC6tF9F6B3iVDuT3hI+pI4CZlUUrYP1yKm+QLyeDiNKo1KYFAAAAAElFTkSuQmCC" nextheight="1273" nextwidth="2000" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/d08f5914ba52b5167e39329625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9MH7guCgOM4TdOSJI0WaQxBuVx+eXlhGEYURdCCkiTVarWbm5uHhwdJkoQBSJIEVu8EXVQsFjEMo2kaEAifHARBtNvtQe8WARjsbwjAYjAMA/T7REVutVrgC/iNLrKW3VcE+m8sO0sXnZ+fwzCcTCYjkQgMw/F4PJ1O67p+fX19fHyMIEgkEjk5OUkkEqenp7IsZzKZw8NDGIZjsdjR0VE8Ho9GoyiK/r4ucjgcli5CUTQcDs/OztrtdpvNtri4+L0uCgaDKysrXq83GAz6fD632727uysIwv7+vsvl8nq9gUDA7/evrq5CEERRVCqVWltb29nZ8fl8fr8/GAxCEHR1dfUrXaSqqqIosiwDIWTpIsve7XYtXaTrutyHoijdbhecv5EtoyUaK3V+gVGCfwC5MTmKCHKqEAAAAABJRU5ErkJggg==" nextheight="1911" nextwidth="2000" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>L1 发送到 L2 的消息会被放在 Inbox，例如将以太坊存入 L2。任何人都可以将消息放入 Inbox 中。但是当信息在 L2 被执行时，用户无法得知具体执行结果。</p><p>下图展示了信息如何流动的。 用户将消息发送给桥组件。在未来24小时，只有 Sequencer 可以执行这些消息。24 小时后，任何人都可以执行这些消息，并放到 Main Seqeuncer Inbox。这个机制有效防止 Sequencer 作恶和审查。</p><p>如果消息是直接由 Sequencer 提交的，Sequencer 可以立即将消息提交至 Sequencer Inbox。</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/2ddc1f7c3c9ca7508ac0c044c54c8aec.png" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAgCAIAAABsC5RsAAAACXBIWXMAAAsTAAALEwEAmpwYAAADtElEQVR4nK1WbWgbZRz/DfYpdv3kJhRXEDpZcYNJi0MniqKIH6TgxoZ+UfwgDPZNKFjXNbn0JW1TN8fAzjnGqCj4jkyxG+xDZ2nX0urQYEjTS5vkLte7JTZpc5fLkycnd9deL5dcWU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6xJSpNHpldBdTlkz0m0t9jh4SrfJuI/4SzGXrOq41fmT2oiW3fpJ7Ur5H5RDwr2iEniuAAAAAElFTkSuQmCC" nextheight="2402" nextwidth="2000" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>可以在这找到 <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/OffchainLabs/arbitrum/blob/afa60b9ab2f8645fb292251d74f2adb42ecde047/packages/arb-bridge-eth/contracts/bridge/Inbox.sol">Arbitrum Inbox</a> 的源代码。代理合约部署在了 <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://etherscan.io/address/0x4dbd4fc535ac27206064b68ffcf827b0a60bab3f">0x4dbd4fc535ac27206064b68ffcf827b0a60bab3f</a>。Inbox 合约部署在了<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://etherscan.io/address/0xc23e3f20340f8ef09c8861a724c29db43ba3eed4#code">0xc23e3f20340f8ef09c8861a724c29db43ba3eed4</a>。</p><p>Inbox 拥有以下 <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://developer.offchainlabs.com/docs/sol_contract_docs/md_docs/arb-bridge-eth/bridge/inbox">Interfaces</a>：</p><ul><li><p><code>sendL2MessageFromOrigin()</code></p></li><li><p><code>sendL2Message()</code></p></li><li><p><code>sendL1FundedUnsignedTransaction()</code></p></li><li><p><code>sendUnsignedTransaction()</code></p></li><li><p><code>sendContractTransaction()</code></p></li><li><p><code>depositEth()</code></p></li><li><p><code>createRetryableTicket()</code></p></li></ul><p>目前使用最多的函数是 <code>depositETH()</code> 。<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/Arbitrum-Inbox-01941677d9e5488c8e4a9a5f74bd9236?pvs=21">这个交易</a>就调用了 <code>depositETH()</code> 。这笔交易发送了信息 <code>L1MessageType_submitRetryableTx</code>，并且释放了两个事件：</p><ul><li><p><code>MessageDelivered</code></p></li><li><p><code>InboxMessageDelivered</code></p></li></ul><p>让我们放大这张图，仔细看看用户的信息是如何被提交到 Bridge 合约的。</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/a8c958bc0f78e685a1c1b8ec7e480d15.png" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAgCAIAAACZ9R/cAAAACXBIWXMAAAsTAAALEwEAmpwYAAAE9UlEQVR4nJWTb2wTdRjHn1e+4YUmxugbX8ALo4YXvpF3GuMLXhhUomBiUIwxZIJmwgYmKolDoxAEVCQTMsCZOWDsH45tgLXb2NZ1W3dtr+tdr+312rV3197f9ujurtdbW3N33dhEmCSf/HJ5nt998zzf5/nB7a7oF2/0Ej7OWKwoXKkoGA4KV1oXOauVtSpwVDGO8HGEj/n4iDcX8eaiM1zMx69LHOFxTzZLKsDECjRRuH4OBWh6Br55Ab4D+Py959poohBHeDIg3I8EKhIzHEcVgSWVBUwevUxse+z07ufP73q27c0nzny981oaz5OI8L8kcslizMcnQxJLKsO9E+2/dhMBho0pDy7hPyRSIYkMCp3n/zz3c4fHHcrg+YeQyJIKGRDC48xvRzwnGm9+v/famUOjf/2OUai4+gdLERHWEBDqEkyskCWVy8dmAXYDNNrs2QJHmVgh5rtbSDIk3Qsxw+WSdhXJkDTZR376cmfT1q6mrV2Nr1xqPTDCxpTMvFyXQAT/SCbgzgRXgXuydYkVO8WMyi8s0vECt7CYjuRdfXPDV7yohyEDAjadexGOARzcAF89Al8+CocBml+Fk2vsJANCxJv7u98/7SKJGQ735jy38IlhPOLjooi1ctse/2UjtGyBow4boWX7k2fWSFABER1nOloHr7S5Zt1JMiCkQpI1pmUvUmGZQkUKFRP2mQxJaTy/dqhhuZDVhYyaTd6RGC2XrG/9Q2znWFd0x9OtH2y+8P7m8+9sOvvtroGH2E6aKLAxpfuED+AjgAM2DS/BDyypxP3WvftBhSTCx/ELi1YjVEgKujM9p+b6T/t7T/t7Ts2NdERi0znck30AEW8OdWdoogACFZ291iGk6GqlVjXrlLWqKpvrooiGWaoBF+obP/uWQt2s6qypkEvFpENVS/+LippawY5kltREzZShqvMVlTZkQufDOo/pPFYS8ZKI6/y8xgZX0Pl5J+tgB1GVnjXzSTCVpJbz63xwkZ5cxYTGIrYWZki4IUdUGimmRlcu6Px8ScQ1FlkqZsDMJ0yF4pALf+yEjneX2QEpd0tFZTTWr+WCZj5BuY9ffNtKte+Eng+hQN4o5+MaO2dLKMlyPi6gl/o+hu590LnHOrv3ADN5YqmYUVl/kfaX5TgzdbZnH1xpgK4GGGyGO5SrnI+tSKR0HjXkSFVnayZnamzNyFZ11pCJkuj4glnt2BccKirtxJcbsSVKIqbz89OuzvHB9kJ61oncoRHCN0xjY7aXd911squ8WJYoidjtwfbe9pM0Nua4mI1O9nf8RPiGnew93CNRzsdIdASdGmSiU4ZMGBKm86iQ8Op82K4x7Hw42BOxGjGV9IpEuJi+rTJjBcpVTLuL6THLIAnXBeu3cj5iSGFDCpcEVOdRnQ+aStpUUncnUhIxlZ66vg9aX4O27dD2ujW2PDGgi5FC2sdGxoUkIjFRLoWpUqqsMGVVTgwdTI8cKefjppKyqrAlZjzHNvV9BgPN0L8fRls2KKSrxOOLtF9a8Ke9F+evNsxf/SQ+0JQYOkTdOOw5/lR8YK+ppEzF2s603QheUTPOOJ2xGXLEWfOqzlK3mof3w61DcLPZYqgRGM+PNVNR6Zl6IxqL6DyqsYiW89exIyuURCwbGce9AxTqInxDi7T1IHQ+aL0RJQW1il7VhZohrY+Zr7Mcqep8raL/AwEhsyrjlSnAAAAAAElFTkSuQmCC" nextheight="2846" nextwidth="2000" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>消息相关的数据从 <code>Inbox.sol</code> 流到 <code>Bridge.sol</code>。数据最后被存在了 Delayed Inbox Accumulator 的末尾。</p><p>在这个生命周期，所有事件中，有两个事件包含了消息状态的转变。一个标志消息被放到 Inbox，另一个标志信息被加入队列。</p>]]></content:encoded>
            <author>inevitable@newsletter.paragraph.com (Inevitable)</author>
            <category>tech</category>
        </item>
        <item>
            <title><![CDATA[How small team setup cloud zk proof infra]]></title>
            <link>https://paragraph.com/@inevitable/how-small-team-setup-cloud-zk-proof-infra</link>
            <guid>dHEQ179kclyTGp4916N5</guid>
            <pubDate>Sat, 13 Jan 2024 18:33:02 GMT</pubDate>
            <description><![CDATA[TL;DRZK technology is primarily applied for enhancing scalability, privacy, and credibility in various projects like Starkware, zkSync, S...]]></description>
            <content:encoded><![CDATA[<div class="relative header-and-anchor"><h1 id="h-tldr">TL;DR</h1></div><ul><li><p>ZK technology is primarily applied for enhancing scalability, privacy, and credibility in various projects like Starkware, zkSync, Scroll, Mina, Risc0, Giza, EZKL.</p></li><li><p>ZK technology requires significant computational power, leading to 10^4 to 10^6 computation overhead, posing challenges for infrastructure teams.</p></li><li><p>The main approaches to generating ZK proofs are Proof Markets and Proof Networks. Proof Markets operate as open markets for trading ZK proofs, while Proof Networks have internal servers, offering a cloud service-like experience for generating proofs.</p></li><li><p>The Proof Market approach allows for flexibility and cost-effectiveness, as it facilitates an open market for ZK proof trading without the need for high-end server management.</p></li><li><p>The Proof Network approach provides a streamlined and developer-friendly experience, offering a hassle-free solution with less focus on market mechanisms, ideal for quick and reliable proof generation. Theoretically, it provides fast proof generation since order matching in proof market also takes time.</p></li><li><p>Challenges include testing and debugging difficulties, new security concerns, potential vendor lock-in, higher costs for certain usage patterns and loss of token utility.</p></li><li><p>Leading players are likely to be those with the most internal ZK proof demands, as they can leverage existing infrastructure and specialized teams, maximizing hardware utilization.</p></li><li><p>Emerging applications include ZK Coprocessors, ZK Attestation, ZKML (Machine Learning), and ZK bridges, all contributing to an increased demand for ZK proof generation.</p></li><li><p>Decentralized proof networks in the ZK space are driven by the blockchain industry's preference for security, censorship resistance, and privacy, although ZK's inherent security means decentralization is not a prerequisite for these benefits. Performance is the major concern for ZK.</p></li></ul><div class="relative header-and-anchor"><h1 id="h-introduction">Introduction</h1></div><div class="relative header-and-anchor"><h2 id="h-growing-zk-demand">Growing ZK Demand</h2></div><p>After years of research in ZK area, and vast improvement in performance, ZK is finally applied in real-world applications. Talented engineers apply ZK for</p><ul><li><p>Scalability</p></li><li><p>Privacy</p></li><li><p>Credible Compute</p></li></ul><p>There are lots of interesting projects relying on ZK, like Starkware, zkSync, Scroll, Mina, Risc0, =nil;Foundation, EZKL, Giza, Polygon, Manta. These projects steadily and continuously generate ZK proof every day. The most popular ZK use case today is ZKRU to solve the Ethereum scalability problems. In the last month, ZK verification costs millions of dollars on Ethereum/Ethereum L2s.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/822c69f9086c471e6d054be44f33aac0.png" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAICAIAAAAX52r4AAAACXBIWXMAAAsTAAALEwEAmpwYAAAB5klEQVR4nK2QPWhTURiGPxwEB1EQ3AIF0S4FR6UEJ1FQsFRJB61Ih6KCiKigW6kunYxDHbSiRLRDwVlBupRKoSFIaWpS0uS09/8k91xv7s85596T2yO3aYui0EFf3ul7+H7eD6or5Vq1mggRc/4vpiGNOYviiDEWc0aDgAYBD0NwCGl7nvwPSjTsDOZGHz4al1IKIdKSEMAZ9X0/EWJvy7Rhe9jviLNQSnn9SjYDcAKgtmGto/pisWRiHSLOGWNiL/FOR62UddRwnB9t1/0VMcaklK+mpvuPwEgWegEGc7dNU3uWf14sLmwn2Am1+efoZDPp5l2am19dWtY1DSG0S6MUJStG89A+uJSBoT44fxi+TI/ablAovF2cmwcaBN0Ff/+rTFU1NLg5fOvDm7szhYqh7da3zoqllGPjN/oBLh+HgR44ux8m7p/xeVSpLKsbCsScE4eoen1dW2uolVqjvIa+f/76bnZhZhXVP85+wqryYGoSeg7AsaNwEODCuZMjw1fv3Xk/+fJ1/sXE4ydPx/J9Gbh2GnKnUl/shYEs2LbTXQ+e43wrlZqW2cKY2C1smcRuNS3T1HVi29gyHUKwZdGQUs+nnk9sGyFk6kYLY1M3sGEZitJ2vS2Y2vWoEHFHCM3QkaH8BIYehLO7S/+fAAAAAElFTkSuQmCC" nextheight="492" nextwidth="2000" class="image-node embed"></figure><p>This chart built by Near team illustrates the zkSN(T)ARK gas spending on Ethereum and L2s. It includes popular ZK projects like zkSync, Polygon, Aztec, Tornado Cash, Loopring, Worldcoin, Tailgun, Sismo, StarkNet, ImmutableX and dydx.</p><p>zkSnark takes 80% of the total costs on verification, compared to zkStark. Among all these projects, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://optimistic.etherscan.io/address/0x57f928158c3ee7cdad1e4d8642503c4d0201f611/advanced#internaltx">Worldcoin</a> has the highest verification cost, followed by <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://etherscan.io/address/0xa0425d71cb1d6fb80e65a5361a04096e0672de03">zkSync</a>. Each worldcoin verification cost around $2. Each zkSync verification cost around $30.</p><div class="relative header-and-anchor"><h2 id="h-burden-on-proof-infra">Burden on Proof Infra</h2></div><p>ZK can solve the Scalability problems but with some tradeoffs. It requires tons of computation power. ZK brings lots of computation overhead which Rollup teams need to take care of. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/_weidai/status/1732436027388871100?t=zkfxLv2f2ndUXlEWz61L6w&amp;s=19">@_weidai</a> estimated 10^4 to 10^6 computation overhead with today’s ZK technology. Theoretically, we can achieve 10x computation overhead with dedicated circuits. With the abstraction of VMs, there would be 100x computation overhead.</p><p>The following graph illustrates the computation power growth based on Koomey's law. The efficiency of chips improves 10x every 10 years after the year 2000. If we treat computation power in the Year 2000 as the base, we reach 784 in the Year 2025. This also indicates that the ZK computation is still not comparable to Year 2000.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/83e9dc467557e566a1af2d4519c7b388.png" alt="" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsA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Bieix6D0GwoOBPy+2fGfX533yiucwjasLMFNdkb9gC8C/DBW2/mbtl48KNNR97PPrQ+M3/LxoPbNn/99tovGWIsxmaJb2zKR44PDj7s7/cMDY0QZrvD5tbrLHKpQSHDFVKDGjMpFUYr4XY5PbjB3mt06nUEYe4z3Lclll4vGf9ftzdFiROTkyOj3pFRL0VRnuFhiqK83jEfGbWJyUmb3f7AaAwEAhOTEz6SDAQCXu8YRUXjIMlxiqJ8JBkMBulZOkZskb3wBkDTIZoOLfdOcb2+SyhQ2W2DZtOA2dRHmPqddo9eY1HKcDVmVGNGncaMa60xt+Baqxl3ELiTwJ22Xpet1+WwDDgsA31Wt9s5RBjsTpMbaq7eLjj5+4njp4vOlJ469Wtx8YVjR38uLb58IPfsgdzfDucVf3+Qc+wrzolvLp4+WnHueFVJQS3nl/o/z3EvFTVVlbY2/sXjVgjaqkWC+m5+bZftfj/I7hmvlLdeb+Bfq+Ndq+P9wxXVVLY0Vguq/vi39hK/4eodbs3dptqu1gbxrRsSQZNc2Ip1dajFfK1cqFd3PegRmx7ILITGYdU4zUobOTzxH3TNdqOP3+xZAAAAAElFTkSuQmCC" nextheight="855" nextwidth="716" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://visualize.graphy.app/view/04f82b27-3654-47eb-83e8-3981f6e258be">https://visualize.graphy.app/view/04f82b27-3654-47eb-83e8-3981f6e258be</a></p><p>Think about that for a while. We are trying to bring 10-100x transactions to ZKRU. With more transactions, we also will have 10^4 - 10^6 computation overhead. These numbers give the ZKRU infra team lots of pressure. Leading ZKRU teams are using really high-end machines with at least 200GB RAM. They have talented operations to take these infra complexities.</p><p>What does this mean to a small team that would launch a ZKRU or ZK layer3 with ZK stack? What if an indie developer would like to build a ZK Dapps? How do they buy these high-end servers and correctly operate them?</p><p>Nowadays, starting a ZKRU is not hard. You can use the ZK stack and deploy a new ZKRU following the instructions in the documentation. The hardest part is to get the high-end infra work. Taking care of a cluster of servers is much harder than taking care of our daily laptop.</p><p>Plus hardware acceleration is not out-of-box, Depending on the ZK proof system they are using, teams will need different configurations for their server setup.</p><p>Ensuring high availability is also a hard topic. What if tons of people start to mint ordinals in your ZKRU and you got 1000x throughput? Even an experienced team like Arbitrum has been down for several hours because of surging ordinal transactions.</p><p>Generating tons of ZK proof needs high-end servers. Setting up and taking care of clusters of high-end servers would be a heavy burden for small and medium teams. To better help teams adopt ZK smoothly and quickly, emerging projects try to help these teams take care of all computation infra complexity.</p><div class="relative header-and-anchor"><h1 id="h-proof-market">Proof Market</h1></div><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/5e58396f29acfae2ebadef3cd7f7296b.png" alt="" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAgCAIAAABhFeQrAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFdElEQVR4nI1WT0wUVxx+TXtRYtJqmyy0lSbYynJgbcKmKYsNm7SuJGxidXtg4bBCZNcDEywZG3EOZYLtvhS7M5gwUWQXWnbowYGkbjw4KSFZm5LhIqupTDg4YjDjEuHhgScefM3Og3GErfhlD7svv9/3fn+/twBjjCzgTei6nrWgqqphGBhjTZvOZrP0u21gmqbtmMvlnAYYY4AQIhbo72fP1jOZ6xzXzbJdDQ0NsixjjFm2Kxptn529TS1/HxkJHj06Pz9ve/3IcV8frpuanNw8WQO6rnu9NX5//d07d+ipJA1EIhG/v55hOjDGpmkyTEckEvH5fLFYDGM8MT7e0tIcCp3w+WplWSaEcFz38WPHGo4G2lpbV1aWN+LVLWCMKa9pQdd1wzAIIU9XVw3DWHy0uPho0TAMhNCyBdM0DcMwTZMm5PfXuwuoDAYb5+buAcMwRFFMJockSYIQ6rququrI8HA6PSrLcjI5pOv6nxMTE+Pjg1cum6ZJCFHVmxf7fvm1r+/q4CAhBCE0MjwsCInz588JQoLeDaw0GZbtkqQBCOMI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663h+R5KzXHdtG8v40UI0b8B1skLQkhLS/M7b7/l99fTqTBN89MDB/bu3RsMNlKzVCoFADh48LOy0lJKt+nu4N2+7Kz1zsdiMdkCxhjCOIRxjPHz9XVCyNXBQQDAFzU157rP2RP9et4XhJBwuMnlcl3o7YUQiqK4pUU03g/e3+fxVAtCQhTFN+EtYPt4buFNJodKSnb7/fWKcs1+kIrwFgXte9FeI4Ton9T/0wCM8X+JwcAfQgUTmQAAAABJRU5ErkJggg==" nextheight="786" nextwidth="716" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Proof markets and proof networks are two main approaches. The proof market is like an open marketplace. To generate a proof, users need to find the counterparty who is willing to sell the proofs at a certain price. The proof network is like traditional could service. Developers submit their circuits and input. The centralized load balance assigns internal servers in the proof network to generate proofs for users.</p><p>The proof market is one of the popular approaches for ZK proof infra. The proof market is an open market where buyers and sellers trade ZK Proof. The ZK proof market team does not need to take care of ZK proof hardware or own high-end servers. The ZK proof market teams focus on ZK proof trade and validation mechanisms to onboard third-party hardware providers.</p><p>The proof market is a more open approach. It welcomes third-party hardware providers. Buyers buy ZK proof at USD price as long as there is a seller for this kind of proof. When validating the proof, everyone in the market does not need to reach a consensus. Only the market operator takes the responsibility to perform the validation. In the proof market, zkDapp developers submit a ZK proof orders including price, generation time, timeout, and public input. Then third-party hardware providers will take the order and generate the proof.</p><p>The economic structure for the proof market is straightforward. Proof producers need some stake. If they produce wrong proof or do not provide proof before DDL, their stake will be slashed. With more stake, proof producers would be able to generate several proofs at the same time.</p><p>The main players in the proof market industry are =nil and marlin.</p><div class="relative header-and-anchor"><h2 id="h-nil-foundation">=nil Foundation</h2></div><p>The proof market has sellers and buyers. Buyers are dApp developers. They pay sellers to generate proof. There are lots of factors affecting the proof price. The main factors would be circuit sizes, proof system, generation time, and input size.</p><p>Here is the workflow for =nil proof market :</p><ol><li><p>A proof requester sends a request with a desired price <em>c_r</em> to the market.</p></li><li><p>Proof Market locks <em>c_r</em> tokens from the buyer's account.</p></li><li><p>Proof producers send proposals to the market with a price <em>c_p &lt;= c_r</em>.</p></li><li><p>Proof Market matches the request with the proposal of the proof producer.</p></li><li><p>The proof producer generates a proof and sends it to the market.</p></li><li><p>Proof Market verifies proof and pays <em>c_r - commission</em> tokens to the producer.</p></li><li><p>The proof requester takes their proof and uses it.</p></li></ol><p>The market design provides a trading-like experience. The proof generation price changes in real-time.</p><p>Here is a product screenshot for =nil proof market.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/cc9d0c3bc908e68bf112a1307911e55f.png" alt="" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAgCAIAAACO148VAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGf0lEQVR4nJ1W32/bxh0XHAs2EASTYonkHU93PN6ZND2atEKaIkNFlaxZdlfXyeLZLYYWzpQ6gRoVmINg2UtTJ36Yh70NK7C3YVvbtUHRFs6wYigGbA/DgA4FhsyKi6Jv/R+2vQwdjucqGtKsQD8CDNI8fvj98fl873L/+ue/r169sru7+5P9/b29O/1+f3f3lf39/Tu3b199BL1er9vtvvPaOx//dbB7a/fmzR/u7OzcuHHj1ssvv3Lr1t7enW63+8ng09zh/cHp06dd153NwBhzHMfzPMdxaAbGGKWUEMIyEELa9cWNtY1ZZ5ZPc844Y8yyLPlWoVB49+5B7ujwyJ1zV1dX0zSFEGKMIYSc80DgTBgEAADOued5EEKTMc45QqhULtm2zRhLkqTdXkySGgAAY5wfzx+8/TsRKSG40WikaZokied5lmVRSjnnjuME1cD3/TAMm82m7/vV6rzv+7ZtQwgppQihncs/ePPnr+/f/DGl1HGcsbGxg7v3JClpt9v1DI1GIwgCjLHrulEUpWlar9eTJInjOEmSZrOZpuI6CALP8zDGy4udVtqKzkQIIcZYPp8/JlU19Wz9bFSLoiReiBYYM2VlbdvGX4AQAv8XCCFKqe/7nj/HOLdtO4oiCOB7bx0I0lbavP7izovd3uXv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RKHMeyrHFc45xLCXue12w2wzCUe4+0iaZpcjs5MSTVlaJpGM40rSCdmwQhHWOiZpDCluaRb6qqWi6X5SNpGfn/LyOlx+lbpqipXA1FxwWkg+X1iB4Ei7x4DKkhGlVBusWIJB1d/Th8FSkV6ctGIV2Qlstl4WdVA9rXIq0op01quJaJkW5zA+lCUmEQsmluWIYYV1kFR0sx7MxjSUvFUxgjSjEAGqXHjUoFkoqwDIrEFsvkZDjufhAMTx5fQnp0eDRVLnm+52QHH6ERIWwCAWAYAw1oqhZFkW3bw45LX/y/SI8GRzMz9urq6vLSUhLHckQK5+i6FCyEUB5bhgNl+He4D0pQSicmJu7dvZf76G8f5XK5clkpFAoTExMnMxSLRXkhcerUqdHbIYrF4uijQrGQy+Xe/PXd3Of/+XxjY6PX621vb/d6PXlk7Pf7j54jH0W/3x++Im/X19c/+/Sz/wLQ2Sd6Hd77lAAAAABJRU5ErkJggg==" nextheight="824" nextwidth="713" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Currently, Proof Market supports a limited number of statements, with Mina statement proof being the most active one. Specifically, Proof Market accepts circuits based on their zkLLVM compiler and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/NilFoundation/evm-placeholder-verification">Placeholder</a> proof system.</p><div class="relative header-and-anchor"><h2 id="h-gevulot">Gevulot</h2></div><p>Gevulot tries to bring decentralization into the Proof marketplace. Gevulot operates as a permissionless and programmable layer 1 blockchain designed for the proof marketplace. The layer1 blockchain handles the proof request distribution, proof validation, and incentive distribution. The network of provers leverages lightweight unikernels for high performance. Gevulot uses a Verifiable Random Function (VRF) to distribute proof workloads among a small group of provers, ensuring liveness.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/9877def807e98be1365c9e5740d65370.png" alt="" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAQCAIAAAD4YuoOAAAACXBIWXM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bGisNpWH6zTeVsbI3W6tlrRbZUCFqlT0rUiChKF1SUNuBKv1TuSsemp5JxJZ1VUEDjQQPsTyCD5hfTuxZO7FG7I/5F3NfSVyxCWbCwaETGYw2BOfgAU/irWcCWOIUwprDjQYEqOwg0A1igOERBUpVJQNGGiCRNciY8EXy+lSF0GKWSQHEOYchmMwmqA0DrWjgPebx7ODlwfDy3pWHvIMb6c3Jnu3TDxbl9LfG5oe25o26T1tOiDudituaFth3SkmGxrpudyLnbLrO9KBBcKAoicxAGPA77okcGUHAqrBcaKA03INraYuD0RWpEEz1HPzObkg1zsrQbRF3KMb2Tub2Y+skthb9PA6ond9fQ9b9MABjM61p6L3To3smOXwgUBg9YJV+IqBaWsohA5uU9JgCXrBcaqY20AoQmg11LNNF5fdRDHYI6qkagaSVlFKSvVVI3Eko0E0MOVOA744hM7puQKKxIYa7PR57dFQ+6RQGs80BqPh7M8bS6EChVQWF0CgwvBwBAmeezM3a1H57M35zJrS7NXz2dvri28fXnpnQapkGkCiBjCFPqL+Z7qu1SYINWbS4RnE+HZbtdwoPVYLrXZ4YiW7JTLkCIwIid89gGz8XBmaGlmdPWIL5k6Op8ZWpo8tnCkfaTXn/I7BgYDJ211XTJIXi5Dqg5iEAT1e6ehTP96py3R7Rzrdo4FHckSAfvIVN+lcOv4/s0+fkvC1xL3WxJBR9LXEi/VpWPEPbHf1m1PWU2hvfXn/wGNoG5sbrMqfAAAAABJRU5ErkJggg==" nextheight="1009" nextwidth="2000" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Users can deploy programs seamlessly, and fees are predictable, with users setting a maximum fee based on the number of cycles needed for program execution.</p><p>Provers are rewarded both by the Gevulot network and user fees, encouraging efficient and competitive proof generation. The fastest prover will get the most network rewards. User fees will be shared equally with all nodes finishing the proofs.</p><p>Gevulot supports a variety of programming languages, including C, C++, Go, Java, Node.js, Python, Rust, Ruby, PHP, and more, for program deployment because Gevulot’s underlying VM Nanos supports x86_64 Linux ELF binaries.</p><p>Gevulot is a general-purpose computation platform supporting different languages and proof systems. Gevulots relies on <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://nanovms.com/">Nanos unikernel</a> to make sure provers can easily run on different machines. All provers need to be compiled into a single unikernel image.</p><div class="relative header-and-anchor"><h1 id="h-proof-network">Proof Network</h1></div><p>The proof network is a more developer experience-friendly approach. It operates like a Web2 cloud service provider. Developers send the payload through REST API and the proof network will return the proof to you. Developers don't need to care about fluctuating prices and the counterparty who will generate the proof.</p><div class="relative header-and-anchor"><h2 id="h-risc0">Risc0</h2></div><p>Risc Zero leveraging their zkVM launches Bonsai. With the power of zkVM, users can let Bonsai generate all kinds of statements. For example, based on Bonsai and Risc0 VM, Zeth generates the proof for Ethereum blocks.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/c1a7f089860f34ffd5b67afe2d940739.png" alt="" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAPCAIAAAAK4lpAAAAACXBIWXMAAAsTAAALEwEAmpwYAAAEsUlEQVR4nIWT/2sadxjHb/TLAmP93h8Hg/26H8YoYyFqcrGaeEmMifFsulov2jpPvfil8byL9c47NRrj+SWnUWOSc41L0NaGZWnWNktZm7iWwCgrpWODUcpgrH9B2S/LuLplWwcbvPjwPG8+z/vh4fN5gJWnu/j8E2t88xXQ+J1XFDt3xzYlYo39z01rfPPj2G289Lj+0y4QqDxTIqx0yCODx/5O24BLphtrh3FQ72vVuMy+bPXWzpXV+yubD1PCWtuAB9Tj7bCIROv+d7lE6+k2R/2VHwF7uiHVXVKZIkojq0RCL8/waSOt95Zh35LaMaPBiv2OvN67YKarJmr5Al0z+j/VYMUm/Y68gar3WhMKY1BhZBUIqzAyCkQ0kcG4jfsKsCW327SeTgMDnqU6hqlOQ1AGE90XUyrTZKukvU97BuofgvqHunsHQEWPvFsNKnvl3eqmCPUP9fYPnJKqYO+iREd0IUGViVGZm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3bEn72GZB3+Vi1aNcP1547fd3wFq7ZLvJxEn1gAAAABJRU5ErkJggg==" nextheight="944" nextwidth="2000" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><div class="relative header-and-anchor"><h2 id="h-succinct">Succinct</h2></div><p>Recently Succinct also launched their new products. Instead of giving circuits to REST API, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://succinct.xyz/">Succinct</a> offers a more cloud-function approach.</p><p>Here is the user workflow:</p><ol><li><p>Connect to GitHub account and deploy circuits</p></li><li><p>Call the API with circuit input via REST or smart contracts</p></li><li><p>Query the result through REST API or smart contracts</p></li></ol><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/f06947a477092a922a9da91f9dad9f91.png" alt="" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAgCAIAAABhFeQrAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFMklEQVR4nK2U22/bVBjAPU0Vq9rcE1+S2LHjXHrTWnjgDxoVggceNvEwJjFATBqrOmmClqzL1HYMNB54XhnduJSWrmUD1iR4NGna5dKkq+vEia/xYiPbXW/rSjtx9NPRlyP7l8/f+c4BTl0aOnVx6K1Lw/2DI/0DI/2DV9++PLJF/+DV9z4fPT00fnpo/Mzw+JnhG2eGb7x7Jb7zmXcux/sHYrphINY/EDv1Wax/YAQoFMu5fGGdpkVJYmscL4jK9mgavDiaO2k2VbbGVSpVhqnWeS5fWJ9+UAKazWc0za2vVyRZVlVVUZryPkPZzfNVReE4nud5RdHXWbbWbDY1TatwMtBQlFKJfvSIyqSXKepxdjnHC6IoSaIoiZL8nwiiJBhPCqJEV1marVUEkeFqgPE/9GopmVsrLZcrHMebSUmHkG4hSXJDUbhGg+GFNbZerlYBSWrwPFuvlTbYKl0VeI6n154yGwxX179ue8gvRTa8PM9Xq6xZB1mWAVmSK5yw/JTJ0UyOpldoejFfzKyurdD0ytN1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gAWGQiEy1IeH+5z+kBUK6F1hVPYAHAgJtHjOfbz33tn0Xh+9CQAWm4044Qy224l2B3rC6jveBgOtbqDFcxBtEAAce//s+X3yVVUtmaK++PJ6LD4+HB+PXRszGL8aH4vFx4avjR5ALD52ZWhkenZOVXfd65qm/QszDH3QibbBwgAAAABJRU5ErkJggg==" nextheight="2207" nextwidth="2000" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Compared to BONSAI, Succinct has the following advantages in developer experience</p><ul><li><p>Easier to manage the circuit codebase</p></li><li><p>No need to send circuits every time</p></li><li><p>One-click to deploy smart contracts for on-chain proof generation and validation</p></li><li><p>Explore trending ZK proof</p></li><li><p>Dashboard to view proof generation status</p></li><li><p>Support rustx, gnark, circom, plonky2</p></li></ul><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/242b03b4361876edb4dd71636f8929be.png" alt="" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAeCAIAAADCaIt+AAAACXBIWXMAAAsTAAALEwEAmpwYAAAGPElEQVR4nKVVzW8bxx2dHpIigRsnSFw7ltuoqmMEaNEUieG0RZBAhwBpTwUK9JSDj7312GNyyX/QAIWDxk7c1oFi2ZWsKKId2YhkgYIIfuyGNAXxSyYp7ufs7O7s7OxwtZxgdmSaohigQH94WCyG3H2/33tvZgE4fgY8/5LAM1MCx8+AY6cP4akXxa9T58CLL4vr1Dlw5hVx/8zU+D+PnQbP/US8QV6f/yn48TT45NoXf7/82dX5m5m1jcx6dmVtYz1X2MgrKUrZopotqpslNadWthSJ8pZSzqmVbF45hOK367nC/JeZ5XvrS6vffHXvm4+uzP/tg38AxiKM/ZCQOI455xGN3CAgYeinIFFEQkpCSvv9kAnQvkDI+lEcDyH/D13P83wXIcswB8m+4/iNnTYoKY1CsRyGYZIMOOeaDT9byVxeXj6ElcxSLi+xuLm1uLm1sHWA/25u3lbVi+9/eP7PF9/9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MJHEonFoUQff37j6uIy5/zW8ldraxumhdqtrmloEyaoPHhQrValDbKQL74kcgLHceSiJ+rxBJ/euDW3dJtz3tP0jexWdbtumZ7vBeMEGAelolIqKZqmDRcd3x2R6IAAuQeLkuCfczevLa1IiXZq9Vq9keaVTJhAVcuWZZN0o/IJBKMePCa4NHfzX6lEGJM43pfa+kf3AUkJqtWqPDlkIUHgj00wJtHlRzFdvXsvl88bhgkx0s3eUYlwqaQoimoYxqjJXtrsIZNTiYYmDyVq7bazmzlFKT80bOgcSZGPcaFQyucLnU5Xdjc4nCJ7NEXocYouzc1fXVwSp5lh1moN3RBnEaV0wgSKWtY0HWP8PR44Q4n8dPc9kmhBShQxJj9HUoBJBIrabLaGL+Kcu4Evd/JoTHFaQ4KP527+O5Vo7HSaQCAl0g97gCZJNOrBpbn5T2/c+p8IFEVV1LJhGKMTBER8LeI4Rgj9XxM40CkUlJL6baPZwjjAOAhw0DNN3TADTDzP7wl7AkKIbohFjAPP8/fj+Mr84rWF5f14/Fv9HVCAZiStr5ECAAAAAElFTkSuQmCC" nextheight="1845" nextwidth="2000" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><div class="relative header-and-anchor"><h1 id="h-proof-network-or-proof-market">Proof Network or Proof Market?</h1></div><p>The proof market offers greater pricing flexibility for both buyers and sellers of proofs. It invites all hardware providers to participate, which helps to reduce costs for buyers. However, it's worth noting that the savings may vary between individuals and enterprises. Typically, centralized services such as a proof network may offer free services to individuals while charging enterprises a premium, but offering access to VIP customer support. For example, enterprises can reserve some computation power in advance on proof network if enterprises plan to launch new events or features. A decentralized marketplace might present more balanced and competitive pricing across the board.</p><p>In today’s market, products based on proof networks seem to provide a much smoother experience to developers. It takes care of all proof generation work and supports major proof systems without introducing any new complex concepts. It offers a consistent user experience. Theoretically, it provides fast proof generation since order matching in the proof market also takes time. If you are familiar with cloud computation, the proof network is more like a stateless cloud function.</p><p>We have =nil foundation and Gevulot working on the proof market. Succinct and Risc0 on the proof network. Hardware companies like Ulvetanna and Cystic also make great contributions to increased ZK proof performance on GPU and developed next-generation ZK dedicated chips.</p><p>The proof market is relatively easy to bootstrap. For ZK infra projects, proof market design can onboard more hardware providers. With its decentralization design, they can easily scale the network to meet the computation requirements in the future.</p><p>In the future, we envision a blend of a proof network and proof market design. The goal is to offer developers a seamless experience, while also integrating a proof market as the backend to facilitate the onboarding of additional computation resources. This is the direction Succinct plans to pursue in the near future. We also see similar transitions in other markets, like Infura. Infura has their own servers but it also plans to onboard permissioned parties infra provider.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/d63fc91f1d459f4a6532bb9f2bdde00d.png" alt="" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAXCAIAAADlZ9q2AAAACXBIWXMAAAsTAAALEwEAmpwYAAAEMklEQVR4nJVVT2jbZhT/ust6i+kgHXELTYcdZilgwZoN4kOdQuxAlIF1sJYyyyFrB9bJ3sG+LIdGl8aXxh1EJsQ6FF1sjVJhSnQJIhd1F7FC3MGqXvwd2n6HtrrYOu0bkVLZlZzBfifz/P78fu+97wk4jmP/H2AXjuP4P3y7bxz/CzjnA4fw14sXc/E4RSVjsRgAYC4eT6UWMcY8X4pGZ1KpRQDAZxcAAODixc/X1mjHccA4r4nUxvH27RvLskzTtCxLVVVN0/549gwh1O/3TdPs9XqmaRqGIbvQdf1UwXA44PkSRSXnSTKdvslxhXQ6nUh8XS6XwwoghDS9upLN0vRqr9fzCTUajVQqdXt9fZ4kN4pF3/+sRYZhSJK032yKovj08Gmn0240GrIse/HjgBAqiiLLjyRJQgj5Dr1ezxV0WK/XVfWJbz8tYNv21tavPF+q1WqVSoVl8yyblyQpnB27CsouCoUfGSYnCNueXRAEjitUq9VyucxxhY1i8fmfz0cK9ptNhskxDPP92tpKNptKLdZqNWcSEEI7O/fv3Pnp9voPmczyve17Ho9Op82yeZ4vMQyzks2ybP7ly79HBTqddrfb9SSPTzsMCKEkSYqi6Lo+7mOaptdYbzDBFpXL5VtLaVVVx5cnnB1j/OqV9Q2RuADAamZ5MBh4bhhjUdybJ0kAwH6z6REfFXAcx7IswzB0F5qmQQgn0nfcFlkuAj4nJyemaYZ1nxXguAIAgKKSX16+HIlMKYoSfpYeIIQEkfji0qVut+unwxj/fPfuXDwejjprkb9wGOPhcPAfx+P1m9fv3r/zIn0ghCCE54WcKqCoJAAgEpn66vp1gkgAALwZYvxPWEEkMkXTq77Fo8VxhWh0JuA8UmDbttdWhJA3n+HwdIBhINchwPfDh/cIIb/pExSsZDOxWIwgEhSV/O7bhatXorOz10RxLzA07CqIRmdEUfS5f3xo2wCAdrsdGMMnW/RxkY46nbauH/f7/YC34xI0DMPn67OGEMqybFlWgNNZi6rVKk2vsmyeIBLMKXIr2SzD5G4tLfF8iSASJEnMk+TW1pZt25nMcjp9czwFxviXSoVhcueu6fHxsSiKiqKI4t5+s/nbw4eCILRaB7Isa9phw4UgCLp+5DjO7u4D79COJ9I0rdU6mFzAtm1VfSKKohcpinuCINTrdc8iy7IgCDs793d3H7RaBxDCWq1mGEYg1+PfH28Ui4H7MVJQr9e9U5XJLLNsnuMKNE1zXGFzc9O7IgsLN7xPBUKIYXLeUfHvAcZYUZTp6Wn/2HxSYDgc6PpRt9tVVdUbtaZpun6kqiqEMLDXCCFVVWVZDrTC246AcaSA50uzs9ei0RmCSGQyy7FYLJVaJElClh/5b9sPoKjk1SvRwEOrVqsLCzcmPzRf5njA+F4G4EeG7WGj4zj/AlNLua3uWGrRAAAAAElFTkSuQmCC" nextheight="376" nextwidth="515" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><div class="relative header-and-anchor"><h1 id="h-problems-of-these-zk-infra">Problems of these ZK Infra</h1></div><p>Using cloud ZK Infra brings lots of advantages for ZK dApps developers:</p><ul><li><p>No server management is necessary</p></li><li><p>Developers are only charged for the computation resources they use, reducing cost</p></li><li><p>Serverless architectures are inherently scalable</p></li><li><p>Quick deployments and updates are possible</p></li><li><p>Code can run closer to the end user, decreasing latency</p></li></ul><p>Besides these advantages, there are some common drawbacks when moving to a cloud zk infra:</p><ul><li><p>Testing and debugging become more challenging</p></li><li><p>Cloud computing introduces new security concerns</p></li><li><p>Cloud architectures are not built for consistent usage, storage-heavy processes</p></li><li><p>Performance may be affected</p></li><li><p>Vendor lock-in is a risk</p></li><li><p>Expensive. We see lots of medium-sized companies moving away from the cloud to save costs.</p></li></ul><p>Aside from these common issues, there are also specific problems in ZK and Web3 areas.</p><p>Privacy apps would find it hard to use these cloud ZK Infra since apps would also need to send private input to the cloud ZK Infra. This would destroy the data confidentiality. For privacy applications, generating proof locally or using FHE would be a better solution.</p><p>Also, it would be hard for cloud ZK infra to support all kinds of proving systems. Currently, both the proving market from =nil; foundation and Bonsei proof network only support their own ZK stacks. Succinct supports more proving systems. It is also hard for these cloud ZK infra to support interactive ZK-proof schemes.</p><p>Using cloud ZK infra weakens the token utility of ZK Dapps. Infra is one of the main utilities of dApps. Users pay fees with native tokens to computation providers in the dApps. Users can also stake tokens to participate in consensus and get some incentivizations. The dApps have the absolute power to design these rules. Relying on cloud zk infra, zk dApps need to pay real money, not tokens to their computation providers.</p><div class="relative header-and-anchor"><h1 id="h-who-really-needs-cloud-zk-infra">Who really needs cloud ZK infra?</h1></div><p>We believe developers who want to decrease their go-to-market time and build lightweight, flexible applications that can be expanded or updated quickly may benefit greatly from these cloud ZK infra.</p><p>Cloud ZK infra will reduce costs for applications that see inconsistent usage, with peak periods alternating with times of little to no traffic. For such applications, purchasing a server or a block of servers that are constantly running and always available, even when unused, maybe a waste of resources. A cloud setup will respond instantly when needed and will not incur costs when at rest.</p><div class="relative header-and-anchor"><h1 id="h-who-will-be-the-leading-players">Who will be the leading players?</h1></div><p>From learning Web2 cloud industry, we found that companies that have the greatest computation needs can have the leading cloud infra business. They can take advantage of scalability, cost, teams, and innovative products.</p><p>This would also work on shared ZK infra. We believe projects that have the most proof generation demands have the potential to own one of the most successful ZK cloud infra businesses.</p><p>For these projects generating lots of ZK proof internally, they have already got lots of infra, optimizers and specialized teams ready. By sharing provers across applications, they also maximize hardware utilization; provers can be repurposed whenever one application does not immediately need proof to be generated.</p><p>These big projects all somehow have their own proof system. Third-party proof infrastructure often struggles to optimize the various proof systems that different large projects employ. Providing fast and easy-to-use cloud provers, big projects can effectively expand their proving systems ecosystem.</p><p>For ZKRU, cloud ZK infra can boost the usage of its forks. Spin up a new layer2 or layer3 based on these ZKRU is not that hard, taking care of the ZK infra would be costly. Providing out-of-box and flexible cloud provers can help onboard more developers. Currently, most developers use OPRU SDKs to build new layer2 or layer3 since the corresponding infra is easy to manage.</p><p>If not building their own ZK infra, these giant ZK projects need to pay a lot to third-party computation providers. They also will be limited on development speed since they cannot always customize their infra to further increase performance and reduce proof cost.</p><div class="relative header-and-anchor"><h1 id="h-who-has-the-most-zk-proof-demands">Who has the most ZK proof demands?</h1></div><p>Besides ZKRU and Layer1, we have seen more emerging ZK applications recently. These all have vast demands on proof generations.</p><p>ZK Coprocessors enables smart contract developers to get past blockchain state trustlessly. ZK coprocessors generate ZK proof for these past blockchain states. It may be the more secure and trustless alternative for the graph.</p><p>ZK Attestation helps users bring off-chain data or identity to the blockchain. After verifying the data off-chain, attesters will generate a ZK proof for it and put it on the blockchain.</p><p>ZKML makes on-chain inference possible. Computation providers do the ML off-chain, generate a ZK proof for it, and put the proof on the blockchain.</p><p>ZK bridge is a more secure version of cross-chain bridges. It generates storage proof or even consensus proof for the source chain and puts it on the destination chain. It may substitute current cross-chain bridges.</p><div class="relative header-and-anchor"><h1 id="h-what-about-the-decentralized-proof-network">What about the decentralized proof network?</h1></div><p>Decentralization is the most popular narrative in the blockchain industry. Decentralization brings lots of benefits:</p><ul><li><p>Security</p></li><li><p>Censorship-resistant</p></li><li><p>Privacy</p></li></ul><p>ZK is different from other general computations. ZK has security in nature. Anyone can easily and quickly verify the proof to make sure provers is honest. Decentralization is not the prerequisite for security in ZK space.</p><p>ZK proofs focus on intricate, low-level details and are structured as circuits. While the content within these circuits is notably difficult to censor, censorship can still be effectively implemented by targeting the requestors.</p><p>Privacy would be a problem for proof networks because users send private input to the proof network. The ideal solution would be to generate proof locally to prevent any data leakage. This would pose challenges to local performance. Other solutions would be a new ZK-MPC protocol or generating proofs in TEE. A decentralized proof network can’t bring more privacy.</p><p>Besides the narrative, censorship resistance would be the major reason to build a decentralized proof network. ZK technology is still in its infancy, and so far, we haven't observed any censorship in this field. However, the main challenge hindering ZK development is performance. Introducing a decentralized proof network might lead to increased computational demands for generating proofs.</p><div class="relative header-and-anchor"><h1 id="h-conclusion">Conclusion</h1></div><p>ZK applications are growing rapidly and are applied everywhere. We anticipate seeing ZK integrated into different tech stacks. We have already seen ZK layer1, ZK layer2, ZKML, ZKVM, ZK-Email. Developers are also building ZK Oracle, ZK data feed, and ZK database. We are on the road of ZK everything. The computation overhead brought by ZK forces developers to deploy their circuits on high-end servers. Thus we expected growing demand for cloud ZK proof infra to take developers outside these infra operation complexities. Our insights in this area are:</p><ul><li><p>Proof markets and proof networks are two main approaches to get ZK dApp developers outside of infra complexities.</p></li><li><p>We anticipated a hybrid approach that combines both proof network and proof market mechanisms</p></li><li><p>Not all ZK Dapp developers are suitable for cloud ZK infra. Medium-sized projects with consistent traffic can self-host servers to cut costs.</p></li><li><p>The leaders of cloud ZK infra would be projects that have tons of ZK-proof generation demands, like leading ZKRU. They got economic incentives to do this business.</p></li><li><p>Decentralization is the main narrative in the crypto space because decentralization brings characteristics like privacy, censorship resistance, and security. ZK Proof already has some of these characteristics. The current selling point for a decentralized proof marketplace is censorship resistance.</p></li><li><p>The popularity of cloud ZK proof infra is closely tied to the quantity of ZK dApps currently in the market. While some projects initially highlight their cloud ZK proof infra as a key feature, many eventually shift their focus to different new narratives.</p></li></ul><p></p>]]></content:encoded>
            <author>inevitable@newsletter.paragraph.com (Inevitable)</author>
            <enclosure url="https://storage.googleapis.com/papyrus_images/822c69f9086c471e6d054be44f33aac0.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[Blockchain ❤️ WASM: Chapter Arbitrum]]></title>
            <link>https://paragraph.com/@inevitable/blockchain-❤️-wasm-chapter-arbitrum</link>
            <guid>RWX8hTiijy52mB9NwPng</guid>
            <pubDate>Mon, 06 Nov 2023 04:00:27 GMT</pubDate>
            <description><![CDATA[Arbitrum recently announced Stylus VM upgrade. It claims to have the following feature:Support more languagesLower fee, lower memory cons...]]></description>
            <content:encoded><![CDATA[<p>Arbitrum recently announced Stylus VM upgrade. It claims to have the following feature:</p><ul><li><p>Support more languages</p></li><li><p>Lower fee, lower memory consumption</p></li><li><p>Custom pre-compilers</p></li><li><p>Interoperability with EVM</p></li></ul><p>All these features are brought by the integration of WASM. WASM has lots of advantages and is widely used in the cloud native scenario. We will expand the story of WASM in the later sections.</p><div class="relative header-and-anchor"><h1 id="h-pioneers">Pioneers</h1></div><p>Arbitrum is not the first one to bring WASM on-chain. Before Arbitrum, Polkadot enabled users to write WASM smart contracts. It provides two languages to write WASM smart contracts, one assembly scripts like embedding DSL and another is Rust-like language ink!.</p><p>Cosmos also employs CosmWasm as its smart contract runtime. Developer's can use Rust to write smart contracts.</p><p>Before diving deep into why blockchain <span data-name="heart" class="emoji" data-type="emoji">❤</span> WASM, let's see how Cosmos and Polkadot explains their choice to WASM.</p><p>Cosmos claims WASM can bring the following benefits:</p><ul><li><p>Compatible with Rust libraries</p></li><li><p>Diverse dev community</p></li><li><p>Security, prevent reentrancy attacks</p></li><li><p>Easy test</p></li><li><p>High performance</p></li></ul><p>Polkadot’s WASM runtime has the following features:</p><ul><li><p>High performance</p></li><li><p>Interoperability with EVM</p></li><li><p>Platform agnostic</p></li><li><p>Small size</p></li><li><p>Support Rust and Assembly Script(Typescript style)</p></li></ul><p>There are some advantages shared across Polkadot, Cosmos and Arbitrum brought by WASM, but there is something unique for Arbitrum. We will cover more details about Arbitrum and Cosmos in the last part.</p><div class="relative header-and-anchor"><h1 id="h-wasm">WASM</h1></div><div class="relative header-and-anchor"><h2 id="h-what-is-wasm">What is WASM</h2></div><p>To understand why blockchain x WASM, we need to understand what is WASM and the initiative behind WASM.</p><p>WebAssembly (WASM) is a binary format that allows code to run at near-native speed in web browsers. It's a compilation target for languages like C and Rust, designed to be fast, efficient, and secure. WASM bridges the gap between web and system-level programming, enhancing web performance and capabilities.</p><p>WASM get name Web because it can run in JS, commonly browser environment. In JS, developers can access full WASM API. WASM also got full Web API supports. In WASM, developers can control the Web behavior.</p><div class="relative header-and-anchor"><h2 id="h-wasm-history">WASM History</h2></div><p>WASM is designed with the principle of writing once and running anywhere.</p><p>Back in 2016, lots of programs released new functions through Domain Specific Language(DSL). Making a DSL needs to make tradeoff between maintenance, efficiency and safety. However people are looking for a new way to deliver new functions to countless servers which needs maintenance, efficiency and safety.</p><p>They examine different solutions from top to bottom. Here are people’s concerns about these solutions:</p><ul><li><p>System Virtual Machines</p><ul><li><p>Too much overhead for spinning up/down frequently</p></li><li><p>Lack visibility into code for ensuring safety</p></li><li><p>Too abstracted/high level for the performance needs</p></li></ul></li><li><p>Containers</p><ul><li><p>Lack of visibility into code for ensuring safety</p></li><li><p>Too high level/abstracted for performance needs</p></li><li><p>much overhead for spinning up/down frequently</p></li></ul></li><li><p>Language-level virtual machine</p><ul><li><p>Frequent VM modifications required for safety</p></li><li><p>Overhead of embedding VMs like V8</p></li><li><p>Slow to adapt new languages to the VM's security model</p></li><li><p>Still high level</p></li></ul></li><li><p>Instruction set architectures (ISAs)</p><ul><li><p>Very difficult to modify ISA code for sandboxing efficiently</p></li><li><p>Prior project at Google moved away from it to WASM</p></li><li><p>Lacked mature implementations to use</p></li></ul></li></ul><p>This is the background for WASM to be true. People start to develop WASM compiler till 2018. WASM developers expand the idea of write once and run anywhere. They would like to run on different architectures, run in servers and embedded hardware, even other languages. They don’t want to make another Java, which sacrifices safety.</p><p>In 2019, the component model was created to wrap WASM modules and raise their interfaces to a higher level, enabling cross-language interoperability between components. For example, this allowed them to write an HTTP library once and share it across languages. The component model solved long-standing problems in a novel way.</p><p>Till know, WASM has lots of cool features. WASM now is heavily used in the cloud native scenario. Blockchain somehow is also one use case under cloud native. WASM has following advantages:</p><ul><li><p>High performance</p></li><li><p>Low binary size</p></li><li><p>Portability: WASM provides portability at the instruction set level, allowing the same bytecode to run across any WASM runtime.</p></li><li><p>Support C/C++, Rust, AssemblyScript, C#, Dart, F#, Go, Kotlin, Swift. D, ascal, Zig, Grain</p></li><li><p>Run in JS engine</p></li><li><p>Sandbox: WASM provides a much stronger sandbox by default, with limitations on memory, CPU, etc. to prevent access outside of its sandbox.</p></li><li><p>WASM has very fast startup, often milliseconds or less.</p></li></ul><p>The WASM community is still working hard to bring more integration and cross-language performance.</p><div class="relative header-and-anchor"><h1 id="h-stylus">Stylus</h1></div><p>After thinking about the initiative of WASM and WASM applications on other blockchains, let’s go back and think about Arbitrum Stylus’s limitation.</p><div class="relative header-and-anchor"><h2 id="h-how-stylus-works">How Stylus works</h2></div><ol><li><p>The developer compiles their smart contract to WASM using an off-the-shelf WASM compiler like Clang or Rustc.</p></li><li><p>The WASM bytecode is uploaded to the Arbitrum chain in compressed form.</p></li><li><p>The contract owner calls the <code>compileProgram</code> method of the <code>ArbWasm</code> precompile, which instruments the WASM for security, meters it for gas costs, and compiles it to native code optimized for the validator's hardware.</p></li><li><p>When the contract is called, it runs on a WASM runtime like Wasmer much faster than the EVM, saving gas costs.</p></li></ol><p>The third steps looks extra, but it is necessary to build for performance and security reason. Compile WASM code to native machine code can speed up the execution. Adding extra compilation step can also avoid compile bomb.</p><p>A "compile bomb" is a type of malicious code that is designed to consume excessive resources during the compilation process, causing the compiler to crash or hang. It is a form of denial-of-service attack that can be used to disrupt software development processes.</p><div class="relative header-and-anchor"><h1 id="h-popular-concern-about-stylus">Popular concern about Stylus</h1></div><div class="relative header-and-anchor"><h2 id="h-language-support">Language Support</h2></div><p>Stylus can help Arbitrum to expand their dev community to C++ and Rust while it still cannot reach the most popular dev community nowadays. It opens up the door for smart contracts executed in the browser environment, but JS and Python is still not supported.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/6647ca9e3abe8603d9e9817ea19555eb.png" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAWCAIAAAAuOwkTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAEbElEQVR4nJ2U+09bZRjHHzYIsUu2bCGL/mCMiyQaYzLjH2BcxoxOaWChmriJ2SVB47KovyAxJkvUqZmZXIS0RWGjaaFAmaxcStfaQllBkN7ovfRQej+lp5RLoT2X15yeiYQZoXzz/fE9z+c83+d9H3BPDBEhT9xnjTjNCcyewBwJzJXAPFGXPe51xb3uvD1xrzfm9sbcvph74bE9/qiT82LeSxF7gLVjKWwLhCxYEku6tE5IYA5Z7/2mlrYuqVwobpd29za1tAnF7RJpj37CgA4qhmIQQkksCXGfdYukUikik9lYW1tNr6wkWRHplXQmk0GIoSmKM0MxezoajYVC4Ug4ElwK4suJqCMKCczOILSa2kgTrCmK5vgMxeTLFqZAIOBnhfn9mMvnCdtDkIp4nJalcl7tcyUXX3iqdnbcxdanqAOHw4n9P4bGvTgLsM36j0BVMVSWAt806cFc0es1jTcETfUfCQl8FRUiimKzp/K9Z7Y2cW8cUhGvbdZ/Amp4UH0ULjjNAe3gHMBZgDdLocprDyGEslmSG0RBsCyZi3liuwEO06Jh1MqD6mNQc6r00oIzsn0lDhBRzIfvBsz/hemHzMVQyYPqZw9/sGAPs4dzJHeRClKWzEVZQHRhV0SGUSsHeAbex6Mp7eBcxYufn3+1vrbiu8z6VgHzYOiwNw5EaME2h/0n4Gl4j1hekzSPFcHZInjrVOmlNLGx/8SyZDb0JGBnRFwH3W2aw/DuEag6XXYtTWzQiCZz5J75kDkyS2bxILFXB/hqd5umCM6XAv+V41fW05l9dsCOmKHwMAFEGCsUkN3MkTmSzJH/DyBJMho6EIDZ0QFFsYk9ycufYcLBJBDhwD4BLx27TFG07oGp/rKo4ar4l5sD29X+8eMlxu0xFpCPKGCb9R+FCyXA50E1N+RD8E4J8MtAgEdT0hY1wNvFUFnOq0WIuflpJ8DrRXDm5eNXEGI6fx79sOLb2nO37jTIuSVGI7Y0N+kQCwgu2uawkyA4CYIyEHAd8KC6DATPl1xMLa91i7QlwD8BNafLriGE7jTIuXf+RvlnCKE6/k+H4EwRnKt87UuEEBcU1wHNAWJuH0nRhofz3Z1qncqS3cytpzOGMZtCqjNNesgcSeCr+hGLsnfSZPRmMpmgHx8ftWqVZo81iBCKLSXH1fM6lSXgi1MUzVCMz7eIYaH8wyeDYQLC8+7tHHdu6XynaFvrG2tOn9PudFjnrYtBbOc4EaJp5t8Ps3lx18AfXIZphWpaZzCOaGc0k1PqcYvKqBcOaVuU2uZhTeOQtlmlaRz7o0Wja9VNiMcnOwyPOh4Z7xqnuqanZH8a5TMG+Yy+b0bXP6tWzGiUJpVyTqWyKEfM90dNA2Pmfr0Nhtu61H3KwbvyYcmA4jeZWqSQXRdJPhZ11YkldR33rnZI6u5JP5H03Ojp+6JfUT/w+1eDg18/GP5m+MGtEcUPI/23VbLbI5JGVVer+tdWtVCobhVrmtsf/igaa5Ybvpfp/gZbT2QOTjYx2gAAAABJRU5ErkJggg==" nextheight="1375" nextwidth="2000" class="image-node embed"></figure><p>There are early stage projects bring Python and JS to WASM, but it is not ready for massive adoptions because of garbage collection objects implementation and performance issue.</p><div class="relative header-and-anchor"><h2 id="h-language-compatibility">Language Compatibility</h2></div><p>Stylus current supports C/C++ and Rust SDK. It works well with these languages tools. Developers can also bring some third party libraries, like some native cryptography implementation while building smart contracts. The only limit for these is gas cost.</p><p>The Rust SDK is still in the early stage. There are some missing features for Rust and C SDK. C SDK does not support ABI export function. Modifiers are not supported in both SDK.</p><p>Local Stylus test environment is not supported yet, but developers can directly run test in SDKs. To run smart contracts in Stylus, testnet is the only way. Smart contract verification is not supported by the testnet yet.</p><p>People is bringing differet ERC token and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/evmcheb/status/1697537852522049990">Uniswap V2</a> to Stylus.</p><div class="relative header-and-anchor"><h2 id="h-language-choice">Language Choice</h2></div><p>Use DSL, embedding DSL or general programming language is a hard choice. Developers need to make tradeoff between building close to the metal for control or higher level abstractions that are easier to use but limit flexibility.</p><p>Building a brand new DSL also takes time to develop toolchains and ecosystem. eDSL is a sublanguage of a general programming language, sharing same semantics and syntax. With eDSL, it can leverage existing language and tools, lower learning curve compared learning a new DSL, good Interoperability between DSL and general purpose code. For example, for reaching the most developers, making a JS, Python eDSL make sense. General programming languages require developers to use SDK to make development. This introduces extra tooling, more verbosity, less expressiveness and length API call and object operations.</p><p>Picking a right language and make an eDSL may be a right mix. It attracts people from popular dev community and provide easy-to-use tools. From the data below, we see the top crypto developer community is still Ethereum. Polkadot, Cosmos and Solana, which use Rust for smart contract also attract well amount of people. They also have a really fast growing speed on total developers</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/02899e66f8f5daccc25194594378da76.png" alt="" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAPCAIAAAAK4lpAAAAACXBIWXMAAAsTAAALEwEAmpwYAAACeElEQVR4nKWUz0uUQRjH35P/wnrLv2ChbhZUhw57CIJ0l6Kgwl3NMsKXIoISXsi6xZQaZNQULuQPGGUROpSPb7srLppjuAeldHbZ972s0Ky4e1LzCXdsevddsqLPYZh55sd35pnvjIF/jZQS/x0DEUWVAwYtLn4OBBoDgUbjJ2dbWrzCAJBKpjjnOpjPF/L5wr4AAJim6d2mb7NSyulpGwAYY/GhOKUUABCxVNpAREppQ0NDONwaDreq8en0TPPh46GTp8dHJwyoYpqmrCKE0KUXrM2SN15cL0op79y+19lx07aTUn6bzcw9fUnPR6/T+MjeeSmlWiCXy+vyj3DO1VzGWDo9Y9vJXC5fKVeWV5a7utvDF8/YMx+N5qPHEomEZVm+FHHOhRC6VBUvABCpEgqFVMb0+bJL2Vs3umOX2lzHNQ41NTHG6gXUugDgXV1vXMEYo5Ryzn2ZXPmy0j9Auro61tZW91NkWZYvRZVyhXMeqBKJRLSqVqq/EjW3VNpYWPjUHrvcP0C2trcMQohXQLO7+11KWVwvvnk19KzveWY2I4T43d344tmlbG9vbyqZ2rOpMh8hxHtM13HtqaTruMX1YmY2A+/BddwD1q23xq+HpnJKCEHE7Z2dr6trg32DV861jcRHXMf1udOHz771bt5/aE6hcL+n58GTx0dOnLoQuzb17gN98bpSrsj/oEYAEa92thmGcffho7fDw8oGQgjXcQFAW1Z9CdpFUsrx8QnVVHHdq1xbI1De3FRHY4wh4mRiMruU1U1ShTEWDAYBwLKsaDSq4uqn0cO8zRoBRJybnx8dG1PdXiilhBDLg2rqXl1Rc73bR8Qf2p+dqbGLQAEAAAAASUVORK5CYII=" nextheight="935" nextwidth="2000" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/8341e11cd07c58cb0db0f3642ec927e5.png" alt="" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAANCAIAAABHKvtLAAAACXBIWXMAAAsTAAALEwEAmpwYAAAC5UlEQVR4nKVU70tTURi+/0H/QJ+ESkiI+iRZYh8yyWn+vJA4CHddc+WPXTc3Befu1U3b2jwMJWTKsTY1mLuGRJDW/WQhzq1mOlPhauvTNjzG9m3qTsyLlzElih4OD5fLed/nfd7znkNgjCGEFEXhP4Ikyby8POIElSS5FYksLn1WtbatfFuX1lYkEgxvurk3wfDm2Oj42Oi4fzlAYIw5jhMFEEJSRukbIXR4dIQxnvT6WgcsIz6fGUKliZXrDOWUSusArGuCdU0oTey1e/cvXMrPL7o1NTffre+rftDQ8bSLgBACAIqKijDGgiCgU+zu7iGEYvE4QuhnJNLvHNHY7HrgVPQYFT1GNWvWA6cZQj1wlsqbSuVNJXXkjeKSytpahmGisajG2HP19k2tsZcoKytjGIam6RwHolgykdje2dFanmlsds2gVa4ziNk1g1Y1a1aaWEWPsbiinmxU+FcDgcCqIAgY42QiMTvz8pXLubEWINra2xmGyXEgCALHceGNDej21KueyJpb7jY+KqysqVap1axZ1txS0ayqph7rByzTXm/o6xeE9sVAsZkIIZOxv6qibnrqdcYBAOCsg2Qi8cnv11ntYplq1qx1AKWJ1Qxa+4adbxf5WDyeTh9LhyTGnv7Zf+4YUFANy8tLGQGapkmSlATEKubfL3RYhtSsOdMQm13rAF2Dtkmvby0czhmEbJaKM3RqPW4PxpjgeZ6m6ewpSiYSwy9ccp1BaWJL5U0N7Z2j7pl3Hz6mDlPnTtpZAYzxwuJiMBjMCAiCAACQHKTTxyNujzjvd2Sy8qqH3d192Vn+UkBC5h5ACGtqazHGm9+3L18vJAiie2Bods73Y28XY3xw8Ot/BdZCoSsFBWLVlLI1FFqX5gGfyfLPAmJnL+ZnnoFegzEaiw4PO1b8fgAAz/MAAO4EDMPkMMdxEEKReZ5nGEbcf44DCdFYNHWYEm9DNovxNE2LqSmKCgaDOXskzhH4DRntpViuMUKCAAAAAElFTkSuQmCC" nextheight="836" nextwidth="2000" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><div class="relative header-and-anchor"><h2 id="h-performance">Performance</h2></div><p>WASM can greatly increase the execution speed and decrease the bundle size. Although Stylus is not on mainnet yet, we can see benchmark on other network as reference.</p><p>The execution time is shorten 4-8x. The compiled size is reduced by 2x.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/c5155175112383c22534ad8987368577.png" alt="" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAATCAIAAAB+9pigAAAACXBIWXMAAAsTAAALEwEAmpwYAAADDElEQVR4nLWVUUgUQRjHJ4KIXiSkICoRy7B6iMqHgigQ8kEIgpQIInqQ6CEUFEJFVOghJFCyDFEr8Ep6uFOT0+5OPU451+lg19ZT13XVk/Va1mvZDvNG98Zxwz28zjs1lfrzsew3u/v99vvPzizQE0QISRzUjfGtLm0joOu6LMsQQpZlIYSCINA07TVktVoZmp5aH9lt6T8AhJBkSBRF1ZAkSfOBwJwoDo9ODI9yXq9XEISZ77JvTgoGg4qiqKqKMd4pIFGra2as6rrOzvjd37zilKDOy2a764trYHpy4qvHQ9N0KBTaBUCWZZ7nVVX1+Xw/VXVoXOgd4ftGJt3c9CDn6+dm+jnf0KQ4wM36leAqWSFkFRMSiTDGS8vLkfOo4gGSJDEMoygKhLCjrS0p5z4AJ0FyBjh8BiSlg6TTa8fkDACOVTSYdF0Px/hDCMFbpxs6WFhYEARBFGffWLqL602lja0lRjytbyltbC1v+lTS2Pqq3fHO7m7uGXxvRLPdXdfRU9fR87qzr8Zib4eMruubAAKBAMdxDofDZDJ9bm9Pu/0QHMkAqZdByqW1OHEBHD1rtJIODqWB/SngQOraCTgOTl2JkFr6hprtbgcztgkAYwwh5HleFEUI4bwslzd+yCl5nldVk1dVm1dVe6eipqnLSTAOa9oKDqPQ4goOrwf+u0WEEL/fb7PZzGaL2WzuslqvPngCzl0Dmdng/HWQmnkw++6kfz76jKZpsd9J4iRvYlEwGBwbGxMEweVyzfp8hS/fXnxcllX0rLDhIy2Iccs7DrCjSdY0jaIom83W3d3d19t7q6BsX1ZuRm5+56AniDSElvCeAZFXCwQCDoeDoiiLxTI+OnKjoPJe5QvnkGc5HE6suJcOCCEcx0EIGYYZYdni6rqbj4ryK6t/LYb+DSDqsizLTqdTUZRY3/HGbWfvAEKIpmmSJP1QlMgeoBtCCMVWRAjFzXksMi7dZLNDCMV2gBCiKCq2IkVRkiRFb2BZluO4aMrzvMfj2Q6Q+M+Jswgbiys23ZFF/0m/ASo+USDEWYAiAAAAAElFTkSuQmCC" nextheight="1174" nextwidth="2000" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/79a291f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YDVao3FYpsjIYRjY2MkSWYfIkNFQBWbL7Wb9ZwF9oz/X3MTLPgefrwAAAAASUVORK5CYII=" nextheight="1189" nextwidth="2000" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>There is currently a limit on the size of Stylus contracts, around 128KB uncompressed. It will be difficult to port very large smart contracts from other languages like Solidity. You can find in the Stylus codebase.</p><p><code>// arbos/programs/programs.go const MaxWasmSize = 128 * 1024 const initialFreePages = 2 const initialPageGas = 1000 const initialPageRamp = 620674314 // targets 8MB costing 32 million gas, minus the linear term const initialPageLimit = 128 // reject wasms with memories larger than 8MB const initialInkPrice = 10000 // 1 evm gas buys 10k ink const initialCallScalar = 8</code></p><p>Notice that WASM has some overhead on spinning on and off. If you are coding something really light, EVM may be cheaper than WASM.</p><div class="relative header-and-anchor"><h2 id="h-interoperability-with-evm">Interoperability with EVM</h2></div><p>EVM and WASM shares the same storage slots and state tire. Stylus has interoperability with EVM because there are EVM API implemented in WASM. This is done through the popular Host I/O mode in WASM. Here is a full supported list for EVM API in WASM. It looks like the interoperability is fully supported.</p><p><code>read_args write_result storage_load_bytes32 storage_store_bytes32 call_contract delegate_call_contract static_call_contract do_call create1 create2 do_create read_return_data return_data_size emit_log account_balance account_codehash evm_gas_left evm_ink_left block_basefee block_coinbase block_gas_limit block_number block_timestamp chainid contract_address msg_reentrant msg_sender msg_value native_keccak256 tx_gas_price tx_ink_price tx_prigin memoery_grow console_log_text console_log console_tee</code></p><div class="relative header-and-anchor"><h2 id="h-custom-precompiles">Custom Precompiles</h2></div><p>This one is more exciting. Noone has done this before. We can bring more crypto primitives on-chain with a much lower execution cost. For on-chain ML, we can bring tensor computation as precompiles to lower the inference cost. However, I do not see any relevant code about custom precompiles. We see the precompiles for the EVM part, but is not hot swappable.</p><p>I believe these part are stilling implemented with the power of WASM. EVM can call functions written in WASM which can be compiled down to machine code.</p><div class="relative header-and-anchor"><h2 id="h-reentrant">Reentrant</h2></div><p>Unlike CosmWasm which uses an actor model to provide contract call and does not provide reentrant functionality, Stylus Rust SDK set reentry as a feature flag and it is default set as off. Developers can manually enable the reentry functionality.</p><p>Introducing reentrancy with the default feature flags on will change the API a bit, since developers have to be careful to flush the storage cache when making calls, among other safety considerations.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/956dacb92a4bf06e745ea5b708f4e255.png" alt="" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAdCAIAAABE/PnQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGPklEQVR4nK1WfUwTZxy+mGUxGj8S4wxOt0XjIor4sYnIlxaHwgQBtUUQtKCuXLVIW8uXOEBdUL6Mct3moLBpaLUiDcWB5QRjaZ0TOKEKFKQU39Jy5WgRSFsJmi7lMtY5Qd325P548+bunvd5nt/vfgeVV1Rs3LQ5IysrlZcUe4AOx9CWuyxa6bY+Jo5RL1dqtLqh4eGR0dF/fUEEQRQUXBwbH+dn59ICAg7uDQ3d5osUFNTekbc0q8xm88PfsScqVb9e392jxY34C5utT6fr0wGCGBgeGbbbX1ksFvvUgDo6Oo4wYACA1WptfNQ88YwD5GOWCTjvOG++tvNGQACAvVRaTm4eeZ9a3SmVSouKixSKhnvye5gDLVJp1YPfHjQ2Y0KRqLGpCUXrMKxFVouS69syGUEQUyoAQEelRTDiYbvdjmEtCMIXikToXSWGqQoRRCKR3JbJcnLzyoTCMqEwNS1dUFJaiCBSaRWC8CUSCYLwEYQPAJiSQK3uZLO55BEwDJOhd3cHe0MTsP8fcFgUDzPV6k5SQYVEejYj+b0ILNOHDABgHU/s0Wrtdntbe7tQJBKU/FwvV9bI7pAWXb9+49z5HG5Scn5+ATcpGUH4FwsRQUkpgvBltejbFfRotWw2lzTxlvhGqLdf0CbPzSs+T6THpZ9IDw2K9vGkrJgz7xicuGNPNJN5LDY2LtzHL3izl9f6VYtnQUX8QlrEPl8/PwY1Yo+f/wkm42tfzy9cl5eLr2km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Tp85SI9LZHN2hYadPfudxWIx6PG2x224Ee/T6Qb6+80mk+bplCeAcKMxNS3dOQN6OHX1Slf3tWv9KZT0lBQIgsLCwgMDA2EYdl+77tChw9mZBam81DXua1hH4QuZpzN5nEQmY0oCAMC58zmTFlmt1i2hMV6UwKDt25M5XPKTUCerRVH05Mn0aYb7dARsNndSAUEQG9zcI8N2H2XCrS0taWlpWafPPFE95vP5kZFRCoXCbreP2cb+DOzVC5vtLZ0MgC4jK4sk6HiqHh55Lr9z+349So6q/w4HQUpqGgBA3a014G8YAP/8s3svgj8AH6Rx4U6Gq0gAAAAASUVORK5CYII=" nextheight="1832" nextwidth="2000" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><div class="relative header-and-anchor"><h1 id="h-conclusion">Conclusion</h1></div><p>WASM is an emerging technology gaining traction in the cloud-native space. Numerous blockchains are integrating WASM for their smart contract runtimes. While Arbitrum is not the first to do so, it could be the most significant. WASM cannot completely change the blockchain world and substitute EVM, but WASM has the potential to enhance Arbitrum's competitiveness against upcoming zk-rollups. I like how Arbitrum call this EVM+. EVM is the floor for smart contract runtime and WASM can bring some extra power for Arbitrum.</p>]]></content:encoded>
            <author>inevitable@newsletter.paragraph.com (Inevitable)</author>
            <enclosure url="https://storage.googleapis.com/papyrus_images/6647ca9e3abe8603d9e9817ea19555eb.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[Where is AI + Web3 Headed?]]></title>
            <link>https://paragraph.com/@inevitable/where-is-ai-web3-headed</link>
            <guid>Zhef90W9j0gBxyHmTK8i</guid>
            <pubDate>Wed, 27 Sep 2023 01:58:16 GMT</pubDate>
            <description><![CDATA[The Nexus of Trust and Intelligence: Transforming Industries through AI + Blockchain SynergyObstacle No More: Performance UnleashedBlockc...]]></description>
            <content:encoded><![CDATA[<blockquote><p>The Nexus of Trust and Intelligence: Transforming Industries through AI + Blockchain Synergy</p></blockquote><div class="relative header-and-anchor"><h2 id="h-obstacle-no-more-performance-unleashed"><strong>Obstacle No More: Performance Unleashed</strong></h2></div><p>Blockchain&apos;s reputation for sluggish performance and high computational costs has been a roadblock for innovation. Layer 2 technologies have shattered this barrier, offering 100x cost reduction while preserving decentralization and trust. The field is now ripe for computational-intensive activities, making way for an amalgamation of AI and blockchain.</p><div class="relative header-and-anchor"><h2 id="h-intelligent-blockchain-a-two-way-street"><strong>Intelligent Blockchain: A Two-Way Street</strong></h2></div><div class="relative header-and-anchor"><h3 id="h-blockchain-ai"><strong>Blockchain ← AI</strong></h3></div><p>Poor user experience in the blockchain space is often attributed to its lack of intelligence. However, reduced computation costs have paved the way for integrating Machine Learning algorithms on-chain, thereby elevating Dapps from mere transactional entities to intelligent interfaces.</p><p>From rudimentary on-chain algorithms to advanced AI capabilities like AIGC, Dapps will soon be on par with traditional applications. This integration will enable Dapps to understand users&apos; intent, automate complex tasks, and ultimately, make the entire on-chain experience seamless and efficient.</p><div class="relative header-and-anchor"><h3 id="h-ai-blockchain"><strong>AI ← Blockchain</strong></h3></div><p>Conversely, blockchain brings privacy and trust to AI. Zero-Knowledge Proofs (ZK) and other cryptographic techniques are being employed to ensure transparency in data collection, training, and inference. This will mitigate public distrust and privacy concerns related to AI.</p><img src="https://storage.googleapis.com/papyrus_images/f2152d8904aad56506a06c326d628892.png" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAARCAIAAAAzPjmrAAAACXBIWXMAAAsTAAALEwEAmpwYAAACX0lEQVR4nJWUu04yQRTHKYiRzvgGFMaojVJQ21kYamnooLOyspN9ACoro7EyMVpqpZUN2ScAE0IIIRIL2UuWYfYyc+aYjxPHYVlJvn+1M3Pm/ObcNod/y3GcwWDAGDM3lVLxXEqplD0A0CYAJEkCAIiY08ee531+fgohyMKyrL29va2trVKpdH9/T5uIyBjzPM9xHFpqql4CQBzHk8nE87wFABnREzjnR0dHuR+dnp6agMxwAeDr64ucmvoFmCRE9H3/+fn55ubm7e2NwiLNZrOUX0TsdruVSmV3d3d7e7tWqxGG/GQA6MxMsTK+NYBspJSIeHd3l8/n19fXKeJOp6PZ2QC6L+YiFyZA+0VEKSU5sm378vLy6uqq3++bb1oALDfGsnQEAKAxqYvm8s8IMqWUCsOQMdZsNsvl8v7+fr1e//j4oFBIKdgvQEoZBAFjjHM++xFf1HQ65Zzbtr25ual77Pb2FhHpiO5Op1MpZRRFAPAPQEzHcd7f35MkMQMXQsCigiBAxHa7bVnWxcXFy8sLlYEyJqUUQvR6vU6nMx6P4zj+jcDMqeu6o9EoDMMVNUhJJwcAhBBJkqTblNZCiGazubOzUywWDw4OHh4edMOZAHrpco+lCpYB4JwfHh6ura0VCoVcLnd2dpYJWNbj4+PJycnx8fH5+TmVPWPQaCsIgqenp+vra9u2TdeZADIYDocbGxu67JZlUTIy2nTFDONcjDE9XKbN6+tro9GoVqutVsv3/VW/ChrUlBct3/fH47HrustHABBFURiGk7lc11VK/d+grRD9pfUARXMh4jdyGcjYvAvGNQAAAABJRU5ErkJggg==" nextheight="921" nextwidth="1690" class="image-node embed"><div class="relative header-and-anchor"><h2 id="h-implications-tackling-our-grandest-challenges"><strong>Implications: Tackling Our Grandest Challenges</strong></h2></div><div class="relative header-and-anchor"><h3 id="h-user-onboarding-to-web3-ecosystems"><strong>User Onboarding to Web3 Ecosystems</strong></h3></div><p>The integration of AI can dramatically improve user experience on blockchain platforms. AI algorithms can guide users through complex tasks, recommend related Dapps, and serve as an effective co-pilot in the blockchain world. Smart contracts, enhanced by AI-driven firewalls, add an extra layer of security, making the Web3 world more accessible and secure for novices and experts alike.</p><div class="relative header-and-anchor"><h3 id="h-monetization-of-ai-models-and-data"><strong>Monetization of AI Models and Data</strong></h3></div><p>Blockchain provides the ideal framework for a creator economy focused on AI models, data, and even AI-generated content. Technologies such as tokens, NFTs, and decentralized markets enable a secure exchange of these high-value assets. Projects like Giza, NFTPrompt, and SingularityNET are trailblazing in this direction.</p><div class="relative header-and-anchor"><h3 id="h-cost-efficiency-in-ai-operations"><strong>Cost Efficiency in AI Operations</strong></h3></div><p>Utilizing blockchain&apos;s decentralized nature, AI training and inference can be distributed across multiple nodes, significantly reducing costs. This is akin to decentralized storage solutions like Filecoin but for computational tasks. Initiatives like Gensyn, Together, and Bittensor are harnessing decentralized networks for cost-efficient AI operations.</p><div class="relative header-and-anchor"><h3 id="h-advancing-privacy-in-the-ai-world"><strong>Advancing Privacy in the AI World</strong></h3></div><p>Technologies like Zero-Knowledge Machine Learning (ZKML) and Fully Homomorphic Encryption (FHE) can be integrated into the AI lifecycle to ensure data privacy. These technologies allow for encrypted data inputs, model privacy, and even encrypted outputs, thereby solving a multitude of privacy issues.</p><div class="relative header-and-anchor"><h3 id="h-stability-and-transparency-in-defi"><strong>Stability and Transparency in DeFi</strong></h3></div><p>AI can provide real-time, transparent, and dynamic risk management in decentralized finance (DeFi). Traditional risk algorithms are either too simplistic or lack transparency when executed off-chain. With AI integrated directly on-chain, protocols like Yearn and Compound can leverage complex algorithms for risk management while maintaining full transparency. Besides that, we can also bring more complex AI powered strategies on-chain. Modulus Labs once has made a demo about this.</p><div class="relative header-and-anchor"><h3 id="h-gaming-the-next-frontier"><strong>Gaming: The Next Frontier</strong></h3></div><p>AI has the potential to revolutionize on-chain gaming by reducing development costs and enhancing gameplay. AI can automate various aspects of game development including planning, sound design, and testing. Furthermore, AI can bring dynamic and intelligent environments to on-chain games, with features like auto-generated levels and smart enemies. Projects like GiroGiro are pioneering in this space.</p><p>By addressing these challenges, the AI and blockchain synergy opens up new horizons for innovation, making a compelling case for investment and development in this converging ecosystem.</p><div class="relative header-and-anchor"><h2 id="h-the-new-industrial-revolution-is-now"><strong>The New Industrial Revolution Is Now</strong></h2></div><p>This is not a mere speculative future but a transformative era that is unfolding over a span of 10 to 20 years. The integration of AI and blockchain is already reshaping industries, enhancing user experiences, and solving pressing issues like privacy and trust.</p><p>Our conviction in this synergistic relationship between AI and blockchain is steadfast. We have been investing in groundbreaking companies in this space, and the potential for impact is monumental. We&apos;re beyond excited to be part of this new industrial revolution, one that transforms, empowers, and solves some of our most significant challenges.</p>]]></content:encoded>
            <author>inevitable@newsletter.paragraph.com (Inevitable)</author>
            <enclosure url="https://storage.googleapis.com/papyrus_images/f2152d8904aad56506a06c326d628892.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[PoS economy landscape, will staking drive the next bull run?]]></title>
            <link>https://paragraph.com/@inevitable/pos-economy-landscape,-will-staking-drive-the-next-bull-run</link>
            <guid>KzgDMfAsi0i3zBP2iSfI</guid>
            <pubDate>Mon, 13 Jun 2022 03:36:02 GMT</pubDate>
            <description><![CDATA[Author: Glaze & Fundamental Labs ResearchEditor: PhilipTL;DRWe break up PoS staking into three parts: node providers, liquid staking pool...]]></description>
            <content:encoded><![CDATA[<p><em>Author: </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/glazecl"><em>Glaze</em></a><em> &amp; Fundamental Labs Research</em></p><p><em>Editor: Philip</em></p><div class="relative header-and-anchor"><h1 id="h-tldr">TL;DR</h1></div><ul><li><p>We break up PoS staking into three parts: node providers, liquid staking pools, finance derivatives</p></li><li><p>The big players have already dominated the market</p></li><li><p>New players can enter the market by supporting long-tail assets, and better UX</p></li><li><p>There are the following opportunities:</p><ul><li><p>Data analysis tool</p></li><li><p>Toolkits for bootstrapping your node provider business</p></li><li><p>Long-term fix rate staking derivatives</p></li><li><p>Better tokenomics design</p></li></ul></li></ul><div class="relative header-and-anchor"><h1 id="h-intro">Intro</h1></div><p>Ethereum is turning from Proof-of-Work (PoW) to Proof-of-Stake (PoS) for higher transactions-per-second (TPS) and efficiency. Most of the major blockchains that support smart contracts use PoS, such as Solana, Cardano and Avalanche.</p><img src="https://storage.googleapis.com/papyrus_images/396370296bacfd8b70bbc5081a0988ca.png" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAUCAIAAABj86gYAAAACXBIWXMAAAsTAAALEwEAmpwYAAADXUlEQVR4nLVVT4jcVBjPZHaabDpJttnJJpkk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KPbJtRiR5XFBKDIMu54URYXj+HVkeqn9DQOymOW+mad5AAAAAElFTkSuQmCC" nextheight="762" nextwidth="1214" class="image-node embed"><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://cms.stakingrewards.com/wp-content/uploads/2021/10/2021-Staking-Ecosystem-Report-1.pdf"><em>Source: Staking Ecosystem Report 2021</em></a></p><p>Most blockchains turn to PoS because PoS empower them to embrace high performance, faster finality, environmental sustainability, scalability, low cost of security, and flexibility in architecture compared to PoW approach.</p><img src="https://images.mirror-media.xyz/publication-images/I4CDkWx6gaQfhWxBQ2iHF.png?height=647&amp;width=1013" alt="" title="null" class="image-node embed"><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://cms.stakingrewards.com/wp-content/uploads/2021/10/2021-Staking-Ecosystem-Report-1.pdf"><em>Source: Staking Ecosystem Report 2021</em></a></p><p>PoS gives users a new way to earn stable yields. Delegate the native assets to the staking node, users can earn 10%-20% yields. This is like the treasury bond of countries. It is stable and low-risk and it is much more profitable than stablecoin farming on popular DEXs and lending platforms.</p><img src="https://images.mirror-media.xyz/publication-images/76WOobkAPxZUtJN_lxQAZ.png?height=361&amp;width=1031" alt="" title="null" class="image-node embed"><img src="https://images.mirror-media.xyz/publication-images/w5yCnjqFVccOvoLXSmqSW.png?height=1180&amp;width=2000" alt="" title="null" class="image-node embed"><p>Hopefully, these crypto treasuries can help investors overcome fiat currency inflation. The following chart illustrates the inflation rate around the world. The fiat currency inflation is around 3% to 6%.</p><img src="https://images.mirror-media.xyz/publication-images/Ao7Rz1LHIOW9RWSkrskgj.png?height=766&amp;width=1306" alt="" title="null" class="image-node embed"><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://cms.stakingrewards.com/wp-content/uploads/2021/10/2021-Staking-Ecosystem-Report-1.pdf"><em>Source: Staking Ecosystem Report 2021</em></a></p><div class="relative header-and-anchor"><h1 id="h-staking-mechanism">Staking mechanism</h1></div><p>Different blockchains have different staking mechanisms, differing in withdrawal period and slashing rules.</p><div class="relative header-and-anchor"><h2 id="h-ethereum">Ethereum</h2></div><p>Ethereum is turning from PoW to PoS for sustainability and scalability.</p><img src="https://images.mirror-media.xyz/publication-images/42aepoSsHMQ1Ou-xaRLWn.png?height=959&amp;width=1281" alt="" title="null" class="image-node embed"><p><em>Source: Delphi Digital</em></p><p>Ethereum describes staking on Ethereum as “Staking is the act of depositing 32 ETH to activate validator software. As a validator, you’ll be responsible for storing data, processing transactions, and adding new blocks to the blockchain. This will keep Ethereum secure for everyone and earn you new ETH in the process. This process, known as proof-of-stake, is being introduced by the Beacon Chain.”</p><p>In short, the user needs to stake 32 ETH and run a validator node to become a staker. Users can withdraw staked ETH at least after the merge.</p><p>Currently, users will get around 4.2% APR, not deducting the server cost. After the merge, Kraken expects the APR to increase to 8.5% - 11.5% in the report <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://staking.staked.us/state-of-staking">“The State of Staking Q1 2022”</a>.</p><img src="https://images.mirror-media.xyz/publication-images/OCjaZmuq2JU-03VJ34B2U.png?height=283&amp;width=515" alt="" title="null" class="image-node embed"><p><em>Source: </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://staking.staked.us/state-of-staking"><em>The State of Staking Q1 2022</em></a></p><p>The Ethereum node doesn’t require high-end hardware. The server cost is relatively low. The recommended specifications are:</p><ul><li><p>4+ cores CPU</p></li><li><p>16 GB+ RAM</p></li><li><p>SSD with at least 500 GB of free space</p></li><li><p>25+ MBit/s bandwidth</p></li></ul><p>Based on the node type, the disk space requirements varies from 400GB to 6TB.</p><p>In the ETH2 network, a proposer mints the new block, and the attester vote for this block to be part of the canonical chain.</p><p>Slashing means the validator violates rules and is forced to exit. There are three slashing conditions:</p><ul><li><p>As a proposer, the node sign more than one beacon block for one slot</p></li><li><p>As an attester, the node signs more than one attestation on the same target</p></li><li><p>As an attester, the node sign an attestation conflict with the history</p></li></ul><p>If any of these behaviors is caught, the node is forced to exit the beacon chain around 36 days in the future. The penalties will continue to incur for around 36 days until the node can exit. The penalty number varies based on the network condition.</p><img src="https://images.mirror-media.xyz/publication-images/osvxdjNUTKDq6p4YZmkUE.png?height=832&amp;width=1242" alt="" title="null" class="image-node embed"><p>Slashing forces validators to exit the network, but penalties don’t. Penalties conditions can be put into the following categories:</p><ul><li><p>Attester penalties</p></li><li><p>Inactive leak penalty</p></li></ul><p>There are a total of 13,310,531 ETH staked and 396,982 total validators. The following charts illustrate the ETH 2.0 staking rate and staked ETH.</p><img src="https://images.mirror-media.xyz/publication-images/ltB6vDQk2QLLJFviMFWfc.png?height=1260&amp;width=2000" alt="" title="null" class="image-node embed"><p><em>Source: </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://cryptoquant.com/asset/eth/chart/eth2"><em>CryptoQuant</em></a></p><img src="https://images.mirror-media.xyz/publication-images/KD-mla8nKn2Ki48OrvPWt.png?height=1260&amp;width=2000" alt="" title="null" class="image-node embed"><p><em>Source: </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://cryptoquant.com/asset/eth/chart/eth2"><em>CryptoQuant</em></a></p><p>The inflow chart reveals some peak inflow time points. Some big inflow happened in Dec. 2020 and March 2022.</p><img src="https://images.mirror-media.xyz/publication-images/4Cu9G9uwzhP976AhxuQ4Z.png?height=1260&amp;width=2000" alt="" title="null" class="image-node embed"><p><em>Source: </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://cryptoquant.com/asset/eth/chart/eth2"><em>CryptoQuant</em></a></p><p>Kraken is the 1st staker in ETH 2.0. CEXs still has an advantage in the market. They can turn their existing users into ETH 2.0 stakers.</p><img src="https://images.mirror-media.xyz/publication-images/I5pNvCKNSaupZmjUVkslo.png?height=1015&amp;width=1942" alt="" title="null" class="image-node embed"><p><em>Source: </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://beaconcha.in/pools"><em>Ethereum 2.0 Beacon Chain (Phase 0) Block Chain Explorer - Staking Pools Services Overview - beaconcha.in - 2022</em></a></p><p>For liquid staking, Lido dominates the market. Liquid staking derivatives help user liquid their staking assets and improve capital efficiency.</p><img src="https://images.mirror-media.xyz/publication-images/AS21EPYb4Vp8Iwzv3wfu7.png?height=610&amp;width=1148" alt="" title="null" class="image-node embed"><p><em>Source: Delphi Digital</em></p><div class="relative header-and-anchor"><h2 id="h-alt">ALT</h2></div><p>Lots of smart-contract-enabled chains use PoS considering TPS and sustainability.</p><p>They have different rules. Some chains allow users to delegate their staking to active validators. These validators run the node and charge commission fees from delegation staking. To withdraw their staking, users need to wait a period of time before undelegating.</p><p>Currently, Ethereum 2.0 has the lowest staking ratio.</p><img src="https://images.mirror-media.xyz/publication-images/oyonIOf0ydUiAH50grAXe.png?height=1470&amp;width=2000" alt="" title="null" class="image-node embed"><p><em>Source: </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.stakingrewards.com/"><em>Staking Rewards</em></a></p><div class="relative header-and-anchor"><h1 id="h-node-providers">Node providers</h1></div><p><strong>Running own staking nodes has lots of risks and needs a large amount of money to start. It is hard for individuals to maintain a 24/7 online server and not do anything wrong causing penalties. To help individuals easier to stake and earn rewards, there appears staking-as-a-service. Node providers will take care of the infrastructure and users only need to stake their funds.</strong></p><p>Node providers provide node operation services. They provide service to individuals and liquid staking derivatives. To individuals, node providers charge a monthly node operation fee or commission fee. To liquid staking derivatives, node providers usually get a percentage of the staking rewards. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.lido.fi/guides/node-operator-manual/">Lido explains how they choose node operators.</a></p><p>There are lots of node providers in the market. They differ in the following aspects:</p><ul><li><p>Fee</p></li><li><p>Supporting assets</p></li><li><p>Reliability and safety</p></li></ul><img src="https://images.mirror-media.xyz/publication-images/pU9MQwTlzoeGmspY_rgYI.png?height=1116&amp;width=1607" alt="" title="null" class="image-node embed"><p><em>Source: Staking Rewards</em></p><p>Big players have already established large user groups, good reputations, and safe operation records. It is hard for new players to take a large market share. <strong>Big market players believe the opportunities for small players are the following</strong>:</p><ul><li><p>Better UX</p></li><li><p>Supporting long-tailed assets</p></li><li><p>Providing services besides staking, like ecosystem updates, simple financial engineer tools, information websites, and data analysis tools</p></li></ul><p>Though small players are hard to compete with large players, <strong>large players do face some challenges</strong>:</p><ul><li><p>Risk of centralization</p></li><li><p>Compliance</p></li><li><p>Security and operation risk</p></li></ul><p>Decentralization is the key to a network. If several node providers have a major stake in the network, these node providers are a stratum for cartelization. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/dannyryan?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Eauthor">@djrtwo</a> questions this in his passage “<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://notes.ethereum.org/@djrtwo/risks-of-lsd?s=09">The Risks of LSD</a>”.</p><p>To build a decentralized and permissionless product, compliance is a big problem. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://Stake.Fish">Stake.</a>fish believes that “due to how staking looks like fixed income in some sense, this could invite regulators to consider validators closer to financial entities than miners. If this occurs, then there would be no way for validators to stay compliant without becoming a fully licensed custodian and guarding delegator access (which again, may technically be impossible to enforce)” in the “<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://cms.stakingrewards.com/wp-content/uploads/2021/10/2021-Staking-Ecosystem-Report-1.pdf">2021 staking ecosystem report”</a>.</p><p>Node operators put safety first because the safety incident can cause asset loss. In Jan 2021, ETH2 validators got slashed due to a bug. Here is the recent slashing history for ETH2 validators.</p><img src="https://images.mirror-media.xyz/publication-images/h-F3ZvD3HYiHs8DiJ36_Z.png?height=597&amp;width=1724" alt="" title="null" class="image-node embed"><p><em>Source: </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://beaconcha.in"><em>beaconcha.in</em></a></p><p>Node providers are trying to increase the stability of the infrastructure with new tech like SSV. The secret shared validator network is a tech that can reach active-active redundancy. All validators in the network actively produce new blocks. The mechanism is like a multi-sig wallet.</p><img src="https://images.mirror-media.xyz/publication-images/Xp3xH_iWFcw5fV2r1_469.png?height=897&amp;width=1600" alt="" title="null" class="image-node embed"><p><em>Source: OBOL</em></p><p>Other techs used for slashing prevention are the local slashing protection database which records messages causing slashing, and remote slasher which records all attestations and blocks received.</p><p>From the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://cms.stakingrewards.com/wp-content/uploads/2021/10/2021-Staking-Ecosystem-Report-1.pdf">Staking Rewards survey</a>, users do care more about reputation than cost, and node providers are trying to improve their reliability in order to build their reputations.</p><img src="https://images.mirror-media.xyz/publication-images/YSZbqJE7iA8gWmEJWZ6v8.png?height=645&amp;width=1104" alt="" title="null" class="image-node embed"><p>Source: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://cms.stakingrewards.com/wp-content/uploads/2021/10/2021-Staking-Ecosystem-Report-1.pdf">Stake Rewards</a></p><div class="relative header-and-anchor"><h1 id="h-liquid-staking-pool">Liquid staking pool</h1></div><p><strong>After choosing the best staking node providers, the next problem is capital efficiency. Users need to lock assets in the staking node but only yield 10% annually. In the crypto world, there are opportunities everywhere. The opportunity cost of locking assets in the staking pool is huge. Thus users are trying to increase capital efficiency. A liquid staking pool helps users get their liquidity almost instantly.</strong></p><p>The liquid staking pool has two functions:</p><ul><li><p>Lower the staking requirement for users</p></li><li><p>Greatly increase the liquidity of staked assets</p></li></ul><p>To increase the liquidity of staked assets, the staking pool mint a new token for users. For example, after staking ETH in Lido, Lido mints stETH for users. Users can exchange stETH with ETH on DEX. Below is the pricing chart for stETH.</p><img src="https://images.mirror-media.xyz/publication-images/GhyCvKSuLz_8C58sPq9NO.png?height=1135&amp;width=2000" alt="" title="null" class="image-node embed"><p><em>Source: Dex Screener</em></p><p>stETH is like a bond. 1 stETH can redeem 1 ETH in the unpredictable future. We are not sure when Ethereum will release staked assets in the staking node because releasing the staked assets needs a hard fork update after the ETH2.0 merge.</p><p>The next few charts show that Lido dominates the ETH staking market and secures a large portion of the market share.</p><img src="https://images.mirror-media.xyz/publication-images/II2X0OLxpSYHTvpIsaowb.png?height=610&amp;width=1148" alt="" title="null" class="image-node embed"><p><em>Source: Delphi Digital</em></p><img src="https://images.mirror-media.xyz/publication-images/u4DZ3xm-ufLrccRKlNeaG.png?height=610&amp;width=1148" alt="" title="null" class="image-node embed"><p><em>Source: Delphi Digital</em></p><p>However, Marinade dominates the Solana liquid staking market instead of Lido.</p><img src="https://images.mirror-media.xyz/publication-images/g6T2NhGPKJ2Jqsl5MIsoK.png?height=1062&amp;width=2000" alt="" title="null" class="image-node embed"><p><em>Source: Delphi Digital</em></p><p>Here is a fee breakup for liquid staking on Solana.</p><img src="https://images.mirror-media.xyz/publication-images/SfD9zHz8ZxAjET6vDcwra.png?height=1062&amp;width=2000" alt="" title="null" class="image-node embed"><p><em>Source: Delphi Digital</em></p><p>Besides fee and reputation, utility is another major point. More partnerships mean deeper liquidity for liquid assets in DEXs and lending platforms. Marinade has the most partnership with DeFi projects.</p><img src="https://images.mirror-media.xyz/publication-images/b-9HhrHhoKfF_hgOC6s6I.png?height=1062&amp;width=2000" alt="" title="null" class="image-node embed"><p><em>Source: Delphi Digital</em></p><img src="https://images.mirror-media.xyz/publication-images/iGUJ0VXQmmnGuHybCVKIi.png?height=1062&amp;width=2000" alt="" title="null" class="image-node embed"><p><em>Source: Delphi Digital</em></p><div class="relative header-and-anchor"><h1 id="h-finance">Finance</h1></div><p><strong>Most DeFi users are APY addicted. Is there any way to push our staking yields, but still enjoy a low risk? Yes. Leverage farming can do this.</strong></p><p>Most leveraged yield farms use 2x - 3x leverages and offer around 7% APY. They do have liquidation risks.</p><p>Basically, they deposit stETH on Aave and borrow WETH through Aave. Then they swap WETH for more stETH and repeat the steps above.</p><p>Another interesting project is <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.stakingrewards.com/sr20-staking-index/">SR20</a> by Staking Rewards. SR20 is an index containing the top 20 PoS assets weighted by total staked value. The index also accrues staking rewards on a continuous basis. The following charts demonstrate the allocation:</p><img src="https://images.mirror-media.xyz/publication-images/TdzwcKeo2wLa2nwKP0c0K.png?height=1017&amp;width=1107" alt="" title="null" class="image-node embed"><p><em>Source: Staking Rewards</em></p><p>The current index price is $304.41 and the reward rate is 6.54%. The staking returns YOY is 9.44%. Below is the price chart of SR20.</p><img src="https://images.mirror-media.xyz/publication-images/hOHVVDM8a5g9ig2p91w9O.png?height=953&amp;width=1128" alt="" title="null" class="image-node embed"><p><em>Source: Staking Rewards</em></p><p>To avoid slashing risk, there are also insurance products for validators. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://blog.lido.fi/lido-unslashed-finance-partner-to-insure-ethereum-staking-service/">Lido partnered with Unslashed Finance</a> to cover approximately $200M worth of staked ether from slashing in Feb 2021.</p><img src="https://images.mirror-media.xyz/publication-images/QoYVMWsAv8I2MtUgeQmR7.png?height=1125&amp;width=2000" alt="" title="null" class="image-node embed"><p><em>Source: Lido Medium</em></p><div class="relative header-and-anchor"><h1 id="h-whats-next">What’s next</h1></div><p>The ecosystem of staking is established. Big players have already gained a strong position in the market. The total staking market will continue to grow because the ETH staking ratio is still low compared to other PoS assets. We are optimistic about the future of the staking market.</p><p>Staking assets is similar to buying treasury. Institutions and big whales are willing to buy these assets. One big difference between treasury and staking is that staking reward is not fixed. Staking rewards vary upon network conditions. <strong>To make the APR more stable, we anticipate fixed APR and long-term staking assets.</strong></p><img src="https://images.mirror-media.xyz/publication-images/isbyocDH1-IGFt6Ez2Z4J.png?height=642&amp;width=1215" alt="" title="null" class="image-node embed"><p>Source: Staking Rewards</p><p>Current tokenomics for liquid staking protocols cannot catch the true value. With rising revenue and TVL, the token price drops. <strong>We need a better tokenomics design to support the staking protocol.</strong> Currently, the protocol revenue does not share with the token holder. This makes the token a pure governance token.</p><p><strong>Two opportunities for new players are better UX and long-tail assets support.</strong> Spinning up a node is easy with the help of an official document. The hard part is operation and customer management. <strong>To better support these new players, some toolkits are necessary.</strong> This is similar to the VPN market. Lost of small players entering the market with lower fees and better UX.</p><p><strong>A specific data analysis tool is also necessary.</strong> For stakers, they care about the liveness history, staked ratio history, slashing history, etc. These data are different from the common dataset we use. The common dataset we use focuses on transactions. To better support stakers, a new data analysis tool is necessary.</p><div class="relative header-and-anchor"><h1 id="h-reference">Reference</h1></div><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://consensys.net/blog/codefi/rewards-and-penalties-on-ethereum-20-phase-0/">Rewards and Penalties on Ethereum 2.0 [Phase 0] | ConsenSys</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ethos.dev/beacon-chain/#rewards-penalties">The Beacon Chain Ethereum 2.0 explainer you need to read first | ethos.dev</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://kb.beaconcha.in/rewards-and-penalties">Rewards and Penalties - Ethereum 2.0 Knowledge Base (beaconcha.in)</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://notes.ethereum.org/@djrtwo/risks-of-lsd?s=09">The Risks of LSD - HackMD (ethereum.org)</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://staking.staked.us/state-of-staking">State of Staking (staked.us)</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://cms.stakingrewards.com/wp-content/uploads/2021/10/2021-Staking-Ecosystem-Report-1.pdf">2021 Staking Ecosystem Report (stakingrewards.com)</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/prysmatic-labs/eth2-slashing-prevention-tips-f6faa5025f50">Eth2 Slashing Prevention Tips. This post regards information on… | by Raul Jordan | Prysmatic Labs | Medium</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://members.delphidigital.io/reports/lido-dominates-liquid-staking">Lido Dominates Liquid Staking - Delphi Digital</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://members.delphidigital.io/reports/managing-expectations-heading-into-the-merge">Managing Expectations Heading Into &quot;The Merge&quot; - Delphi Digital</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://members.delphidigital.io/reports/the-race-to-become-solanas-liquid-staking-winner">The Race To Become Solana&apos;s Liquid Staking Winner - Delphi Digital</a></p></li></ul>]]></content:encoded>
            <author>inevitable@newsletter.paragraph.com (Inevitable)</author>
            <enclosure url="https://storage.googleapis.com/papyrus_images/396370296bacfd8b70bbc5081a0988ca.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[Cross-chain Bridge Overview]]></title>
            <link>https://paragraph.com/@inevitable/cross-chain-bridge-overview</link>
            <guid>GRWICeBhaWLipvAFDrAz</guid>
            <pubDate>Mon, 09 May 2022 07:02:56 GMT</pubDate>
            <description><![CDATA[Author: Glaze & Fundamental Labs ResearchSpecial thanks to Dominator008@Celer, Outprog.eth@everFinance, Zhixiong Pan.TL;DRThe multichain ...]]></description>
            <content:encoded><![CDATA[<p><em>Author:</em> <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/glazecl">Glaze</a> &amp; Fundamental Labs Research</p><p><em>Special thanks to </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/Dominator0081"><em>Dominator008@Celer</em></a><em>, </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/outprog_eth"><em>Outprog.eth@everFinance</em></a><em>, </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/nake13"><em>Zhixiong Pan</em></a><em>.</em></p><div class="relative header-and-anchor"><h1 id="h-tldr">TL;DR</h1></div><p>The multichain ecosystem is booming. cross-chain bridges are the base for the multichain ecosystem. There are lots of opportunities in the cross-chain market. In this report, we will explore the potential of the cross-chain market.</p><p>There are generally three kinds of technique approaches:</p><ul><li><p>Local Verification</p></li><li><p>External Verification</p></li><li><p>Native Verification</p></li></ul><p>Cross-chain bridges have four functions:</p><ul><li><p>Asset-specific</p></li><li><p>Chain-specific</p></li><li><p>Application-specific</p></li><li><p>Generalized</p></li></ul><p>When reviewing a bridge, we care about the following characteristics:</p><ul><li><p>Capital efficiency</p></li><li><p>Connectivity</p></li><li><p>Security</p><ul><li><p>Trustless</p></li><li><p>Insured</p></li><li><p>Trusted</p></li></ul></li><li><p>Speed</p></li><li><p>Statefulness</p></li></ul><p>There are lots of players in the cross-chain bridge markets. New players face fierce competition, security risks, and need to collect enough TVL. Following are opportunities in this area:</p><ul><li><p><strong>Bridges between layer2s, bridges between layer2 and layer1</strong></p></li><li><p><strong>Bridges with new tokenomics</strong></p></li><li><p><strong>Bridge SDK</strong></p></li><li><p><strong>Bridge Aggregator</strong></p></li><li><p><strong>ZK Bridge</strong></p></li></ul><div class="relative header-and-anchor"><h1 id="h-market-overview">Market Overview</h1></div><p>We are entering a multichain era. The Ethereum dominance decreases. Alt chains take more market dominance. After Ethereum, there are Solana, Avalanche, Polkadot, Terra... These chains are becoming mature and have a complete ecosystem. There are over 115 active blockchains (data from <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://blockchain-comparison.com/blockchain-protocols/">Layer1 Blockchain Protocol</a>). The below chart describes the market dominance of different chains.</p><img src="https://storage.googleapis.com/papyrus_images/d159b6156c84bc82880ca327f213c4cf.png" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAQCAIAAAD4YuoOAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFIklEQVR4nI2TfUwTZxzHL4vB6bJsZihk6tzMdNPExTnmiCC1LxzXlrcCimgrLQi0lQICKpW3lrv2uOsdV9qr0F5p0YJ1zFKEg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dIP6mzrMh5d2lbFgTjQPCBNIOgqbB5pbR1CxRSyic8tccoVXefLhSd9j33dzF1z3XJUDB+U2ZYFpb3591ksHIArJnYrSrrICes9uuqDQKpU7FRLrPilTlE3lvnRApGfRIpmzSOosSqcy9TfQrjv2Jn+jaYqyTds6g50tAbhm6JDmXAvmw6oMla8JsGEeC+bstYjl3QqVq6KqtxpEIRbCia5bdBWgFv7mwi0bJZs2Sjat2/1pvnGvwlb6Ve7mpWkr30iJXcb/gN8kLLYWq0fUiu4DKqYcYDVwIxOihyIsRIFQQQaRlU3lZBiynmtHX/WRKRLbJCpPRfnX5eozRxuHGg96alUe1QZlwtI969fs/2JRwUe6X1HdKHLIc+iwr85wgwTYGh6fEEI4/wVpOJSKpYHYQr6v3PMJIQcBFV6l9amtZ67XP+8fnx/v+6uPmXOwSME6+VZQm7Ni/wbdTbz+okbC7K/y1lZ4q4HEyiSWmr29bsdrqNkR/nW5rTo5ry2v6Upzo78RG8eJa6T6Ur12XLOlJglIjgF4ywBhbGN/BaIWa/P4R1AJKGP9DZifuyVrSi9xAAAAAElFTkSuQmCC" nextheight="985" nextwidth="1950" class="image-node embed"><p><em>Source: </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://coin360.com/"><em>https://coin360.com/</em></a></p><p>Blockchain applications are powerful because of their composability. After entering the multichain era, developers are exploring the possibilities of cross chains.</p><p>Developers start with the simplest case, transferring assets between different chains. CEX is the first tool to help people move assets between chains, but this is not an open and crypto native solution.</p><p>Now cross-chain bridges have iterated over several generations. Lots of competitors are polishing their products in this area. There are over <strong>80</strong> different bridge projects (data from <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://dezentralizedfinance.com/cross-chain-bridges/">DecentralizedFinance</a>).</p><img src="https://images.mirror-media.xyz/publication-images/xzhhvDT65nnVaVM-kq6Fd.png?height=683&amp;width=1717" alt="" title="null" class="image-node embed"><p><em>Source: </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://defillama.com/"><em>DefiLlama - DeFi Dashboard</em></a></p><div class="relative header-and-anchor"><h1 id="h-intuition-about-cross-chain">Intuition about Cross-chain</h1></div><p>The key idea of cross-chain bridges is passing some information from the source chain to the destination chain. It is a simple idea, but how to make it cheap, secure, and extensible is a big problem.</p><p>When stepping into cross-chain bridge protocol design, the two main issues for developers are:</p><ol><li><p><strong>How to effectively verify the cross-chain transactions?</strong></p></li><li><p><strong>How to judge the data consistency on target and destination chains?</strong></p></li></ol><p>For these two questions, developers have different answers and we will introduce several mainstream solutions.</p><div class="relative header-and-anchor"><h1 id="h-technical-design-of-cross-chain">Technical design of cross-chain</h1></div><p>Based on how developers verify cross-chain transactions, there are three main solutions:</p><ul><li><p><strong>Local Verification</strong></p></li><li><p><strong>External Verification</strong></p></li><li><p><strong>Native Verification</strong></p></li></ul><p>In the cross-chain protocol, there are mainly four steps:</p><ol><li><p><strong>Monitor</strong>: Monitor the state and smart contract function call in the source chain.</p></li><li><p><strong>Consensus</strong> (Optional): Relay nodes reach a consensus on the correctness of the relaying message.</p></li><li><p><strong>Signing</strong>: Relay nodes sign the message.</p></li><li><p><strong>Relay</strong>: Pass the message from the source chain to the destination chain.</p></li></ol><div class="relative header-and-anchor"><h2 id="h-local-verification">Local Verification</h2></div><img src="https://images.mirror-media.xyz/publication-images/vHnC7Dhc9_YHQ-K3326Df.png?height=577&amp;width=1280" alt="" title="null" class="image-node embed"><p>Hash Time Lock Contract (HTCL) is the most common method for local verification. The is one of the oldest solutions and the easiest one to implement.</p><p>Suppose Alice wants to send assets cross-chain to Bob. Alice generates a random number Ka and Bob generates a random number Kb. Alice sends hash(Ka) to Bob and Bob sends hash(Kb) to Alice. They use the received hash to lock their assets with an expiration time. After the lock expires, Alice and Bob can use the random number to unblock the assets.</p><p>HTCL is <strong>easy to implement</strong>, supports the <strong>atomic transaction</strong>, and, most important, it is <strong>trustless</strong>. It does have a few limitations. HTCL faces <strong>scalability issues</strong> because it is P2P. In real-life, users will be hard to transfer a large number of tokens to another chain, because the user cannot find his/her counterparty. Another problem is that it <strong>cannot support complex use cases like cross-chain messages.</strong></p><div class="relative header-and-anchor"><h2 id="h-external-verification">External Verification</h2></div><p>The cross-chain protocol relies on external relayers to pass messages from the source chain to the destination chain. To increase the decentralization, robustness, and safety, there is a relayer network to deliver the transactions. After reaching the consensus in the relayer network, the message will be passed to the destination chain. The whole relayer network performs like a multi-sig wallet.</p><p>The problem with this approach is decentralization and safety. The users need to trust the relayer network. The nodes in the relayer network are often bonded. However, the slashing condition is hard to calculate. Thus safety is not guaranteed.</p><img src="https://images.mirror-media.xyz/publication-images/cOnWB0WW1VvvDSPZbTvAD.png?height=705&amp;width=1280" alt="" title="null" class="image-node embed"><div class="relative header-and-anchor"><h2 id="h-native-verification">Native Verification</h2></div><p>In this model, there is a light client running on the destination chain which can validate and read events or states on the source chain. After the block headers and transactions relaying to the destination chain, the light client can verify the validity natively on the destination chain.</p><p>This approach is relatively safe and trustless. Users don’t need to trust the intermediary entities, because the light client can verify the validity. However, this approach costs a lot, especially running a light client on Ethereum. Also, it is development intensive. The cross-chain protocols need to build light clients for every supported chain.</p><img src="https://images.mirror-media.xyz/publication-images/zwsGNWAYIEiDRg7qA-L4b.png?height=705&amp;width=1280" alt="" title="null" class="image-node embed"><p>Most technique designs can fit into these three approaches. However, there are some novel approaches. ZKLink and ZKCross use a hub and ZKRU to achieve cross-chain function. Users deposit funds from the source chain to the ZKRU and withdraw the fund from ZKRU to the destination chain. This looks like a ZKRU with multiple base layers. The ZKRU node operators generate proofs for batches of txs and put them into ZKRU smart contracts on all these base layers. An oracle network will ensure data consistency among all ZKRU smart contracts on all these base layers.</p><img src="https://images.mirror-media.xyz/publication-images/Va9Mgo0FSSMm94A65BmZh.png?height=547&amp;width=1343" alt="" title="null" class="image-node embed"><p>Another approach is similar to Tornado Cash. The user makes a deposit on the source chain and generates ZK proofs. Then the user withdraws the token on the destination chain with his/her ZK proofs.</p><div class="relative header-and-anchor"><h1 id="h-functions-of-cross-chain-bridges">Functions of Cross-chain Bridges</h1></div><p>There are roughly four types of bridges:</p><ul><li><p><strong>Asset-specific</strong></p></li><li><p><strong>Chain-specific</strong></p></li><li><p><strong>Application-specific</strong></p></li><li><p><strong>Generalized</strong></p></li></ul><div class="relative header-and-anchor"><h2 id="h-asset-specific">Asset-specific</h2></div><p>This kind of bridge only helps specific assets to be used across all chains. This kind of bridge collects collateral on the source chain and proved wrapped assets on other chains.</p><p>Asset-specific bridge is easy to implement and has unlimited liquidity because the bridge mints wrapped tokens. One common example is most bridges for BTC. Users get the wrapped version, like WBTC on other chains.</p><div class="relative header-and-anchor"><h2 id="h-chain-specific">Chain-specific</h2></div><p>This kind of bridge is built to cross assets from one chain to the other. The bridge will lock tokens on one side and mint native or wrapped tokens on the other side. This kind of bridge is popular in the bridge ecosystem and it is meaningful for chains. For example, when Secret Network launches, it has multiple chain-specific bridges. Users can easily bridge assets from outside to Secret Network.</p><div class="relative header-and-anchor"><h2 id="h-application-specfic">Application-specfic</h2></div><p>This kind of bridge is designed for application expansion to multiple chains. With the application-specific bridge, the developer does not need to deploy the full dapp on every chain. Instead, the developer only deploys a light and modular adapter on each chain. However, it is hard to add more complex functions in the future. Examples are Compound chain and Thorchain.</p><div class="relative header-and-anchor"><h2 id="h-generalized">Generalized</h2></div><p>This kind of bridge can be used to deliver messages between chains. Dapps can use this kind of bridge for cross-chain communication purposes, like calling another smart contract on the other chain. Based on this cross-chain communication protocol, developers can increase the user experience in multi-chain scenarios. Staying on one chain, users can reach anything on other chains. Users will not feel the gap between chains.</p><p>LayerZero ignites the generalized bridges market. Some chain-specific bridges are implementing their own cross-chain communication protocols like Celer and Anyswap.</p><div class="relative header-and-anchor"><h1 id="h-bridge-evaluation">Bridge Evaluation</h1></div><p>Similar to the trilemma in blockchain, the cross-chain bridge also has its own trilemma. Most projects can only get two out of three.</p><ol><li><p>Unified liquidity: This means the bridge has only one pool on chain A. This one pool is tied to all the other chains.</p></li><li><p>Instantly guaranteed finality: Before the transaction resolves on the source chain, the cross-chain tx will resolve on the destination chain.</p></li><li><p>Native assets: The bridge mints native assets to users on the destination chain, not wrapped assets</p></li></ol><p>Besides the cross-chain bridge trilemma, there is interoperability trilemma:</p><ul><li><p>Trustless</p></li><li><p>Extensible</p></li><li><p>Generalizable</p></li></ul><p>Most solutions can only get two out of three.</p><ul><li><p>Local Verification = Trustless + Extensible</p></li><li><p>External Verification = Extensible + Generalizable</p></li><li><p>Native Verification = Trustless + Generalizable</p></li></ul><p>When reviewing cross-chain bridges, there are five important aspects:</p><ul><li><p>Security: What is the security assumption of the bridge. Do users need to trust anyone? If the fund is lost, what is the backup plan?</p></li><li><p>Speed: How long users will wait to get their funds on the destination chain.</p></li><li><p>Connectivity: How many different chains do the bridge support.</p></li><li><p>Capital efficiency: The efficiency of the liquidity and tx costs.</p></li><li><p>Statefulness: Ability to support cross-chain communication.</p></li></ul><div class="relative header-and-anchor"><h1 id="h-featured-bridges">Featured Bridges</h1></div><div class="relative header-and-anchor"><h2 id="h-multichain"><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://multichain.org/">Multichain</a></h2></div><p>Multichain is a generalized bridge with external validation. The SMPC network secures Multichain. Multichain has 32 running nodes with 0 stakings.</p><p>Multichain currently supports 44 chains, 2090 bridges, and $5.66B TVL. Multichain supports asset transfer, cross-chain communication, and NFT bridges.</p><p>For <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.multichain.org/developer-guide/anycall/how-to-integrate-cross-chain-anycall-contract">cross-chain communication</a>, the developer needs to implement the following two interfaces:</p><p><code>function anyCall(address _to, bytes calldata _data, address _fallback, uint256 _toChainID) function anyExec(address _from, address _to, bytes calldata _data, address _fallback, uint256 _fromChainID)</code></p><p>Currently, the anyCall is permissioned. Developers need to contact the Multichain team to whitelist their contracts and deposit some fees in the destination contract. It has poor functionality and docs compared to other competitors.</p><div class="relative header-and-anchor"><h2 id="h-cbridge"><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://cbridge.celer.network/">cBridge</a></h2></div><p>cBridge is developed by Celer. cBridge is a generalized bridge with external validation. The State Guardian Network (SGN) secures cBridge. There are a total of 18 validators and 1.2B $CELR staked, around $36M to secure $700M TVL. If there are any security problems, the staked $CELR in SGN will be slashed.</p><img src="https://images.mirror-media.xyz/publication-images/59xLOdjaCjQ3iIsRtg7Hm.png?height=1013&amp;width=1950" alt="" title="null" class="image-node embed"><p><em>Source: </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://cbridge-docs.celer.network/introduction/sgn-and-cbridge/the-sgn-as-a-cbridge-node-gateway-and-service-level-agreement-sla-arbitrator"><em>The SGN as a cBridge node gateway and Service Level Agreement (SLA) arbitrator - Celer cBridge</em></a></p><p>cBridge has $45M daily transaction volume and 3k daily txs. It has $700M TVL across 28 chains.</p><p>Besides transferring fungible tokens, cBridge also supports NFT cross-chain transfer in two ways:</p><ol><li><p>Wrapped NFT</p></li><li><p>Native NFT</p></li></ol><p>For wrapped NFT, cBridge will lock the original NFT and mint a wrapped version on the destination chain. However, for native NFT, cBridge will burn the original NFT on the source chain and mint a new one on the destination chain.</p><p>Only NFT following this <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/celer-network/nft-bridge-contracts/blob/main/contracts/MCNNFT.sol">template</a> can be used as native NFT.</p><p>cBridge also offers <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://cbridge-docs.celer.network/developer/cbridge-sdk">SDK</a> for developers. Developers only need to care about two steps:</p><ol><li><p>Get quote.</p></li><li><p>Send transactions onchain.</p></li></ol><p>Besides cross-chain assets, Celer supports <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://im-docs.celer.network/developer/celer-im-overview">cross-chain communication</a>. The whole workflow with token transfer looks like the following diagram:</p><img src="https://images.mirror-media.xyz/publication-images/V00Z4LqIDGGiI6zIB3YE6.png?height=882&amp;width=1600" alt="" title="null" class="image-node embed"><p><em>Source: </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://im-docs.celer.network/developer/celer-im-design-patterns"><em>Celer IM Design Patterns - Celer Inter-chain Message (IM)</em></a></p><p>The token transfer will go through cBridge and the message will go through SGN and executor.</p><p>Similar to LayerZero, the developer only needs to add <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/celer-network/sgn-v2-contracts/blob/main/contracts/message/framework/MessageSenderApp.sol">two functions</a> to the smart contract. Compared to LayerZero, Celer additionally supports token transfer.</p><p><code>// Send message MessageSenderLib.sendMessageWithTransfer() MessageSenderLib.sendTokenTransfer() // Receive message executeMessageWithTransfer</code></p><div class="relative header-and-anchor"><h2 id="h-layerzero"><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://layerzero.network/">LayerZero</a></h2></div><p>My colleague Iris wrote a dedicated report for LayerZero.</p><p>In short, LayerZero mixes native verification and external verification to achieve a generalized function bridge supporting cross-chain communication.</p><p>LayerZero is especially easy to use for developers. Developers only need to implement two functions:</p><p><code>function send( uint16 _dstChainId, bytes calldata _dstContractAddress, bytes calldata _payload, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams ) external payable; function lzReceive( uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload ) external;</code></p><p>LayerZero has an active community. The LayerZero team implemented Stargate, a cross-chain asset bridge on top of the LayerZero protocol. The community implemented <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://catddle.medium.com/erc721o-e6c9a0ae09e1">ERC-721O</a> for the NFT cross-chain.</p><div class="relative header-and-anchor"><h2 id="h-chainport"><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.chainport.io/">ChainPort</a></h2></div><p>ChainPort is an external verification, chain-specific bridge. It supports 7 chains and has a $208M TVL. The settlement time is around 2.5 minutes. Listing new tokens on ChainPort is permissionless. In the future, ChainPort will release insurance and use ML to detect unusual activities.</p><p>Developers can integrate ChainPort into their smart contracts with the following functions:</p><p><code>function depositTokens( address token, uint256 amount, unit256 networkId ) function burnTokens( address bridgeToken, uint256 amount ) function crossChainTransfer( address bridgeToken, uint256 amount, uint256 networkId )</code></p><div class="relative header-and-anchor"><h2 id="h-nil-foundation"><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://blog.nil.foundation/">Nil Foundation</a></h2></div><p>Nil Foundation recently released one <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://verify.mina.nil.foundation/walkthrough/index.html">Demo</a>, verifying Mina states on Polygon and Ethereum.</p><p>In one word, this infra allows smart contracts on Polygon or Ethereum to verify the validity of Mina state. With this infra, smart contracts have the ability to recognize invalid cross-chain tx.</p><p>This infra can generate Mina state proof and smart contracts on Polygon and Ethereum can verify the proof onchain. In the future, cross-chain apps can directly verify the cross-chain tx validity with this infra. For example, apps can use this infra to verify the tx validity passing from the relayers. We are moving from using game theory to math to ensure the validity of cross-chain tx.</p><p>In the demo, it takes around 1 min to generate the proof and costs 2.5m gas to verify it. If the gas price is 80, this costs 0.5 ETH for verification on Ethereum.</p><p>We can use this infra to build a bridge from Mina to Ethereum with the following steps:</p><ol><li><p>The bridge locks $MINA on Mina.</p></li><li><p>The infra generates Mina state proof.</p></li><li><p>The infra put Mina state proof it onto Ethereum.</p></li><li><p>Ethereum checks if the state proof is valid.</p></li><li><p>Ethereum accepts and stores the proof in case it is valid and rejects otherwise.</p></li><li><p>The bridge checks the state and releases WMINA on Ethereum.</p></li></ol><p>In the future, more EVM chains will be able to verify the Mina state proofs onchain. However, it is not feasible to generate Ethereum state proofs and verify on the Mina onchain.</p><div class="relative header-and-anchor"><h1 id="h-cross-bridge-ecosystem">Cross-bridge Ecosystem</h1></div><div class="relative header-and-anchor"><h2 id="h-lifi"><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://li.fi/">LI.FI</a></h2></div><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://LI.FI">LI.FI</a> is a developer-friendly aggregator for cross-chain bridges and DEXs. Users can exchange one token on the source chain for another token on the destination chain. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://LI.FI">LI.FI</a> now supports Connext, Hop, cBridge, Multichain, Hyphen, Optimism, Polygon, Arbitrum, and Avalanche cross-chain bridges. For exchanges, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://LI.FI">LI.FI</a> supports Parawap, 1inch, 0x, Dodo, Uniswap, Sushiswap, Quickswap, Honeyswap, Pancakeswap, Spookyswap, Spiritswap, Solarbeam, Beamswap, and ubeswap.</p><p>Based on <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://LI.FI">LI.FI</a> SDK, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://LI.FI">LI.FI</a> team implements transferto.xyz. Users can customize slippage, which bridge, and DEX to use. Users can find lots of mainstream tokens on transferto.xyz.</p><p>For developers, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://LI.FI">LI.FI</a> provides different ways to integrate <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://LI.FI">LI.FI</a>. If developers don’t need any customizations, developers can use <code>iframe</code> to integrate the trading widget in 5 minutes. Besides <code>iframe</code>, developers can use Node.js API to send cross-chain transactions.</p><img src="https://images.mirror-media.xyz/publication-images/iUXR_AlFU85Vkm91Z6V72.png?height=543&amp;width=1263" alt="" title="null" class="image-node embed"><p><em>Source: LI.FI</em></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://li.fi/">LI.FI</a> has over $250M daily swapped and 186 daily transactions.</p><div class="relative header-and-anchor"><h1 id="h-tokenomics">Tokenomics</h1></div><p>Most tokens in the cross-chain bridge are used as governance tokens. Few tokens can be staked to share the whole protocol revenue. These tokens are also used to incentivize the liquidity providers as mining rewards. Plus, the rewards are used to rebalance the liquidity pool, guiding the liquidity to the appropriate pool.</p><p>XY Finance, a cross-chain bridge, raises $12m, but its ATH market cap is $8m. Now its market cap is $3m. In most cases, we can treat cross-chain bridge tokens like DEX tokens, which always perform badly because of the emission. Developers are still looking for specialized scenarios for cross-chain tokens. As investors, we need to be cautious about the cross-chain bridge tokenomics.</p><img src="https://images.mirror-media.xyz/publication-images/g7R7kdnW641cpRmSg_f5L.png?height=816&amp;width=1068" alt="" title="null" class="image-node embed"><p><em>Source: coingecko</em></p><div class="relative header-and-anchor"><h1 id="h-security-risks">Security Risks</h1></div><img src="https://images.mirror-media.xyz/publication-images/Z2bQRf0K3sGLAY1pYZfn5.png?height=506&amp;width=523" alt="" title="null" class="image-node embed"><p>In one year, the total loss of bridge in hack events is around $1.2B. The fee for the bridge is around 5‱. Multi is the big player in the cross-chain bridge. Thirty days volume for Multi is $5B. One year is around $70B volume with $35M fee. It is certain that the whole revenue of the cross-chain bridge market is still less than the loss fund.</p><p>It is hard for cross-chain bridges to stay safe. After reviewing major security issues in these hack events, we found that these issues are all different. Hackers are able to find problems in different parts of the system.</p><p>In the Polynetwork hack, the hacker utilized privilege-related vulnerabilities:</p><ol><li><p>The executer contract doesn’t check the input. The executer contract executes arbitrary cross-chain transactions without verification.</p></li><li><p>The executer contract has the privilege to change the keeper role, which is crucial to the whole system.</p></li></ol><p>The hacker passed the cross-chain transaction which changes the keeper role. Although the hacker didn’t have the permission to change the keeper role, the privileged executer contract helped the hacker to do this. Thus the hacker successfully stole $6B funds.</p><p>After the Polynetwork hack, developers remove any privileges of the executer contract and add whitelists for the allowed cross-chain transactions.</p><p>In Ronin cross-chain bridge hack, the hacker stole the private keys of admins by hacking the RPC server.</p><p>Hackers are discovering different attacking vectors. We don’t know what will be the next security issues of cross-chain bridges. Cross-chain bridges are complex. Thus it is hard to keep them safe. Besides, there are no standards for cross-chain bridges. Developers are implementing their own bridges with their own ideas. It is similar to developers making tokens without using ERC20 library from Openzeppelin. If there is a safe and easy-to-use cross-chain library, the cross-chain bridges will be much more secure.</p><div class="relative header-and-anchor"><h1 id="h-wrap-up">Wrap Up</h1></div><p>There are generally three kinds of technique approaches:</p><ul><li><p>Local Verification</p></li><li><p>External Verification</p></li><li><p>Native Verification</p></li></ul><p>Cross-chain bridges have four functions:</p><ul><li><p>Asset-specific</p></li><li><p>Chain-specific</p></li><li><p>Application-specific</p></li><li><p>Generalized</p></li></ul><p>When reviewing a bridge, we care about the following characteristics:</p><ul><li><p>Capital efficiency</p></li><li><p>Connectivity</p></li><li><p>Security</p><ul><li><p>Trustless</p></li><li><p>Insured</p></li><li><p>Trusted</p></li></ul></li><li><p>Speed</p></li><li><p>Statefulness</p></li></ul><p>There are lots of players in the cross-chain bridge markets. New players face fierce competition, security risks, and need to collect enough TVL. Following are opportunities in this area:</p><ul><li><p><strong>Bridges between layer2s, bridges between layer2 and layer1</strong>: There are not as many players in this market as players in the cross-chain bridge markets. This market is still early. In the future, we expect transactions in layer1 to move to layer2. This means more protocol revenues for protocols in this market.</p></li><li><p><strong>Bridges with new tokenomics</strong>: Nobody knows how to use tokens appropriately in the cross-chain bridge. Most tokens are used as governance tokens and secure the whole network. We often see TVL increases, but the token price decreases. The token price does not reflect the progress of the project.</p></li><li><p><strong>Bridge SDK</strong>: A toolkit or standard for building bridges. Developers can quickly construct their own bridges to extend their applications over more chains. Multichain is the future. With this toolkit, developers can expand to new chains fast and secure.</p></li><li><p><strong>Bridge Aggregator</strong>: The aggregator connects with multiple bridges and offers better UX and lower fees. The DeFi market proves the necessity of aggregators. After DEXs, lots of aggregators join the market. This will happen again in the cross-chain bridges market.</p></li><li><p><strong>ZK Bridge</strong>: ZK bridges can offer a better, cheaper, and safer cross-chain experience. Developers can easily build apps on top of the ZK bridge. Nil Foundation made significant progress in Solana and Mina, but it is hard to expand to other chains.</p></li></ul><div class="relative header-and-anchor"><h1 id="h-find-us">Find us</h1></div><p>You can find more cross-chain bridges on <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://dezentralizedfinance.com/cross-chain-bridges/">decentralized finance</a>.</p><p>I am the tech associate in Fundamental Labs. You can find me on <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/glazecl">Twitter</a> and find <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/FundamentalLabs">FL</a> here.</p><p>If you like this report, feel free to like and share this report with your friends. This helps us a lot.</p><div class="relative header-and-anchor"><h1 id="h-reference">Reference</h1></div><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://antiape.substack.com/p/whats-wrong-with-bridges-and-whats?s=w">What&apos;s wrong with bridges？ - The Anti-Ape (substack.com)</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/1kxnetwork/blockchain-bridges-5db6afac44f8">Blockchain Bridges: Building Networks of Cryptonetworks | 1kxnetwork (medium.com)</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/LayerZero-Labs-Building-the-Future-of-Cross-chain-and-Solving-the-Bridging-Trilemma-with-Stargate-0611047aa56e4d768c3bc23c62bb4b89">LayerZero Labs: Building the Future of Cross-chain and Solving the Bridging Trilemma with Stargate (notion.site)</a></p>]]></content:encoded>
            <author>inevitable@newsletter.paragraph.com (Inevitable)</author>
            <enclosure url="https://storage.googleapis.com/papyrus_images/d159b6156c84bc82880ca327f213c4cf.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[万字硬核解读：ZK 为什么重要？]]></title>
            <link>https://paragraph.com/@inevitable/万字硬核解读：zk-为什么重要？-1</link>
            <guid>3sKbmDs9G6EX2E6GHWYc</guid>
            <pubDate>Mon, 25 Apr 2022 03:18:27 GMT</pubDate>
            <description><![CDATA[作者：Glaze & Fundamental Labs 研究团队如果你喜欢这篇研报，欢迎点赞收藏，分享给感兴趣的朋友。这对我们有很大帮助。TL;DRZK 的前景是美好的，它可以让一些过去不可能的事情变成现实。近年来，ZK 领域发生了很多突破性的进展，例如更强的性能、可升级性...]]></description>
            <content:encoded><![CDATA[<p><em>作者：</em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/glazecl"><em>Glaze</em></a><em> &amp; Fundamental Labs 研究团队</em></p><p><em>如果你喜欢这篇研报，欢迎点赞收藏，分享给感兴趣的朋友。这对我们有很大帮助。</em></p><div class="relative header-and-anchor"><h1 id="h-tldr">TL;DR</h1></div><p>ZK 的前景是美好的，它可以让一些过去不可能的事情变成现实。近年来，ZK 领域发生了很多突破性的进展，例如更强的性能、可升级性和不需要信任初始化。这些改进都将 ZK 推向了应用阶段。因此，如果我们要看到一个新的 ZK 证明系统，我们可以从以下维度进行评判：</p><ul><li><p>一笔交易和十笔交易的证明时间</p></li><li><p>一笔交易和十笔交易的验证时间</p></li><li><p>一笔交易和十笔交易打包后的证明大小</p></li><li><p>可信初始化</p></li><li><p>参考字符串长度</p></li><li><p>CRS 支持</p></li><li><p>SRS 支持</p></li><li><p>递归证明支持</p></li><li><p>能否抵抗量子计算机</p></li><li><p>安全性基于任何密码学假设</p></li></ul><p>ZKEVM 是 ZKRU 的下一个里程碑，ZKEVM 有三个阶段：</p><ul><li><p>共识级</p></li><li><p>字节码级</p></li><li><p>语言级</p></li></ul><p>ZKRU 刚刚进入应用阶段，生态并不完善。开发者们还没有发掘出 ZK 的所有潜力。人们仍不断从这些前沿理论中得到启发，以下是值得关注的方向：</p><ul><li><p>充分利用高 TPS 和低手续费的应用程序</p></li><li><p>Layer2 之间的通信协议/应用程序</p></li><li><p>聚合流动性</p></li><li><p>开发工具/框架</p></li><li><p>基于云的开发工具</p></li><li><p>具有独特功能的跨 Layer2 Layer1 应用程序</p></li><li><p>不同的 ZKVM</p></li><li><p>ZK 桥</p></li><li><p>在其他链上应用 ZK</p></li><li><p>拥有递归功能的 Layer2</p></li><li><p>ZK 在 DAO 和社区治理中的应用</p></li><li><p>商业化 ZK 算法</p></li><li><p>芯片和云计算</p></li></ul><p>ZK 的应用聚焦在两个方面：Rollup 和隐私。Rollup 比隐私有更好的前景。隐私在某种程度上和区块链的开放精神相违背。另外，隐私可能有合规问题。在 Web2 时代，我们没有看到隐私应用程序达到龙头的位置。所有应用的隐私保护水平在不断提高，但龙头应用往往不是主打隐私的引用，而是易用性最强的应用。隐私是有代价的，大多数情况下牺牲了用户最关心的易用性。</p><p>当我们看 ZK 隐私项目时，以下几点较为重要：</p><ul><li><p>ZK 只是技术，我们要专注产品力和团队</p></li><li><p>ZK 是个复杂的技术，会拖慢开发进度</p></li><li><p>ZK 有利于 DAO 治理和身份认证</p></li><li><p>ZK 是机构上链的必备技术</p></li></ul><div class="relative header-and-anchor"><h1 id="h-">直觉</h1></div><p><strong>一句话介绍 ZK（Zero Knowledge Proof）：证明者（Prover）说服验证者（Verifier）相信某些声明是真的，但除了声明是真的之外，验证者没有获得其他信息。</strong></p><p>ZK 是为匿名而设计的。试想我们可以证明我们的身份证号码是有效的，但是验证者并不能获得我们的身份证号码。这在信息过度索取的今天，具有重大意义。</p><p>让我们来看一个更加生动的例子。小明和小红在玩数独。小红想向小明证明她找到了数独的答案，但同时又不透露这个答案，因为小明还没解出这个数独。你将如何设计这个证明？</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/7f7e761af03faaf4760843146f9177bb.png" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAgCAIAAACHPC9vAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFkElEQVR4nH1WcWzUZBT/+FMSYxhR+YOEECFGQCRGRZmIaBzDBMjQqBMmUdgwsmRmuHkxbEoyGHFs5JJGO7t1NnQrrKMX69UcntyWwrE5uo1xUJPCwYCTk3Vp1o1vFHrjmd43j9tYfH80zX2vv3u/937vvQ+xLCtJEsdxLRz3azDIsqwgCLW1tTRNC4LAMIwgCLIsMwzD8/z+/ft5nuc4jmVZnufJk6KoSCSCBEGoqPhK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ys8ebR2VlZYIgsGxzU3rsUxQlCEJRUVF1dTXP836/PxAISJJEURTLsgUFBTRN/8R4JggCTdOiKFIURdP0w6a9GLuwcOHCW8nhbGp4etOKonjqj3B+/rsAMHfuYz/8SD9s2gxQn9aLEDrXP0gGWwbITZvjOBMYy7JcX1f30suryaaoOXgIAGKx2LTBNj42ZprmrMp2/hMxy7JJz/4hg3CasklEpHEAYPzOHULtxvXrTY2Nt4dHBvq0YFCZwLiysnLfvqoZTfv7yZNV1dWhUGgmUKZFTqtdCKH+C/qJ4/zGTQUADxBCy5avID4Z/59bmhFC7e0d3jrKPsusI13Xg8Hg7eHhPq2XphsBQJblw/X12cvGdd2/E4na2lpR7Jg2/B/VkW3bZEeTL7O7PxqNxuNxjLGqqp6ORFF8lBop/2QqBQDr31xL9toExkTZJEG5uWsam5oJNY47OnuOsluk/MuyN9atnzEhAeBwXZ1tj6ldkSVLlp6QAqihoYFcUziO43meYRhRFH0+n9/vJ9caWZZ/UxRyrSkrK8tcawKBQEtLiyiKPM/Lsvwv/FQBefFUt98AAAAASUVORK5CYII=" nextheight="567" nextwidth="428" class="image-node embed"></figure><p>我们把数独写到卡片上。每张卡片上有一个数字。将他们按照答案排列好，正面朝下。小明可以随机选择一列，一行或者一块。小红将拿出小明所选择的那些卡片，随机打乱后，将这些卡牌翻过来，正面朝上。如果这些卡牌是不重复的 1-9，那么小明知道小红解出了数独的某一部分，但也或许是运气。重复以上步骤，如果每次都是正确的。那么就几乎不可能是小红运气好，而是小红真的知道答案。虽然小明得知小红解出了数独，但是小明仍旧不知道数独的答案。</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/dca7df7393b9fae6a9a54509a3c3b1e6.png" alt="" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAPCAIAAAAK4lpAAAAACXBIWXMAAAsTAAALEwEAmpwYAAACvElEQVR4nKWUQWvbMBSAc+lf6J/oLwr0NIKhhIIJoZcSAl1mDMNgfPDqi3swwjuYQJYFDMLxEMHolHmmxkVLCYESMIaQ1TWGINCI1SVlpayj30G8i97He3pPNVZBX4a9jdob779KUJal67qe5/m+jxCqgm+TyQRCeHd3x+v7dybGNpvN8+q3gizLer334/F4Op3GcQwhjOM4z3O/4vWCFytYrVaqqjLG5vN5FEW+7/+IIsZYFEUIIS4oy3K1Wq2fURQFT0QpdRzH930Ioed5w+EQIbTZbLaC5XLpui7G2LKs+/tfaZouFovr+BohNJlM+P1ut1uv1wVBaDQa7yp4IIrier3m/ZEkyXEctUKSJFVVy7J8bJEkSfP5PAxDQojnjWezWZZlV1dXnudxwfn5ebPZbLfboii2K1qtFj/TNOUCwzAGgwEAwHEc0zT7/f5jBVmWKYrCGJvNZklyQwiJ45gx1u/3d4JOp3NyctKtODs7E0Wx2+1yHyFkNBqFYdjpdAzDUBRFVVVZlk3T3FegaRpj7CchhNzc3t5ygW1/3gmOj49rFUdHRzw4ODg4PT1ttVqu6/Z6PQihJEmmaRoVPC6KYitI0/Ty0+VisYiiiBCCEEqSJMsy0zSDIOACQRB4Up798PCwVqvV6/Vms5llGW+RLMsAAF3XLcvSNA0AQCndP3KSJISQh/xhvV7zJRgMBhBCLuAThTEOguDi4sKyrDAMIYQY493Uy7Js27aiKB8rdF1/rGC5XPJWJEkynX7HGH8ZDimlvj+WJOnpHvBAURQufroflFJFURzH0TTNMAxd123b3o8pACBNU4wxQggAEIYhY8xxnF7vQ5qmEELf970KCKFlWXme736wvzb56bn/KiCEQRDwLKPRV4yxYRiCIGiaVhRFHMfb5/8DH/z/2OTnUErzPC+K4u2/6W/0u6PtAufeSgAAAABJRU5ErkJggg==" nextheight="423" nextwidth="911" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>如果你还是有点疑惑，欢迎观看这个<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/watch?v=fOGdb1CTu5c">视频</a>。UCLA 的计算机教授将以 5 种难度形式，解释什么是 ZK。</p><div class="relative header-and-anchor"><h1 id="h-">常见零知识证明流派</h1></div><p>在介绍零知识证明流派之前，大家要注意我们常说的 ZK-SNARK 不是一种算法，而是一种流派。ZK-STARK 是一种具体零知识算法的名字。</p><p>我们最常见的可能是 ZK-SNARK。SNARK 的缩写是 succinct non-interactive arguments of knowledge。SNARK 最特殊的点在于他的 N，非交互性。</p><ul><li><p><strong>简洁性</strong>（Succinct）：验证所需要的计算资源远远小于重新跑一遍需要证明的程序。</p></li><li><p><strong>非交互性</strong>（Non-interactive）：证明者和验证者不需要每一轮都沟通。他们只需要在一开始完成可信初始化（Trust Setup）。其他验证者也可以在可信初始化之后加入验证。</p></li><li><p><strong>Argument</strong>：如果证明者有着无比强大的算力，那么他可以生成假证明。如果这种情况发生，主流的公私钥加密模式也不再安全。</p></li><li><p><strong>知识</strong>（Knowledge）：证明者需要知道一些其他人不知道的秘密，才能生成证明。</p></li></ul><p><strong>ZK-SNARK 最大的问题在于它需要可信初始化（Truest Setup）</strong>。可信初始化会生成参考字符串（Reference String）。如果 RS 被泄露，那么任何人都可以生成虚假证明。此外，如何设计多人参与的可信初始化也很具有挑战性。RS 还只能被用于指定的程序。对于其他的程序，我们需要另外的可信初始化。因此 ZK-SNARK 不可能用于通用计算。另外一点，RS 不能升级。如果我们升级了程序，可信初始化要重新运行。</p><p>为了解决这一系列的问题，科学家们找到了两个方向：</p><ul><li><p><strong>Transparent Setup</strong>：可信初始化生成公共参考字符串（Common Reference String）。CRS 是公开的，不需要保密。Fractal，Halo，ZK-STARK，SuperSonic 都是采取了这一条路线。这一条路线的问题是生成的证明占用太多的存储，来到了 kB 的量级。对于区块链来说，存储是非常昂贵的。</p></li><li><p><strong>Universal Setup</strong>：可信初始化生成了结构化参考字符串（Structure Reference String），但它需要保密。SRS 让可信初始化可以用于不同的程序，这让通用计算的证明可能实现。Marlink，SuperSonic-RSA 和 Plonk 都采用了这条路线。</p></li></ul><p>业界广泛采用以下几种算法：</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2016/260">Groth16</a>：Zcash 一开始使用了这种算法。它是零知识证明中的跑分对照组，因为它具有证明快，生成的证明小的特点。它的缺点是需要可信初始化，并且一次可信初始化只能针对一个程序。它拥有最完善的工具链。</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2019/099">Sonic</a>：支持 Universal Setup. SRS 的大小和程序大小成线性关系。生成的证明是固定大小，但是验证需要消耗很多的计算资源。Sonic 让通用计算的零知识证明变为可能。</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2019/1076">Fractal</a>：支持递归（Recursion）。生成的证明占用较多空间。</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2019/1021">Halo</a>： 支持递归，但并不满足简洁性（Succinct）因为证明时间是非线性的。Halo2 是目前主流使用的证明系统。</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2019/1229">SuperSonic</a>：第一个实际的，可以应用的 Transparent ZK-SNARK。</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2019/1047">Marlin</a>：程序可以升级。性能处于 Sonic 和 Groth16 之间。</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2019/953">Plonk</a>：程序可以升级；参与者按照顺序加入可信初始化。这让进行有很多人参与的可信初始化不那么复杂；Plonk 使用 <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://hackmd.io/@tompocock/Hk2A7BD6U">Kate commitments</a> 而不是多项式承诺（ZK-SNARK 的第一步是将计算问题转化为多项式问题）。许多现代化的零知识证明系统都构建与 Plonk 之上。Plonk 有着非常优秀的工具链。</p></li></ul><p>如果你想挑几个算法仔细研究，Groth16，Halo，Plonk 是最好的选择。</p><p>CRS 是 Transparent Setup 路线中生成的公共参考字符串。SRS 是 Universal Setup 路线中生成的结构参考字符串。证明的大小将决定要占用 Layer1 多少的存储空间。证明和验证的时间决定了计算资源的消耗。</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/13d8e4bfee717b73251757c5752b249b.png" alt="Source: Comparing General Purpose zk-SNARKs" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAALCAIAAACRcxhWAAAACXBIWXMAAAsTAAALEwEAmpwYAAADjElEQVR4nFWRa2/aVhjHjQhClMGUK5TQrAppm7bSuhfTJm3TXm7SXm3SvsQmbcmSgg3FpLmoL7akY0rKKpVtH2Dq51hGRJJijCNfINhNUjC+YJtjfIPJZJ26nx4d6TzX85w/VCz+troKpzMoks4g6QdIOpPJomkkgyAZGE5nsmg+/wuK5mA4jYycmcvMUTSZgpMp+P791ObWox9/2obhdCqFJGHXmUohy8srOzuPoc8+/wJyGYMgz8igQHA8EBz3+UO+QNjrC8bn5v2BMOS54vOHvL5wMDQBefwQNOYPhCPR2Ug0NjUdmZ6Jxeeue72BiYnI1HQ0Ep2Nxd95eyLywYcfQV9+9bXXF5iJxMLjM5NTV0PhSf+oLwSNTU5Hb9y6O5+4eefuvauxax5vwOsLzkRi8bn5SDQ+n7iZWFhcuHE7sbDo84c83rf8gXBiYfHee+8nErdu33l39tr1jz/5FPrz+fMnhcLTZ8Xdvb18fnd3dy+D5lB0LZvNobmHm1uPNja2VlaSS0s/fL+0/M23361vbBZ//+Pps2Kh8Kv7JzCCpB/k1tbXHq5nc2vbP+f3nhQyWTQFI8urye2dx5CmaaZlOY4zfA0AwDTNwWBg25YzcBzHOXt5xtTrr1qvBEFQVXX4f/q6blmWY9s6AG/2GQ6HhmFAHMtVMKzTEQzDVFVN1/vNJlsqlWmmjlfxWu2E54V6vXF4eNjpiI7jtNt8u81LktxqtTsdoa9bHPeyUsHwGrH/198se6brfUVRVVVTVU2SZEiSuoraEwS53RY0rQ+A1e32LMu2bcc0LdNyADBeVKoHpfLRESYISqPOlg7KGEbs75eOj7E2LypKzzTdHQCwNK1vGJauu2YYlqr2IJpmKhhB1KhGgzMMy7GHsqyIouKWXaYCiyDIavWEohiWPWfZ83L5RbV6wnLnNN2g6YaqAgDcdprW53lREhVJUsXRKXTE0YAKRpGUJHXbbV4UZYqiDw7KR0fHPC/qel/TejTNyLLiLmRaLHtWqVR5XjDNf58pSV0AdAB0We7iOFGpVHG8hmE4jtdIkoJYtkkzLjRNUTR1enp6QhAMTddqtRpBGIYBANBcbVwlL3UbvMZxnMFwAEZcXk3THA6Ho+B/InMcSZIcx1kjBoPBxcUFRVEMzTSbTYqmSJJkGOaEJBVFtW1b09xh5gjDMGzbbrVaOI7LsmyapqZpxhsAAP4BP5DeCFPosdwAAAAASUVORK5CYII=" nextheight="487" nextwidth="1414" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>下图是零知识证明算法的 Benchmark，基于这个<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/coinmonks/comparing-general-purpose-zk-snarks-51ce124c60bd">实验</a>。</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/84927c30494e215c87df1ac5d071d02b.png" alt="Source: Comparing General Purpose zk-SNARKs" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAXCAIAAADlZ9q2AAAACXBIWXMAAAsTAAALEwEAmpwYAAAF3UlEQVR4nGVV624bxxUeI7GdNFJstWlRtEFb1IEoyRJ1sezEdZwiDxC0RRxDknVxHBQI+gJBf7R9gSboa6QPkR8FjBAS6ZiKeNmIpKhdkXubnRnNdblDcovdiVnHPTg/zp79FsM55/s+gs+/+NeH9z7a2f14e3vX5NaD3b29h5ubW3nxaCMvtnf2tnf27m9s7j18tL29e//+982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WGw5FSsVIxQhjCiHNhHg2MEMoYw5hIKTmXSimEsvGaISuVZCNCCJXL5VKpZNu2UUccx1EUlUolzrmRT5qmjDHLsmzb1lobmNbatu1Wq9Vo1NvttuM4Blar1crlcqPRSNOUc57RNI4HSsWcS0ozbkGIMD5PEm2YR/MMAmh4bJqMZR3GhBBKylgIxbk0In3GeJWLFGc7qFSqlUrVdcMkGcex5jw+OXG+/nq/2z0bDlOlEq1T34fl8tOjoyZCdALrds8ODr6p1616vYkx1zoNgmh/v3xw8E21elgqHTCWWUWE0LkRiBDZsRCiKMJhGOU8VIQwcwMIEYSI82zcRnrGKhAi+aU5pcL3ockggJ4XZjfAGNu24ziOZVlBEBgXc13X9/1Wq4UxNmsgJPPUMAxt22aMGSNjjDmO4+Wh8zBrM6Ibj8fZDjDG3W73NA+EkDFOc0C73TZa01oTQvw8Tk9PKaXmY+PEvu87jqOU0lozxsxJk/OyEeVTwhCi09OzKMIInUOIfR9inDEdIZorKBuREEqpmDHJmAxDlH+YzSd3HklIpoMJLyjNnDhbcqlUsaxWpVL96qv/uG4oZdLvh/v7lUbDevy4RIgYDrPtPXlSJUQatZslG9E2Gt8ZOkiZuYChwDM3ZYCQTGXGOPMl8yjKZCJExlpDPkJYFGFKhamf67D8t3PTyf8A8ASA8Tnn/L/OE+5TgD6AnAAAAABJRU5ErkJggg==" nextheight="632" nextwidth="875" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>以下有更多的 Benchmark 和算法对比：</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/sikoba-network/benchmarking-zero-knowledge-proofs-with-isekai-64e60cb89f42">Benchmarking Zero-Knowledge proofs with isekai | by Guillaume Drevon | Sikoba Network | Medium</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://consensys.net/blog/blockchain-explained/zero-knowledge-proofs-starks-vs-snarks/">Zero-Knowledge Proofs: STARKs vs SNARKs | ConsenSys</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.zkproof.org/pages/standards/accepted-workshop3/proposal-benchmarking.pdf">Community Proposal: A Benchmarking Framework for (Zero-Knowledge) Proof Systems (zkproof.org)</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zhuanlan.zhihu.com/p/40245832">Comparison of Different zk-SNARKs</a></p></li></ul><p>总结以下，当我们看到一个新的 ZK 算法时候，以下指标是我们需要在意的：</p><ul><li><p>一笔交易和十笔交易的证明时间</p></li><li><p>一笔交易和十笔交易的验证时间</p></li><li><p>一笔交易和十笔交易打包后的证明大小</p></li><li><p>可信初始化</p></li><li><p>参考字符串长度</p></li><li><p>CRS 支持</p></li><li><p>SRS 支持</p></li><li><p>递归证明支持</p></li><li><p>能否抵抗量子计算机</p></li><li><p>安全性基于任何密码学假设</p></li></ul><p>ZK 在最近几年走出实验室，逐渐步入应用。<strong>ZK 两个主要应用方向是 Rollup 和隐私</strong>。<strong>ZK 对于隐私产品的变革是显而易见的，得益于 ZK 可以让验证者不获得任何额外信息。Rollup 依赖于 ZK 的两大特性：简洁（Succinct）和递归（Recursion）。简明的特性有助于验证者节省大量的计算资源。验证者不需要重新运行整个程序。递归特性有助于节省存储空间。通过递归，区块链可以保持一个固定的大小。这也有利于去中心化，因为这样的区块链节点在什么样的硬件上都可以跑起来。</strong></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/55964e1161a3411d10c11fc9b2a7ea70.png" alt="" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAWCAIAAAAuOwkTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFq0lEQVR4nJVVW0wUVxie1qemiTzw1DaNxlQffGusFlsa25qmVhO8sdpSiQglVBIbKk2bXmJLRWNiQrFCtKzpGnjYdRsDRdiCwC4sl7Ii67Kssg6zOwszsMzO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kRBIPAinQ63TU1l0fC9wYDw2R0nIyNZ+zbbplS8VcnlpcQMU5Rx0+W5ZcUV9VcBAAihE0PQNazbCb62X6NeP6ld9/ZSd6nFQVKkmSWztDx4e7cFUPck3OEnmTXvplVUf1rc6dnKBwyrILneZqOpzgubborAHMAzAM4v6BCcVY0jWVpYoLp8vX29Awkp1MYY4vArN5iV1f3pUtX6+v/sNsb2tu9VCze4GrhOGOLqqoaJRIE4UJ1bVnZlzU1NdoikkTIp+TUjMSnZD41a1qISlEUTSdisTjDMKyBKUkyfBshFEvEKSY2PjEejUfnwTyfTqsQ8ml+OjnDcRzP84QsS29nH1i7NjM7+y0uOXtvmG1r7W9r7W9u7AneHrM8wO/3NzU19vX1QQitZpMkSYUQY9zf2FFTeua3ry/Un/79Saswfjg8L7Z4ur3ewK2h0YmJ6dWfrabEGAf7W9rcvwBopFaU+Qbn9RSXspiifZHBK/7uK729ruG0vBCfSsem0gwnkpMpTlSUuTlCkuTEeOp2IOpp6e+6OXQ3HDfb418ChPGIx9lSe/pPT0drq6evb+DlVzffC0csEc1t7bmFxbaikt15+YUnf2DTSjwpMikpNiXOiHMGgSiKzORMIj49GiajY3SCnpJNKIrC8zyEcAmhSHgkOHSLomJ3796bnk5OsSzDMKqqYoybGpsOHcrLzy84fDjvu4rTmrYIAYAAqBDOiiLPp/8BS37KHB2xCDQAAAAASUVORK5CYII=" nextheight="1038" nextwidth="1504" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><div class="relative header-and-anchor"><h1 id="h-zk">ZK 应用开发流程</h1></div><p>独立开发一个 ZK 应用非常复杂，开发需要掌握以下技能：</p><ul><li><p><strong>算法，底层算数，优化技能</strong>。开发者需要这些技巧来解决一些有限域算术、多项式承诺和椭圆曲线问题。</p></li><li><p><strong>ZK 证明系统</strong>，如 ZK-SNARKs、Plonkish 和如何可信初始化。开发人员需要选择适当的 ZK 证明系统，并对其进行定制。</p></li><li><p><strong>电路编程技能</strong>。开发者需要讲常用密码学算法编写成电路，如 Merkle Tree 和 Hash。</p></li><li><p><strong>应用和密码学协议开发。</strong></p></li></ul><p>有效的开发工具可以加速开发过程，也可以降低复杂性。例如，像 Circom 这样的工具可以解决底层代数和证明系统。开发人员可以忽略代数和 ZK 证明系统，专注于电路编程和应用开发。</p><div class="relative header-and-anchor"><h1 id="h-rollup"><span data-name="gear" class="emoji" data-type="emoji">⚙</span> Rollup 机制</h1></div><p><strong>Rollup 的想法很简单。由于链上计算较为昂贵，因此 Rollup 希望安全地将计算移动到链下，并只在链上存储计算结果。</strong></p><p>哈希树的状态根存储在 Rollup 合约中。Rollup 智能合约从 Layer2 提交的信息中更新状态根。</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/35af67bd8b1b2f1fa22543e45f13641d.png" alt="Source: An Incomplete Guide to Rollups (vitalik.ca)" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAMCAIAAACMdijuAAAACXBIWXMAAAsTAAALEwEAmpwYAAABnUlEQVR4nKWSLZLjMBCFhXKQMF8iNDAnMBA1MQgO8A0MwkVFTExETExERJoIiTQREWkk0kRTsapc2UyyszX7AZd+rHqvX7fgjbxRSsk5M3P5FTln2kDElFKMsZQiAEBK2bbt6XRqmuZ6vdaLv8Cboerj+dv3/fF4bJrmcDgIIaSURCScc9bacRyllNM0GWOcc/XNW0opWuv7/a6U2o0DQIzxfD6LP9FaC79xuVyEEOu6AoAxpj57gYiYGRG7ruv7/na7EZExxlobY2TmuOGca9s2hGCtfVTgva8XIYSUEhEBwKdkvPfOudotInLOretaty9/7utHD4ho338SYGat9bIsL+chhHEc9/T2bPfFQwARiajaR8S3AimlaZqstd8FlFKI+GkiRLX8zHNBZTNCRMuy1IgAYDeLiFVyXdfahjcC5ScQcRgGpRQzA0DXdcYYZjbGSCnneS6lKKX6vvfe/0bAez8MwzRNKSXnXNd1Wmsimue5TjYRKaWklNba70X8LJBz9t6HEPYRqImnlAAgpVRKiTF671+y/VeB/+QLx5r0wxMQfXcAAAAASUVORK5CYII=" nextheight="314" nextwidth="835" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/dc9fcbcc10d466c7dc2dd28adf9e01ec.png" alt="Source: An Incomplete Guide to Rollups (vitalik.ca)" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAALCAIAAACRcxhWAAAACXBIWXMAAAsTAAALEwEAmpwYAAAB3klEQVR4nJ2Soa+rMBTGm+wPmFwyh8BP4CaWIBETE4iJCSziyRkEEjOBQE/WVFTM1FQcM4GpqamoqajBYCowfQnN5S3buy837ydK03z0fD3fQf6fTNPkvRdCHA4HhFCapkVRRFFEKXXODcPgnBNCBFnQv+K9R+GzKMZxpJQSQrqua9sWAKZpatsWIbRer/f7fVEUSZJkWQYAfd9zzhlj4zh6740xcRxHURTH8WazQQgVRYHezEopy7I8n895nh+Px7ZtCSFCiLquy7K8zvyaCZsgBgAppbV2u92uVqvdbodmkiRB4aXW2uBCStk0zf1+B4Db7UYpfTwezjkAYIxxzsOGMfaYAQAhhHMu+AOA6/Wa5/l5RimFLpcLQiiaec4YY5xzUsrQXKXUZyqU0rqum6YJVwdzf40Qcc67ruOcY4yNMZxzpZSZCZGorwJLTtZaSinG+H6/K6WW81fZn5DfaiqlXu0YY7TWy2/DMDyfT631covWuu/7YRi+m0P0NlWhOQvqy2BYMcaU0leb3nvGGCHk2wL+x1hr9Yy1djkcx1FrvbT0/wtorSml4wwhJPRNa40xttY65wghn3n8tMA0TVVVnU4nrbVSKsuyqqq893VdJ0kCAEqpNE3Lsvwcp98frl6BbHCpIQAAAABJRU5ErkJggg==" nextheight="321" nextwidth="901" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>ZK Rollup（ZKRU） 使用零知识证明来确保从 Layer2 提交的新状态根是正确的。验证者只需要验证这个证明就可以确认新状态根的正确性。验证者并不需要一个个重新执行 Layer2 提交的交易。这大大节省了验证者的工作量，提升了 TPS。这节省计算量的部分体现了零知识证明的简洁特性。依赖于零知识证明的简洁性，完备性，合理性，ZKRU 得以安全地提升 TPS。（完备性和合理性是证明系统的必备特性。完备性 Completeness：如果证明是有效的，验证方一定会相信证明方的断言。真的假不了；合理性 Soundness：虚假断言不可能生成有效的证明。假的真不了。）</p><p>ZKRU 整体来说优于 Optimistic Rollup（OPRU）。OPRU 的 TPS 略差，并且需要更长的提款周期，因为它依赖于欺诈证明（Fraud Proof）。那么等 ZKRU 全面铺开以后，不就是 ZKRU 碾压 OPRU 了吗？并且 OPRU 目前的生态并不算过于领先。OPRU 并没有坐以待毙，他们尝试将 ZK 融入自家的解决方案来提升 TPS，解决原生提款周期过长的问题。例如，他们将 ZK 应用于状态变化，这样就可以缩短欺诈证明所需要的时间了。</p><div class="relative header-and-anchor"><h1 id="h-"><span data-name="adult" class="emoji" data-type="emoji">🧑</span> 角色</h1></div><p>在 Rollup 的体系中，一共有三个角色：</p><ul><li><p>用户：用户在 Layer2 提交交易。他们从 Layer1 充值资产至 Layer2</p></li><li><p>Rollup 节点：Rollup 节点负责维护 Layer2 网络的正常运行。它们需要生成证明，执行交易，打包交易，参与欺诈证明</p></li><li><p>Layer1: Layer1 保证了 Layere2 的安全性，并负责共识的达成。大部分 Layer1 目前都是以太坊。</p></li></ul><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/e68037d598f0b7035cb59002c0d66d3b.png" alt="Source: Understanding rollup economics from first principles" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAPCAIAAAAK4lpAAAAACXBIWXMAAAsTAAALEwEAmpwYAAACfUlEQVR4nLWUMWvbQBTHb/Sn8Bo8BEIwhGwhZNGQJUvAGIQxHQtZPHgSBm8GFS+Bkq2DCQSDQaCmHFUPriIHCleB4BIICA/ugagxKIgrqIZX6kvkxElLKO1/ejreez+99+4dgpdp/ns961McIvjPQn/ma6VpijH2nghjHMexjgWAJEk+YHzhf/7CL/P8xxLwNGNxMl8YURR5npemqZQyudd0Oh2Px47jAECe5wDged6ViN5/vLS6b27T2RIAAFJKQsjp6anjODc3Nw8LggWAc/70V5RSrus+BNym396+o69ed/Pvt0vA9fW1u5Bpmt1u1/M8SulKBWEYPgs4Pz8vAIQQ/UnIpyRJ7gBKqbOzM80/PDxst9sA4LpuHMd5niulAEAIEQSBTqTL0hlXKgiCoF6vTyZfff9CSnkHkFJijAFgf3/fWIhzrpQyTRMhtLGxQSl1HEcIsVKBtlutFkKoVqsxxgaDwfb2dr/fj6JoMpksAYSQNE3RvRzHmc1mtm0fHR3Ztt1oNPr9frlcbjabBwcHpmnatn18fKzje73e7u5up9Npt9v1et2yLEJIEATLCrIsG41GSqnhcDgYDGazX9PHGBejzrJMSlkqldbW1qrV6ubmJkJoa2tLX1/dIt00zvne3l4URY8AAMA518PRrowxHaYWAoDpdFoulxFCpVLp5OREpy5mMJ/PtVsYhpVKpdVqGYZRNBNpSwgxGo30XWKMrexBHMfNZnN9fR0h1Ol0siyLFxJCDIfDYsi+7xuGYVnWzs6ORj5atDzPsyzTriuAJEl839dJOeeUUt/3GWOU0ofDH4/HQRCEYcgYewQo1mpljf+JXvrY/fVr+hOGq9HzQ0fHhgAAAABJRU5ErkJggg==" nextheight="423" nextwidth="911" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><div class="relative header-and-anchor"><h1 id="h-"><span data-name="part_alternation_mark" class="emoji" data-type="emoji">〽</span> 经济模型</h1></div><p>经济模型中最重要的就是成本和收入。对于 Layer2 来说，支出基本上是以下几个：</p><ul><li><p>生成证明的计算成本</p></li><li><p>切换状态的计算成本</p></li><li><p>Layer1 交易手续费</p></li><li><p>Layer1 数据存储成本</p></li></ul><p>其中 Layer1 数据存储成本最为昂贵。这张图展示了数据的传递。首先用户递交交易给 Rollup 节点。Rollup 打包多笔交易并生成证明，存储在 Layer1 中。</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/a145253b218b6ed3e59f63916b23de55.png" alt="Source: Understanding rollup economics from first principles" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAALCAIAAACRcxhWAAAACXBIWXMAAAsTAAALEwEAmpwYAAACBklEQVR4nJ2TvcrqMBiAM3oBDq7SSaSLuBbcpdBFegEFEbyCTl6Ak4sggghCKUinAy6BEAiFAwERCkEQpEPpFAKF0KEU8qFRj3jgfHznWfMmz/sXoL6j/gv1E8DHE+rnCCHSJ/xJnudCiD+C93w/7lNK4zj+/YQQwjmv67q6o5RCCFFKOefn8/nXnSiK4J2HIM9zCCG5I6X8qIkQot+qqqqu6yzLkiR5xegMOOfb7Xa32w0Gg0aj4TgOxjgIgpugKAqEkA4VQiCEPgYQx7E+1fkKIWazmW3bo9FIm47HY5IklmV5nuf7vmmavu9jjKMougmSJGGMNZtN0zSXyyWl1HGcyWRi2/ZqtYIQIoTKspRSao2U0rbtVqvV6XQQQoQQCCFjbLPZEEKyLBNCFEUhpYzj+CZgjCVJ0m63TdPEGFNKt9vtfr8PwzAIgvV67bquYRjD4bDX602n07IswzDEGCOEIISLxWI+nzuOY5pmt9ttNBoAANd1lVKEkJtASokQ0gnmeY4x/hi453kAgH6/Px6PN5uNlPJ0Or3PAEIIADAMAwAwnU7TNGWMKaUeFSilOOfxHUppWZav8eqm+77f6XQsy8qyTCl1vV61oKqqsiyVUlEUgSeWZek2SikfFXy7poyxy+XCGHttql7wV3CapofDAWNMCNFN1mFpmj4E73v5Hx/t33wBgbdiZWn2kGoAAAAASUVORK5CYII=" nextheight="423" nextwidth="1180" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>这张图展示了 Rollup 在 Layer1 上的支出已经它们的收入：</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/13b40e7af4501ea14d4a4e8d4be11aa4.png" alt="Source: L2Fees.info in 3/28/2022" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAARCAIAAAAzPjmrAAAACXBIWXMAAAsTAAALEwEAmpwYAAADaklEQVR4nJWTy0orWRSGCxtx5qBPAtG8g68gDhwZA5LoxJnQ+ghOfKnuCA4kCiK0OPANzjGkk7rsqn2tfa+q2FQtraPNmfTPGmR9WQtqf7UruLq62t/fHw6Hg48Mh8Pj4+PxeDwajeDHYDAYjUbjjwwGg4ODg9PT0/Pz87Ozs4uLiz+aHB0djcdjWDk5OTk8PLy8vAz29vaCr1lbW+v3+71er9Pp9Hq9brcbBEGn09lqAm0QBN1ud2dnp9/vr6+vb2xs/NZke7u/tbX97dvvvV5vc3Nzd3c3eHp6ur6+vm3yd5P7+/s/m9ze3j5+5Pp6Mpn8dXNz8/j4CGPT6fT+/u75+bmdmU6nk8nk7u4O2oeHh5eXl0BKpZS21hVF8dbEWitELqXy/p2UZZnnuVLaGAukqioppdYG2nZRSlWWZUu89wFCeD4Pl8tESpPnWkqTZXQ2Wy4WMecKCGNyPl++vv6zWERC1IRzFUUpxgy2oNKUzGZLQngLOc+DLMswxlVVFXU8PCxCSZZlWuuyibU2yzLv/cdY4ZyjlEopy7IEUpYlb1JVlfceiDEmwJhgTK11znnn6r84F0mCMCZaGyBamzQlWltrCxgzxhJCldLevxPnPGOcUt4S7wuldJCmJEmwMYVSTimntceYzedhkuA810CE0GGIoIUCIVKalmjt05Q0z+E/oBdCBpRShFKEUrABbw+h+gRwzKqqnHOgCGZACyiqqqpdFEIwxj8Ta22tKE0zznNjXCOqVhTHSZa1TgqlDEIYWiitLcZUSu3cO7G2oJRzLlriXCGlDpIEhyGS0mjtQQLGbDYL4ziFC6OU41wtlwm0UELoJMGfiZT1e2qukGsJ56pWhDFOU4QQ8t6vVqtWETipGkUYf1Hkvf+lIiHEarVq3daKCGEIYUKYlNqYWhFjtaI0zZQy/0sRY7zd+qkIYxqGCULYGKeUMcYRwhaLOAwRY8IYp7XNcx1FqP5ytYWSUiOEhZAwANUsRu1W41zWHxql9O3tbbVawbmUUlEUEULg+NW7IvwfRXmefyZlWYJb5xxo+3mLEMKUcrDkfcmYiCJEad6e9JeKCGFKma+KhBC6bd8VRRH68WM+n4evrwuECFyP799f4zjjXDEmOVeE1J8eIZwxCUVpvlzGWUZhBiqOM0L4Z0Ip/xcDpnHj2m+7ugAAAABJRU5ErkJggg==" nextheight="717" nextwidth="1362" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Layer2 最常见的收入是手续费和 MEV。手续费基于网络的情况，MEV 则取决于用户的交易。Layer2 也会发行属于自己的代币，并且奖励给 Rollup 节点。</p><div class="relative header-and-anchor"><h1 id="h-zkru">常见 ZKRU</h1></div><p>这张图展示了常见 Layer2 以及他们的市场占比。目前 Arbitrum 占据市场半壁江山。</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/bae40d130c56cd8a3339ef20abb79681.png" alt="Source: https://l2beat.com/ on 3/28/2022" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAcCAIAAACPoCp1AAAACXBIWXMAAAsTAAALEwEAmpwYAAAIh0lEQVR4nI1WfWwb5R0+oX1q0rRpm9CGxiYxPgaFSaMU9iENmDaBmARiDIFW2JSRwpBpSlU62KBAad0mqVPHveCm55xjOxfnzuec78PnnC92bCdXJ7FjjrTNZbb7rnVjp+f0nPNHnXRRYIq9kYS/9vz56vR77n1+z/P7vRCB4yhqw3F8dfWGrutaA7VaTZZTOE5omoYTru4PLV6KtyE2U6fJ5XS1t7d3d1scjv50Ol2r1RRFgeFTOI4vFgo2xHay66Tdbi/9rxQUjUZcA+6DB/9mtVonJydVVc03QJKkrc82Nzu3c8dTj9z+qzMnXolPS4c7jRYEHhVHe2D47bffnp2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yLYZjX6yVJkqKoSCTCMDTHcUMDgyRBMDQ3KoyGxFBzkdVXVjRNWyouaZqm63qtVlNVdam4VClXKuXKlh6wrOD3d57otFqtZrMZbgBF+06aN2AydfWe7j1j72NEnhF5uAfGMKw5pYepYbIB2uejKArDMJZlcRzvQ9FkMvnZEwvCCVoIihg2gCAIiqIkSfae6bUhCEmSLMvyPB8Zj7Y9t2fn1+/89fcfgjtOTU5vvp0+h8XC4sKVhXw+37TJfwn2/vk1ykMxDEPgOMuyJEkOUxSKopIkqaqazWTWP1n/629aIQi6E7pVmZ6t31htyqJppc+qNFXaOFoulUrbzqH2Z3ePeileEFiWEUWRZdlRUSRJkuf9LMs6na5rJfXl3YcgCHpzr3n9k39v/bv/B/8BzQmdGlVuyhUAAAAASUVORK5CYII=" nextheight="1174" nextwidth="1360" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>下图展示了不同 Layer2 使用的不同技术：</p><ul><li><p>状态验证（State Validation）</p><ul><li><p><strong>欺诈证明</strong>（Fraud Proofs）：允许白名单执行者监控链上交易，并指出错误状态。</p></li><li><p><strong>零知识证明</strong>（ZK proofs (ST)）：使用 ZK-STARKs 来证明状态的正确性。</p></li><li><p><strong>SN</strong>：ZK-SNARKs</p></li><li><p><strong>仅在退出验证</strong>（Exits Only）：退出网络时，状态会被验证。中间状态并不会被验证。</p></li><li><p><strong>互动证明</strong>（INT）：需要多笔交易来解决纠纷。</p></li><li><p><strong>一轮</strong>（1R）：只需要一轮证明来解决状态纠纷。</p></li></ul></li><li><p>数据可用性（Data availability）</p><ul><li><p><strong>链上</strong>（On chain）：构建证明需要的所有数据都在链上。</p></li><li><p><strong>外部数据委员会</strong>（External DAC）： 构建证明需要的所有数据都不在链上。数据委员会负责保护和提供数据。</p></li><li><p><strong>外部</strong>（External）： 构建证明需要的所有数据都不在链上。</p></li></ul></li><li><p>升级（Upgradability）</p><ul><li><p><strong>是</strong>（Yes）： 可以随时升级，不需要任何公告。</p></li><li><p><strong>21 天延迟或无延迟</strong>（21 day or no delay）： 有 21 天的延迟，除非安全委员会多签通过了立即升级。</p></li></ul></li><li><p>故障序列（Sequencer Failure）</p><ul><li><p><strong>L1 交易</strong>（Transact using L1）：用户可以在 L1 提交一笔交易来强制 L2 打包自己的交易。</p></li><li><p><strong>强制交易/L1 退出</strong>（Force trade/ exit to L1）：用户可以在 L1 提交请求来强制 L2 打包自己的提款请求，但这意味着用户需要找在系统之外找到交易对手方。</p></li><li><p><strong>强制 L1 退出</strong>（Force exit to L1）：用户可以在 L1 提交请求来强制 L2 打包自己的提款请求。</p></li><li><p><strong>构建区块</strong>（Propose blocks(ZK)）：用户需要自行运行节点来构建区块。这个区块包含了用户想要打包的交易。这要求用户自行计算 ZK 证明。这对算力有很大要求。</p></li><li><p><strong>L1 退出</strong>（Exit to L1）：用户只能在 L1 提交提款请求。</p></li></ul></li><li><p><strong>验证失败</strong>（Validation Failure）</p><ul><li><p><strong>逃生舱</strong>（Escape hatch(MP)）：用户可以在无需信任的情况下拿回押金。用户需要提交资金的哈系树证明。押金将会以上一次状态中的平均价格退出。</p></li><li><p><strong>构建区块</strong>（Propose blocks）：用户需要自行运行节点来构建区块。</p></li></ul></li></ul><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/ff1997a2bacebcdbd08b4454ba527a19.png" alt="Source: https://l2beat.com/ on 3/28/2022" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAOCAIAAADBvonlAAAACXBIWXMAAAsTAAALEwEAmpwYAAAEPUlEQVR4nI2Te0yaZxTGv2SXxnSaJnNecLPeTbalcy5r0nhZq7MtrVoV+YQObyjKNDbb4sbSuNLq7FRaXClaOp1WYaDEjmocYkjBKQ6nKx0dZslcFlFB4AMGr3wfMFAXtF1clqw+OX+cP855f89zkhfi8Xg5OTlsNru1tZXNZrNYrLq6up6enr6+PgRB7PuWw+l8qNF8dbv3k8aPa2rpZDK5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v35Z0DyiEkvt88X3+sJI/pOSLFHzBlFDI/+Jz7sVPmVUVXZc/29j9ydU1leKRIW43B/OiHr9nb3k3fQaz8fvZacX0lHphbqdRqOZmZfJJzSOtd9Pv3fRh/se14fX6t7ZGRkf5Q+L2zs7W9g6Px/M33saJm63FS+kAAAAASUVORK5CYII=" nextheight="554" nextwidth="1281" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/b86249a7b5f6322bd7c986cbc5f9d7a5.png" alt="Source: https://l2beat.com/ on 3/28/2022" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAYCAIAAAAUMWhjAAAACXBIWXMAAAsTAAALEwEAmpwYAAAH9klEQVR4nF2VfVATdxrHf3fTu5u5uRln2rn2OtOxM1ZPj9H6cnOdVq/tld7cjHLXF6ltx6ljrRevUVAIEoO8vwUhQaUEeYkQ3U2AhF0SsyGQhCwQWUAS4iYxWdxA0EASEghEkwBBgzeA9aXfef7c+X32932e5/sDKpWqfE2RNfn9/lAoVFt7hc/ncTjn6uvqJBJJeXl5YUFhWlpaaUnJKSaTzWZzudz8/HxeRQWvorykuLgH159iMvNzc1lp6f39/evnBNcEXC5Xbz/RIBSyWCytVutf1UxLfVoWc3v+mfe47H1KRChrazeZjMH5+f2bNhedODEXidCjd8USGSrHZLL2Ce9MY1HJGwBsBGATAC6anguF1k9fBfimp9NPZ6SmpDKZqSMjlidPVqILC8O3hxGlrKNbNT5BDRAGWCymKCoWjydt3MRLPR2Lx++N2fg5/yjJ3FvE2nsxZ9+NljKZTI6ibWIYJggiEok8B4za7bjVWszn55zP5vMrC7nci1k5X21J+AsACQBwDn1LWq0QBNnv3FlYXj6wcVNF6qlYPD7upK9frWqBBFfreMZhvehCUQIAOwDY9etfOazW0Is3cDid6nph2fnsjKys/NQ0VNhI0/RuADYA8HsAkjZuGrFYYAheB/zn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L3O2zDKpVSIUdVmMLj8RgJeWnm+xc4HxWx9sjh7HBk8fmY3rt/j3OOk5ebl7ImGILCkejBbe/+BoD8o4zHKyvpn33+OgDC4pJYPP7l1i0FjCPTAc+o3S5DUIIYcLvdD8ILtwxITkpC9qnt3Mxd5JBiPhR9cUzJHoKorqm5WFnpcrkm3e5wJFpfeuTYgT9wfthiGhKd+OgTAEBlenosHn/vlQ38k2lPnjwZpSjxtWsDBBHwTweDQQt5u7GhQQzDTUKh0WR+qclG4xCuGxJU17PZmUKh8PLlyyRJ9vV2ikRVwtoK0kx0q1RFZ88OE0R0MSbiMzOPbxeUfeO4M9I3PDJoNpMO+3woesfS01BzrLGWIbxyvLLgy4Df+7wHFEV1yJUSGE5nsdhsdkFBgcvlMhj6UblSLlcZDP0jZjPWpXWOjwWDcwa8ndDBFqNqsLtrNwDvrsUDoe1uq6ncthbXOwG4qYGe+bMKsJAkfotokbXyKngkSZpMJr/f34PjCIJiGKZWq4eGBlEUpWl6JhCwjY7OhSLRxdid22TKweT0b74+nfyV0+HokiuPfpz0wz8/P33wu9mZ+Zfi2mazwi1tVdWCM2dOk6QlEon6/X4cxyUSiVQqNd82D9+6JZVKaZpeWl7OSD7UWv1TLB63mUxJWxP2/3lr0tZtI/3ExITluvCsSJipQMrW/HkucG9qSt2h6dZ0NzU1mkympaWlUChE0zSO4wRB+P1+iqJwHB9zOh+EwyUMBnLlSiwevz0wcHjX7sO79hzetYfQdrvGzM31aXBNWjuc6/NOPWvAKoCTdr6a/5Nao0YQVCZthSAYgiCBQDA4NOT1+lwuVzAYXH9jZwKBhcXFh+HwTCAQCoUer6zE4vFYPD4XCs2FQtHF2Hq9+PurAFFGVkNOHqJUikQiqVQKi8UyqbSxqQlbk1wu93g8z772eb3r8zcTCPi83vVae7xmA/7p9foF4P/ZjC8AOwYzxQAAAABJRU5ErkJggg==" nextheight="1058" nextwidth="1409" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.ethhub.io/">Ethhub</a> 列出了 ZKRU 的几个主要优缺点：</p><ul><li><p><strong>优点</strong></p><ul><li><p>降低用户手续费</p></li><li><p>优于 OPRU 的性能， 手续费，提款周期</p></li><li><p>区块可以并行运算，有利于去中心化</p></li><li><p>更高的 TPS</p></li><li><p>更短的提款周期，优于欺诈证明</p></li></ul><p><strong>缺点</strong></p><ul><li><p>计算证明需要大量的资源</p></li><li><p>ZKRU 的可信初始化较为中心化</p></li><li><p>量子计算可能会损害安全性</p></li><li><p>安全假设包含不可验证的信任</p></li></ul><p>目前大部部分 ZKRU 只支持支付和有限的功能。zkSync 是 Gitcoin 的支付层。ZKRU 大多使用自定义虚拟机，并不兼容 EVM。例如，StarkEx + Cairo 和 zkSync 1.0 + Zinc。</p><p>ZKEVM 是 ZKRU 的下一个里程碑。ZKEVM 可以划分为三个等级：</p><ul><li><p><strong>共识级</strong>：ZKEVM 和主网上的 EVM 等价。生成的状态根是通用的。以太坊在未来计划实现主网上的 ZKEVM。</p></li><li><p><strong>字节码级</strong>：ZK 证明系统在这个阶段非常重要，需要对 EVM 友好。字节码级的 ZKEVM 生成的状态根与 EVM 的状态跟格式不一样，因为 ZKEVM 采用不一样的密码学算法。EVM 使用的那些对于 ZK 证明系统不友好。Scroll 和 Hermez 采用这个解决方案。</p></li><li><p><strong>语言级</strong>：在这个级别，并没有真正的 ZKEVM。一个转译器将 Solidity 编写的智能合约或者字节码转译成自定义虚拟机可以执行的格式。zkSync 和 Starkware 都是采用这个解决方案。这个方案的缺陷是，并不能兼容 EVM 的所有功能。</p></li></ul><p>以太坊基金会的 Justine Drake 计划在 2022 年底看到可用的字节码级 ZKEVM，但会有以下限制：</p><ul><li><p>与主网相比，较小的 Gas Limit。</p></li><li><p>中心化节点由于生成证明需要大量的算力。用户将在 2023 年使用他们的 GPU 生成证明。2024 年，ASIC 将投入使用。节点运营者将从 CPU 到 GPU，FPGA，最后到 ASIC。</p></li><li><p>由于 ZKEVM 的工程复杂度，ZKEVM 会存在 Bug。</p></li></ul><p>为了进一步降低手续费，一些 ZKRU 正在实现 Volition，将数据存储的地方从以太坊到链下。</p><p><strong>市场上目前有 16 个 ZKRU，其中 7 个发行了代币，总市值 150 亿美金，占加密货币总市值的 0.67%。</strong></p><div class="relative header-and-anchor"><h2 id="h-polygon">Polygon</h2></div><p>Polygon 目前在实现 4 个 ZK 产品：</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://polygon.technology/solutions/polygon-miden/">Miden</a>：实验性质的 ZKRU 通用计算平台，TPS 1k+ ，15 min 提款，5 秒产出 1 个块，隐私交易。</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://polygon.technology/solutions/polygon-nightfall/">Nightfall</a>：Nightfall 是一个 ORU，集成了 ZK 来实现隐私交易。一笔交易需要 9k Gas，110 TPS，为安永会计师事务所设计。</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://polygon.technology/solutions/polygon-hermez/">Hermez</a>：EVM 兼容的 ZKRU，2k TPS。目前网络已经上线，几乎没有交易量（数据来自<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://explorer.hermez.io/">区块浏览器</a>）。</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://polygon.technology/solutions/polygon-zero/">Zero</a>：通用 ZKRU 计算平台，支持递归。只需要 0.17s 就可以生成证明。证明大小 45 kB。一个账户只占用 5 bits。</p></li></ul><div class="relative header-and-anchor"><h2 id="h-zksync">zkSync</h2></div><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zksync.io/">zkSync</a> 由 Matter Labs 创立于 2019/12 基于 Plonk 开发。目前 zkSync 支持支付功能以及有限的智能合约功能。智能合约需要用 Zinc 进行开发。</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://portal.zksync.io/">zkSync 2.0 测试网</a>在 2022/2 上线，兼容 EVM。Matter Labs 将大部分 OPCODE 电路化实现在不修改证明系统的前提下，实现 EVM 兼容。目前 zkSync 2.0 并不支持 ADDMOD，SMOD，MULMOD，EXP，CREATE2 和 KECCAK256。在这种解决方案下，Solidity 成为了一等公民。</p><p>zkSync 2.0 的 Gas Price 是根据以太坊主网 Gas Price 和 ZK 证明成本动态变化的。受以太坊主网 Gas Price 影响的原因是 zkSync 会将数据打包存储到以太坊主网。</p><p>为了进一步降低手续费，提高 TPS，zkSync 计划发布 <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zkporter.io/">ZKPorter</a>。用户可以选择将他们的账户数据存储在 ZKPorter 上来降低手续费。如果一个账户数据存储在 ZKPorter 上，则它所有的交易都将由 ZKPorter 确保数据可用性，交易不再能提交到以太坊主网上。</p><p>以下是关于 zkSync TVL 和资金种类的图表。大部分 zkSync 上的资金都是稳定币。</p></li></ul><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/8fe908de79ef1d1336ad63a9435a88af.png" alt="Source: Dune on 3/28/2022" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAANCAIAAABHKvtLAAAACXBIWXMAAAsTAAALEwEAmpwYAAAC60lEQVR4nKVUX0hTURg/UA/1MjTK8CF8isCXXkwRTXOY+ZcIQSIioociqESjktJsEeEmZEUgMilziLQeJO1BglpQQ2Vuu865u9zctDVzM+8257337J577ol7r7OoSKkfh8vvft893+/77vm+A7zuaYfDQTnskzYbRVFOu4NyUFOyhfLSHuvY2Pj4+KRtUhQEgvGmC/9mAaIg4D8BIaQ+eY6DEJKtIZGII4QIIcvR6HwgHE8kAMF4NZlkWZYQOQM1iw1CMFZ34s1ACIGQHzINI4hELNK0Z9Zhd7lcQBJF1f0/wEqEd6NWw4VGQiQRY5/P53N5KYqSBf4tIv6pOCQIhJCRR0/MtYdVYyj0hZ6yyhWsxeOBQJDjuE1+QYrHCAmCgBQQIhFJDi1iUX4X5EOaaLvcXlwJJYkQKRgMTvsCDMOA4JzfQ89ulPlHCKuxsPV9dGE+El1eWlriYerr8mI4EpJFCPnwccxisfJiqu1M86GCi+oWD+2h5hwcx4E4wyQSq38XQDxPU3QkshKLxVhu7c3oyPnjJ5oaqs3G+1Nuz5W6k02V9a3nLuXuq8oruaZuCYcX5z45WZaVuwhCyLIsxhJCYnr9CpLOYLDvVV7O0T2Z5Xszy0r3V57Vnj6Qpc3PKqzKKdy9s6hYe10VCAYCTpdXFtjaIUsS4ROJb+bBYU12Hdh+DGTUAk0N0FRv21UBNNVAUwsy6gDQllfIAgihgM+/QPt/CEQijNPps9u91NTsW4ut3/S6p+flbd3jm+2dN1o76xuacw+e2pFdA0ABACUAlAFQqpAjCilVSBkA+flFjetnMOPxTzg5VQBj0WKZ6O42G3uHHnQ90xv6797ra7r68FabsV33tFkhOt3zlpZuvWGgq+vFHZ2xQ29SSK9+nRj1hoEOvcnYOwQhxBj7/X7f51AymQSSiFIQ8nKbyhMnCKn0VQGVJpEkEaXnWMBYJLIrpX6MUEodCZkoLgjlewUjxDDMSiw243Z/BzW4FrE/IAJ7AAAAAElFTkSuQmCC" nextheight="483" nextwidth="1150" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/8de87ff853c415a81c17f9dd5d9dcc42.png" alt="Source: Dune on 3/28/2022" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAUCAIAAABj86gYAAAACXBIWXMAAAsTAAALEwEAmpwYAAAEQUlEQVR4nKWVbUxTZxTHzzY0uDBalwjlJVBgilmcnW6TCejqmDhARrW8FPpCSy3gshfGi8n2QeeWxcxlCeA+GAkjy0Lj2AjqoCLMwqq1WFtRwYLMCNZWJt0ulHIv9/a23KX3bgi1IMlOzpeb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xn1o9lfBBwVFEWhKKrRaG4P9BP44pe8kKH+pRfi9wNs95HC9vybDScjk1MkeV5ct+yww3EcQSYnx60Bht1ChtXmqPisgfOawifNToO17wA350PJsZua60xHPNWW3AfzDDpffGjE1nNp0Gi+O+FwMtIr2Qc4juMYBgSGLbXw3AThJgh6tjD7zeckQdC+3NZ004fuN5v7zeZ/AEcRy1XKtv+lAAAAAElFTkSuQmCC" nextheight="743" nextwidth="1166" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><div class="relative header-and-anchor"><h1 id="h-starkware">Starkware</h1></div><p>Starkware 在 2018/5 由 Zcash 核心团队成员创立。</p><p>Starkware 有两个产品：StarkEx，StarkNet。</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://starkware.co/starkex/">StarkEx</a> 是一款 SaaS 产品，为项目方提供 ZKRU 解决方案。目前客户包含 dYdX，DeverseFi，Immutable，Sorare。dYdX 每周有 4k 活跃用户。</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/99485629e1d234f5a357c722109f69b6.png" alt="Source: Layer 2 Public Dashboard · Metabase (dydx.exchange)" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAHCAIAAADmsdgtAAAACXBIWXMAAAsTAAALEwEAmpwYAAABz0lEQVR4nGOIiY3R1NSdMmPW0mXLzp278J8s8PXrV2Tuo0ePzp07B2Ez7Ni5Mzwi+uq1a/fu33/9+jXZ5v78/vPpk6eLVyxv62ivra9duHjh+g0bHz16xLBgwaKMzKwXL18Saeifv3///P0LN/rRo0c7du6cMGliW0dbW0db35RJ9+7f+/8fpKCwsHjnrt0MhYXFhYXFjx49grvo27dvcIP+gwXh4P//vzfv3Hn/8eP7jx9PnznT1tHe1tE+Y9aMYyeOXLl65evXr4+fPfv///+nz58/fvq4bPnyufPmM3T39Cckpj569JhIHxw/e3bP/v0Wbm4ZeTlFFRXPXryAiF+6cuXGjZsbd+z4+f3n7oMHHz16DPXB6TNnMjKzpkyZumPnzqXLlq1fv37W7Nnr16/fd2D/+vXrt2zbtnrtmqXLlnV192Tm55fX1TCIizHAgYwcAyubjae3jae3vourtZ8fg7SMmLYOp5Kyvbfvli1bXr9+zfD////Xr1+3dbSvWrOyf2I/hFy+avnCxQtXrV21fNVyCDlr3py+aZMjk5J8QsKaJ0yYOn9hdXtH/+zZuRWVHVOmJOfldU+dWlhVNXX+wqr29p6ZM7unToUkGQCc1wOmI0tvRAAAAABJRU5ErkJggg==" nextheight="435" nextwidth="2000" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/ab79e133da6aabc93a96e43495b0f36f.png" alt="Source: Layer 2 Public Dashboard · Metabase (dydx.exchange)" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAHCAIAAADmsdgtAAAACXBIWXMAAAsTAAALEwEAmpwYAAACEElEQVR4nH2QT2jTcBTHfxfRk+BBBJGBFw8KXjx528XLDiIMRPDgKHgZHpwXEQTpwQ1RqtNCWVNMXS2p3R/H7Kptty5uyUzbNdDiaNc/ycCm0vxCk9Gma9OwJ2u24mH64R0ePN77ft8XuQhyyu3x+4O/KhX4B7rewlg5dmQYXcMw9CMazWZNVmoyLgpiva6ZXRMViyWMFaPH0c5hAwBm1wSA8EL0ySN7T0nHWMkXyvH1H3GGo9nkMs1aPcNtxhmOTfBcOsNwm0k+WxTERrOJYsurklS1blnnLA0L81AgcueWLVcSovF1mklktrZrMlZVrV7XGk293em0O0bvlYPqm8NYkaQqogJBXdf/TmPrZ65vf1fbbbXb7qmPtpExa2p2zW6P4wLb74cGAJJUTaZSBx+oqgYAe609ACiXRNvdB8WywCb4bK6QzRUqsky+/4TQqQ0mAQA8n11ajPbT+w+qqtVkjARRFMSdfKF8/97DMycunj935TQamHznuXD28u2bIy+fTw4NDk88e4V6XBq4dv3qDYRODg0Of54LbTCJr+FYKsnz6UySS6/GmQSX4tOZcbtj3O4QxB2MFQSw/7smR2LfZ2a+vH3jJgmKmp6NhGJeD+Vx+ajpWedrwucNBvzzJOEfG31sfzrheOEknF6S8C0tRj+Q1BrNrtEsvcIszIW+hVdCixGPyxfwz+dz2wDwBwaQIy+3UtGJAAAAAElFTkSuQmCC" nextheight="444" nextwidth="2000" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://starkware.co/starknet/">StarkNet</a> 是更加开放的 ZKRU 相比于 StarkEx，任何人都在可以在上面部署合约。StarkNet 目前不兼容 EVM。StarkNet 使用 Cairo 来编写智能合约。</p><p>Starkware 也在推进 ZKEVM。他们用了和 zkSync 不一样的解决方案。他们使用 Warp 来将 Solidity 编写的智能合约转译成 Cairo。这个解决方案并不如 zkSync 的解决方案，对 Solidity 的兼容性较差。</p><p>StarkNet Alpha 兼容 ZKEVM 在 2021/11 上线。目前每日交易数量为 1033（数据来自<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://voyager.online/blocks?ps=10&amp;p=2">区块浏览器</a>）。</p><div class="relative header-and-anchor"><h2 id="h-loopring">Loopring</h2></div><p>Loopring 是一个基于 ZKRU 的交易所，提供低手续费的交易体验，可以达到 2k TPS。</p><p>Loopring 在 2018 发行了代币 $LRC。目前市值为 13 亿美金。Loopring 总共有 65k</p><p>用户，每天用户增长数为 167，每日交易量为 10896（数据来自<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://explorer.loopring.io/blocks">区块浏览器</a>）。</p><p>dYdX 是 Loopring 强力的竞争对手。在未来，当 ZKEVM 正式投入应用，会涌现出一大批 DEX，因为 Solidity 的开发速度比开发 Layer2 快很多。新的项目 Fork 也很快。整个交易所的竞争将非常激烈。</p><div class="relative header-and-anchor"><h1 id="h-zkru">ZKRU 中的机会</h1></div><p>在过去，我们经常听到一些高 TPS，低手续费的链标榜自己为以太坊杀手。随着时间的推移，大部分以太坊杀手杀死了自己。剩下的链都找到了自己的发展方向，如 DeFi，GameFi。这些链也有了自己的特色应用和完整的生态。</p><p>现在开发一条高 TPS，低手续费的链不难，难就难在生态和特色应用。因此我们不能只关注纸面性能数据，而要注重用户，生态和特色应用。</p><p>Layer2 具有的特点是高 TPS，低手续费，完整的生态。虽然不少 Layer2 ZKEVM 主网还没上线，但是已经和很多项目达成了合作。</p><p>Moonbeam 目前的状态就很像一条 Layer2。它背靠 Polkadot，和大 DeFi 项目有合作，有完整的 DeFi 生态和跨链桥，但是缺少特色应用。下图是 Moonbeam 的 TVL 图。</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/0172f1f364b36bbaf35a247333c80d04.png" alt="Source: Defillama on 3/29/2022" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAMCAIAAACMdijuAAAACXBIWXMAAAsTAAALEwEAmpwYAAADWklEQVR4nG2Qy28bRRyAV1SBJvZ6H973et/ezdjrfdhee13HsbMl2E5tiJs2TZuEPAiEpEqAUCW8pIBoalUCKSqqeihIqMdCpUo9wA1xAHHthRMHDvwTSByCvDZRSyJ9Go1+Gn3fzEBEwmtfemf5zc+Lpdm8fylK2AjrPQeT74Mx2RAnxMIZG++tFkabGA0IzqR5k+LSPdhRjNRwUqFZHRqKJO/e//GPv46+OPx+YfljCJJjpHMSmDB7xNN9YvEUSmdQOo1QIMTAaYBTBkbpGKUjhMKLpmmN4aQCifr4zgeHf/9z9POvfwKnSSgexuX+p0ZoG6HtgZowj+3/BQb2QYDUXhzmPP+V3b0DGElAqlHb3O5+9/i3e/ef7H7yVVQcpY0CyrgDKfH8xU+xh4FjexiIIAknV5ubX+8FOKUEnZEhiIQgDoKYbGFeBc0zw8opasIM1Sfsz3wORmoYqcGoYOeqcwsbYUAuknwWoUCltnrQ/eHbB0/v3vtFz7RegvUoDqI4GIb1YViPxUHoPd3+bACn1KGzbGmssf3efiTGQgmtSPLu0Ih6ee6jb77+6fbth4eHT27denTl2j4t+BiT5dUxxZggEh6rnEPpzAiqIZTR56S9H4BRwbTKzdbVXkBI+ggF4nx2aeXTrc2bW1vdzY2b7253927cWVs/mJ3be+vt7s77dxaX99fWDzozO4XyZUYuxjknhmkwpsKYGkWlKCod249fcGP3s5EY0wvARBI4UzMXrzcbi1PNpXZrtd1abdQXW62VV9srrdZKs7HY21xYmumsdTobUxfWJuuvV4N5v3yxWJ4ulqdtr03zJhIXcFLBCDESYzPZ8SsL1wlKgXg5x0hesTRrOUHGCWx30nYnU2YtZdb6Gzuc2O552z2fNquWEzjuhGlWvEIjpD7g3LTp1FN2kC+1dTD2xuaXT38/mr32IcRLbqkynZDzvORmnCCGaSOoGtSv+pXXXjgrAGsCoQwl6eupSgzTMk7ASy4vue3OahSV5KQnafkIIlp2heFGedH0/JdhJJEvBgbwRAnk8uOQqBXkpMeKtqjlNVBmRIcRHWBVgVWNs+n+pHfG8OMskJOFMODk/QbFpQUtJ6gOyRqy5tKcwYtpAxRwUlE1mxMMQRrN5sr/ApNp0rvz8696AAAAAElFTkSuQmCC" nextheight="488" nextwidth="1296" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>因此完整的生态对于 Layer2 是不够的，Layer2 还需要发掘出它的特色。</p><div class="relative header-and-anchor"><h2 id="h-">特色应用</h2></div><p>能够充分利用 Layer2 长处的特色应用将是 Layer2 之间竞争的关键。目前我们发现的是类似 dYdX 的交易所可以充分利用低手续费，高 TPS 。另一个有潜力的应用便是链游，他们的需求与交易所类似，也是低手续费，高 TPS。</p><div class="relative header-and-anchor"><h2 id="h-layer2">跨 Layer2 应用</h2></div><p>Layer2 们共享同一个 Layer1，因此构建跨 Layer2 应用将安全的多。我们期待看见开发者利用这个特性，实现一些具有创新的应用。这些应用将不能被复制到跨链生态中，因为只有 Layer2 才共享同一个 Layer1。例如 Starkware 提出了聚合跨链流动性的构想，所有流动性存储在 Layer1，但是可以在 Layer2 中进行使用。</p><div class="relative header-and-anchor"><h2 id="h-">开发组件</h2></div><p>开发 ZK 应用是复杂的，开发者需要了解代数，证明系统，电路编写和协议开发。因此他们需要一些合适的开发工具来加速开发，做适当的抽象，省去一些底层的开发。</p><p>除此之外，定制化 Layer2 也将在未来有绝佳的市场。这类型的开发框架可能类似 Cosmos SDK 和 Polkadot 的 Substrate。</p><p>当一个应用变得热门，它不可避免的需要占据更多的计算资源。为了降低手续费，它可以选择做一条自己的链，迁移到 Layer2 和自己定制一条 Layer2.</p><p>Axie Infinity 便面临着一样的问题。在那个时候，Layer2 还不成熟，定制 Layer2 的成熟方法也根本不存在。因此 Axie Infinity 只能自己开发一条链，来自定义手续费。这带来了几个问题：</p><ol><li><p>不能和以太坊共用生态</p></li><li><p>无法享受以太坊的流量</p></li><li><p>跨链桥安全性</p></li></ol><p>在不远的未来，迁移到 Layer2 或许是一个不错的选择，但是在 Layer2 开发终将面临一样的问题。应用并没有完全的自主性，还是会面临一些限制，所以最有前景的选择是定制化做一条 Layer2。如果那时候跨 Layer2 非常的成熟，Layer2 和以太坊的交互也很方便，定制化的 Layer2 的使用体验将无比丝滑。</p><div class="relative header-and-anchor"><h2 id="h-">与以太坊结合</h2></div><p>Layer2 如何与 Layer1 结合也是一个有意思的方向。只有 Layer2 和 Layer1 良好结合，用户才更容易从 Layer1 迁移到 Layer2。这包含了更好的资产桥和通讯协议。</p><div class="relative header-and-anchor"><h2 id="h-vm">不同的 VM</h2></div><p>ZKEVM 是 ZKRU 的下一个里程碑。ZKEVM 分为三个级别：</p><ul><li><p>语言级别：在这个级别，其实并不存在 ZKEVM 。我们有一个 ZK 友好的自定义 VM 和一个转译器。转译器将 Solidity 编写的智能合约翻译成这个自定义 VM 可以执行的形式。zkSync 和 Starkware 都采用这个形式。这个形式的好处是开发速度快，但是无法兼容 EVM 的所有功能。</p></li><li><p>字节码级别：在这个级别我们有一个完全兼容的 ZKEVM 。我们的证明系统对于 EVM 非常友好。缺点是这一级别生成的状态根和主网 EVM 的状态根根式不一样。Scroll 和 Hermez 正在实现这一级别的 ZKEVM ，预计在年底可以推出。</p></li><li><p>共识级别：共识级别的 ZKEVM 运行在主网上，这一级别的 ZKEVM 和 EVM 别无二样。</p></li></ul><p>除了 ZKEVM ，我们可能也会看到其他虚拟机，例如 ZKWASM 等。</p><div class="relative header-and-anchor"><h2 id="h-layer2">Layer2 在其他链</h2></div><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/zkLinkorg/status/1507209829000966145">zkLink 在 Solana 推出了 Groth16</a>。ZKRU 在其他链上或许也有机会。ZKRU 可以赋予项目更大的自由，以及隐私性。对于企业来说，他们有必要保护客户的隐私。因此 Layer2 也是让这些企业上链的一个机会。</p><div class="relative header-and-anchor"><h2 id="h-zk">ZK 桥</h2></div><p>目前大家都在努力实现一个无需信任的跨链桥，但所有的桥都需要相信第三方。虽然这些桥都要求参与者抵押资产，但我们很难具体计算作恶的成本和收益。ZK 可以应用在跨链桥中，用来生成交易证明。这样我们就不需要相信预言机所传递的信息，只需要对证明进行验证就好。目前 ZK 跨链桥的问题在于如何生成区块的证明，而且扩展性堪忧。不同的链需要开发不同的电路来生成对应的区块证明。</p><div class="relative header-and-anchor"><h2 id="h-zk">ZK 商业算法</h2></div><p>商业算法广泛出现在专业领域，例如线性求解器，GPT-3等。如果 ZK 始终维持着高入门门槛，开源便不能帮助其降低开发和维护成本，因为没有人有能力来为其做贡献。在这种情况下，便会出现 ZK 商业算法。目前大部分 ZK 从业者拥有 Ph.D. 学位。</p><div class="relative header-and-anchor"><h2 id="h-">定制化芯片</h2></div><p>随着更多的用户流入 Layer2，Layer2 将捕获更多的价值。矿工们也将进行军备竞赛，购买性能更强大的矿机。在以太坊的路线图中，未来将集成 ZKEVM 。Filecoin 目前也投入了 ZK，矿工需要是生成证明。这也就是说矿工必须需要一枚可以快速生成零知识证明的芯片。</p><p>纵览以太坊和比特币矿机，一开始矿工们使用触手可得的 CPU 和 GPU 进行挖矿。在这个阶段，软件开发者需要为算法适配硬件加速。在这之后 FPGA 出现了。FPGA 具有更好的能耗比，更强的性能，并且是可编程的。用户可根据算法的不同，对 FPGA 进行编程，来适应算法。ASIC 最后出现，因为它的设计，量产需要更长的时间。ASIC 具有最好的能耗比，最强的性能，但是缺点是生产周期长，并且不具备可编程性。</p><p>未来是属于 ASIC 还是 FPGA 将取决于这些 Layer2 会不会频繁切换证明系统。每年都有更好的证明系统被开发出来。如果 Layer2 频繁进行切换证明系统，只能适用于单一计算任务的 ASIC 将被迫不断推出新产品，但同时 Layer2 切换证明系统也会带来很多工程化上的问题，例如重新适配 ZKEVM。</p><div class="relative header-and-anchor"><h2 id="h-">递归</h2></div><p>递归可以使区块链有更小的体积。更小的体积意味着节点可以运行在低端设备中。这非常有利于去中心化。简洁的特性使区块链可以无副作用的提升 TPS。因此递归和简洁将可以打破区块链的不可能三角：安全性，去中心化和 TPS。</p><div class="relative header-and-anchor"><h1 id="h-">隐私</h1></div><p>ZK 已经被用于很多隐私项目中。例如，Tornado Cash，Zcash，Dark Forest。保护隐私分为三个阶段：</p><ol><li><p><strong>交易隐私</strong>：用户可以隐藏他们的交易。</p></li><li><p><strong>通用计算隐私</strong>：目前以太坊上的所有计算过程都是公开的。任何人都可以看到输入，输出，和状态转换。通用计算隐私将隐藏这些计算过程。</p></li><li><p><strong>函数隐私</strong>：有时调用函数的名称会泄露信息。例如，<code>mint()</code> 往往意味着铸造代币。函数隐私将隐藏函数的调用记录。</p></li></ol><p>目前隐私赛道的总市值约为 100 亿美元，约占整个加密货币市场的 0.45%。每日交易量约为 10 亿美元。</p><div class="relative header-and-anchor"><h2 id="h-tornado-cash"><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://tornado.cash/">Tornado Cash</a></h2></div><p>Tornado Cash 是一个基于智能合约的隐私交易工具。它可以用来匿名转账，现在支持以太坊， BSC，Polygon，Optimism，Arbitrum，Gnosis 和 Avalanche。</p><p>存款，获得凭证，提款。用户就可以完成一笔隐私转账。在新版 Nova 中，用户可以选择任意的提取金额。ZK 用于生成提款凭证。</p><p>下图展示了 Tornado Cash 的 TVL 和用户增长。</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/db65fc24f8fe7fb00d6149ebde97e2de.png" alt="Source: Dune on 3/28/2022" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAANCAIAAABHKvtLAAAACXBIWXMAAAsTAAALEwEAmpwYAAACaUlEQVR4nK1TzWsTQRz9BUKlwarVgheloAfBWxWt1LRJP6AHhSIeBEE8Ve/24iEePQgKRcyp/gFiETyU0o8lhLiGZpeQtNt0YxLisqWxLsum2/3QZDI7Mtm6Rvt58PFj9rGz+95v3sxAKsWJa2uyLMmyXG5CluVK5RtCiBwBGGOEGhg7Lt/9ARiGoeu61YS58zAt03IOFCXEwdhpSlNRVdUNw97TAzDGmqbtnsD7gxCCUAOhBiEknS4kk6s9veMXLt+fnHxPCKnV6u6smwE1sCzr0Ciclg5isYyiVDc3tXg8e/7SPTg2AL4gwA3oHBGEr66x1zEcKu3B/Wd9XQF/6OWrd7fHngJcB38/BMK0Tg0DBHt6xxcX+Wy2+ODh88izt7b940gGDsZ1U7dtmnIyuQIQhM4R2nUgDB1DOwaBMBwP05cdQ9A1CnAFukZVVacR6bp+gDQhxFa/i/Oz66XStrEViURp4+2hP7p/1eAO8fefvXhX0wxqUK1WD17BT9teFYp1hKamPgJcBV8ftN2Ett/h7K6OIfAFT3ffoQatEXtwz587uiCEmKZNtxSCcHJ4X+mWrP412BO4eYMkaXN2nnsy8Qb8oWYIboX34YPeCugeNE9uTVU1SdoQhCLP5ThulVlcisfT0eiHiYnXjx6/OHHuFs0drkFbENoH6OgSl3vEm20fAF/fme4xTdumBoqifCkUNyqKIOQZ5tPycp7nczMzsdm5zyybnZ6ei8U5USyzLMcwrChKiQTPMKwglHg+t7CQyGTymUx+fiGxlFoRhBLDJFmWz+XKolje0nVwEGq9RP8RCKFiofALB/l/9+m7m/YAAAAASUVORK5CYII=" nextheight="479" nextwidth="1194" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/7a9b1e37d0169e857c419714b5b0d5d8.png" alt="Source: Dune on 3/28/2022" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAATCAIAAAB+9pigAAAACXBIWXMAAAsTAAALEwEAmpwYAAAECklEQVR4nJVUbUxbVRh+lixGo38cwRHN5jSDIhQWNydZBIYacf6QJZskfmVBTIiLPzSZ/jOICn8o0cjn2I2ojKykXXe3WqtLba/C7QqtMMGhF5gSVqmUQgW29d729t5jzr2Uj8Emvnlz85735jzP+77nOQeszfpxbW23xdzY2MgwTPup9pNtJxtMDab6+tq6utbWlgaTyXbuHM/zLMuetVrtdvu3TqfNanP/4D7PUnM6nQzDnLVaFVUlay0py+j39rS2ttntdovFwrKs2Wx2OBwsy54508UwjN1u7+zsdLlcY6NjHOfhOA/P88NDQy6Xq7+vz3uJ7/P3C4LAcVwgENiYICHGyP+x8HxkNDxBCFkPt94owc35eVmW9Q2Kqsp3tIGJX60BZ/X5z/X9X/RYWtxdhJBYLCbL8jKloiq3duDz+WZmZv6zIscQ9xVve7e7jhAyGv4T7x/EKxmEEDEupqpUFFXR4xUCRVUFQVhcXLwdrhiXouL1iZlgk+e0xe/UCS784kZlFl7a1jsW6B0fUFR1diEqJRPxRCIUDd/awZ1tYiboHP6xrcdc8tmb7hEexx/Xu0HZPSjAIx+VoTLLdJFx/37JHHBcnQ4aa8vnY9c3RaBoY706Hfyy1/bhN414K5/iHr4rFA2Xt7+DsruRDTwFlAIvZ7zKvIfKrJ01ZSiB3oQsx5dGxHHc1FRoQ4K5UMj9vc1Y/SIqC3A4vctjQ+nWqq8/wJH7UAhKYAT2AjmgSyMoaxHC85EVAkLI1NRULLZBK5IoOk41H3/teewEngC2YUvFfmQBzwB7NM/RQI1akKNlsoEnsaCNaIXg9iNKfne6+97MHdgC7AIeAHKBRykTHtJcJ8hPBTrlegJNxSvySqEroiwqsnKg5nUYgMeATGC35pmgGcPmCBRVcblck5PXdEXGE3HNE7KSFOMSIeT+6hco1p7UNPJXBetHpBHMLkT1upcOWRKl2YWobfCiXvti7KYuRIvf+Ym9BXnatmXc1b6ZDmQlSQipudBEZXCi8KfRPpwoLP60AuVp2AccWrVZR8xLoeetxV0OCtYSSEk6+tLmKiqArBRKrvY1pLD0pZ7X69UFmqt9s1e1ouUn/6Gil0QR4o0bhJC/rwUrqt9GcRpV4VEDitJRvB2HduHYXjy3AyXbUZhG78FRA42L0nHEgDf2o/RhHEzHsw9urTqAst3019MZ9NexffUdTXORWULUJYLBy4PeHn7Yf1mW5Wgk6vP0+jzeP4RxQogwdMXH+XweLyFkLjLr7+n3evjINH0Zx0fGfB7vlYEhWuJfoQHe/7PXr+ESSZQEQfhtZGTNPaDPtSLrR6LLVFaofLWXfDmmT/HqpaIqUjKRylMEMS4SQjo6Opqbmv4FIyCWPPRiNT4AAAAASUVORK5CYII=" nextheight="472" nextwidth="796" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>下图展示了 $TORN 的价格。$TORN 是 Tornado Cash 的治理凭证以及提供流动性的奖励。</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/97b56e619d9792094a3158c3b2ae55e8.png" alt="Source: Trading View 3/28/2022" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAATCAIAAAB+9pigAAAACXBIWXMAAAsTAAALEwEAmpwYAAAEMElEQVR4nI1UbUxbVRg+Gv/5azFxMTH74WIKI1uCJiZqFLO5+ZERAwTDFkwWGQqaGRHZks25ZHWGA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ZDUZgR5V0+BWefYX0ez4dNjQCAuvKyYCxmfIObBMlkykub8K/dbqmtsV67OjQ2Wn/+7MnS0oOVx0rLSs99cc7SZGmpr+9tb//GfPHCJXNnR8fb7xT/deP6hW9bTG8cPmgyNVxu0TH2Lnj96XnQNsQTCcAwjMvF+/0BCCGtw+fzCcLDDepLG83A5eJpDCGE47ipySnqlxVlefXhkD0eD43P7FfQ2trW1d3d1d09PT2doxk6ZIqY2aNbNw+NNAYY7X+smA+7XTQ+sgAAAABJRU5ErkJggg==" nextheight="652" nextwidth="1113" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><div class="relative header-and-anchor"><h2 id="h-zcash"><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://z.cash/">Zcash</a></h2></div><p>Zcash 是一个使用 ZK-SNARK 来实现隐私交易的区块链。与基于智能合约的 Tornado Cash 不同，Zcash 使用了一条链来实现隐私。</p><p>下图展示了 Zcash 链上每日交易量。</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/fec6cf79e1807bf41a5e052faf51721c.png" alt="Source: Zcash Transactions Chart on 3/28/2022" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAKCAIAAABaL8vzAAAACXBIWXMAAAsTAAALEwEAmpwYAAACjUlEQVR4nK1SXUgUURS+L/nWQy8V/Tz4g+yW4qKIWErSjyWssi2IWMGSC0FslgoSQhQbrGYDLek1sHRHsChvblHobCDF7GywD+7MWkSzzowvunvVHtSd69s2M7FOLKIRBN2Hw/m+e8/5zjn3AIRQ74NH7Z09A3BY1zW8dQghOYt3ObvhH3nDMBBCgKbpBUUxU/89Ef5HAUI2e/v6wfT0lCRJy8sr/11gI6323LmX7UAQBIyxJEmmzTk7oLSLl2XFhEvJZI6XZYUNRxYUJZnCnV3dwOl05jRjfHyW51U1vaOib9/FWZ4XE9ngGB9PprIk5YeD8JmqprlIVJYV872qpgfgsNdHaVrmdwdOp1NMSMkU1nWtoanF66N0XSOEmBl/rK5ijF+hNwgFT51tfPFykgnNxPj4J/bzvoOFLreH8sOqmnoxIalqWte1xaXFY7YTd+/3a1omhVeyAsFgEA495SLRkcD4jY7bbDhi1jI1HXo9+Y4JzRRaygEA+cU2l9tTUl5jLasuslaWlJ9svtTW0NRiLas+cNTS1+8XRXGUfu5ye9hwxOujWJYjZPNmRxfwPx4Eefv37D0EALhy9foAHJ7l+Xlpoe1ae2lF7ZGCUgDymA8fXW6P10fF+Ljd0Wq/ePlCY7MsK2JCGgmMz819sTta84ttdeeaPLe6CSGUHx7OP15X7yiy2ICv92GRtbL2jN3ro7hI1O5oraqpL7BUnD7v4CLRt++Z9Y0NwzC2r5lhGBjjtfW17V8ly0rmZ0ZV0xhnp82EZoT4V5oey25ROMxijBGawBiHwyxNj8mygtDE/HxCEAQI4dYtYhjGhJIkMQyDEMI4BSEUBIHnY2Y4hJDjOFEUnwwNEUICgdFfzvDJB7VazkAAAAAASUVORK5CYII=" nextheight="774" nextwidth="2476" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>下图是 $Zcash 的价格走势。</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/6aa6ce43b0c869072b0c5b0d4534e86e.png" alt="Source: Trading View 3/28/2022" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAYCAIAAAAUMWhjAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFmUlEQVR4nJ1VfUxTVxS/W2aWzZhh1Ol0OvZJ5rbMiBg3nSMzooEtZjFiyGayzOlg6oKb82MR5jTbUATRLUOoo0iLLWXloyBQXqkUWssokLbYDymlLeUVLa4ftO9R3vP1Lq93vHSyLLKT98e99917fud3z++eA/R6vUzWpNP1qzUaqbROp9MZDMaeXp1+cLClpVWOKTQarc02DP+vgY6OjpN5eb9V8M+eKyy+UHLq+9PFF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1Smx8wmw2m8lkoiiKTTJN04p6aUVRUXdbW0HZr8U83tncw7knjgpF1S73aDgc8rjdvmCgTFR94MhhQa2ktKxUrdWyMJOT9rGx7G++MqjVQ/Zh+5ibpmlUKmINR8AyIAgCPXGCIJw2m1Kr4UlrD2bvq5WwkjCP2MuLCqXVwrzCgrS091Y8+8z23ZmrElfuTt3cekNZdunSp4e+eDN5zcG0bVvXJf8svhZXrl04jrMMTp8/m7JiubDwnNNuV6lUvPrfE1558bXnVy1fnJC85o21G9YnPvZI4pJFYB5YtmQhWPA4WL4MLHgiEYBHn14InpoPAEiYP2/z0qUAgA8P5KBAKYoSiyVSaR3bk8USSXV5mba1Rdfd3alU7sjK2puT09FyXVIj/vbYMaGo+npdXXuTrB1rz8jIOF9crNRqZM1NZ44flzU3yZqbWxSYpKYmIzW19GKJfnAwGAioVCpUd1FlBXw+X44pbCMO69AQE2VwHB/3eJBefb5AfL8ccTjRa4AQ3vP5UVtFd3J7yIZ+EQSB456Zus1KEVQJBCUlFwUCoUAg9Hq93AuIJYZ9E2iMxBPX1/7u2FwX4vY8YH8BrLp1Xl3aay4AAAAASUVORK5CYII=" nextheight="730" nextwidth="991" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><div class="relative header-and-anchor"><h2 id="h-zecrey"><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.zecrey.com/">Zecrey</a></h2></div><p>Zecrey 是一个支持以太坊、Polygon、BSC、Near 和 Avalanche 的隐私支付应用。它处于保护隐私的第一层，交易隐私。Zecrey 提供一个浏览器钱包，用户可以用它匿名转账，交易代币。这些匿名性都由 Zecrey Layer2 保证。因此用户需要先将钱存到 Zecrey Layer2 中才可以使用这些匿名功能。 Zecrey Layer2 是 ZKRU 基于 Plonk。Zecrey 还支持资产跨链。目前 Zecrey 每日交易量大约为 10 笔（数据来自<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://explorer.zecrey.com/">区块浏览器</a>）。</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/b7c5f5dc90debc66e34caaf0faac883b.png" alt="Source: Zecrey" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAQCAIAAAD4YuoOAAAACXBIWXMAAAsTAAALEwEAmpwYAAADZElEQVR4nLVUT2gcVRgfyc1LoIgLgRwDOexhD6M5pXooIosumspUNgnRgC2yhSVddC5j2kNAEAeZ6BycxkxhhbHJFrcyHobgEh/ISIbAHBwwD3yUvobX7r7GvGb31b5gnnSmlGbdiiD+To/35/t9v+/7fU+R/zOU//jesqxqteq6rm3bYRhKKYUQxwgODw+zVd/BP0Okl1utlpJCVdVCoaDrenb0ZKhjChhjGGPO+b8kcF03I1AUZXh4OI7jAQp2SadD70opoyiq1+u2bSdJ8rS4lFJCCE1BCEmSpNFoeJ7nOA5IkSSJ53nFYtEwDAjhQ4Jr337/89Y2pbRcLjuOI6XknFNKB1aMECKE4JzHcdxqtTDGjDEIIQAgSEEI8X1fVdVisZglqgjxIKsapTQIAsuyAACFQqFWqzHGHjNxzsvl8ujoaKVSWVpayuVyY2Njvu9LKRFCSZJYluWmAAC4rlsqlR4p6EswDH9C6LczZ6ZXV1allACAzBuc85GREUVRJiYmNE3L6m5ZVvaKc66qqqIoQ0ND+XzedV3LshBCA2z6QBx2e5zcpt397n1+f+/uHkKIEAIhdBynVqu5rgshxBhDCDnnQghCCGNM07SXUpRKJQBAHMcY4wEENzG509lj7F7voNu+dVv8IdqdNoQwDEPf9+fn55vNZhaRUpp5BkIohGCMJUkCIWSMPdWmCKG19cbBvYNHZDdu7t7a1XXdMAzGWBiGpmkCABBClUrFMAzOued54+PjEMIoiqampjRNAwA8adZjBBDCtfVrOzu/UkrbnTbYBNvb25s/bvq+TyltNBpzc3P1el0IkfVGCIEQMk0TQhjHsW3bjuNEUcQYG6BACPGlc/nUa2+/d+78W6dPL1xYuHB24WLtIrqBrrhXbNvGGK+uXs5a4jjOylcrOAWl9Lvr16dmtcWPL82eOzv2oupd/UZK+efRUZ+Co08+/Sz/wqnp2flcLjc9PTNTmvngfA3vPgzBGOv1Dr5Y/hDu/FKvf/3McydOPP/sDxsbQbCxtbW1fnXtlTdefV+vTp6czOfzzWZzcA+Wlz9/vfSmruvVatW27cWPFk3T7Pa6fX3jnDPG9vd/f7zped7kyyfn3n1nKUUQBIMJUm90MtXZ9PXN89/HO9thjLXvtLOB6Pvs/gK/Etuw7n6VvgAAAABJRU5ErkJggg==" nextheight="682" nextwidth="1393" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><div class="relative header-and-anchor"><h2 id="h-suterusu"><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://suterusu.io/">Suterusu</a></h2></div><p>Suterusu 是一个支持以太坊、BSC、Fantom 和 Polygon 的隐私支付应用。它使用 Layer2 来保护用户的交易隐私。它还有一个跨链桥，可以在以太坊和 BSC 之间转移 $SUTER。未来它计划推出 NFT 匿名转账以及匿名拍卖。Suterus 采用 ZK-ConSnark，这种算法不需要信任设置。</p><p>Suterusu 共有 15k 用户以及 24k 笔转入。目前用户增速非常缓慢。Suterusu 的市值大约 1000 万美金。</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/464c5f8856bab3f336c3f17e48a0c449.png" alt="Source: Suterusu" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAWCAIAAAAuOwkTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFDElEQVR4nK2VfUwTZxzHH7dky5L9tcxlcXPLpn/MbW7RmDnjYnyZuLkXMcvUoAJhiyIO14JvKKAtb2UtCFoQWrBCAbWhYsuBrYCttayMjkqZAgVau7MtR7n2rt7NA1u4BU6Pwqxuyb558uRyz/Pc53l+39/zO0BHUDAYpGmaJCkY9g4Ouh0OBIa9Dgfi8fjYB2YO00cSiAwI0T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M9COB+ox5qVlUbdarBXnOX6RqkrKyVCetkeSUFKTnH4lMSNyfsWBUdtfjzVa9v2bh419YVacnRi954bvHClwEAR7jx16CaNk19p6l1qM86OuIJBmdq0XTWu+GC3BTByaTmK7LBXrP51+YWSN5wSVxbkV0i5GSlxXL2fpmwfeW3GxatX/nqN+vfjdmyLDlhY8KOtfE7NuRkJErP8K4oJG2aerPp+lCf1Yu4wgHhmiQJDHE7YHuv027t6zGZTVqdVnFVdV5ZJ5ZL888Wpp3K5pwtPCYrya6VFUDKSkOrstN4tdOo7e662X/HAjv6R0c8BIGxNsyqRexbHMfLyqRV1TUIMpVITxQz2WLpzs0VqVRNz/4fzDmK0wlPF5kHE6HQRGgqMf6piVAogON2ux3D/Kyr/xLwv+lv6q+xkdGxKWIAAAAASUVORK5CYII=" nextheight="460" nextwidth="668" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><div class="relative header-and-anchor"><h2 id="h-dark-forest"><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zkga.me/">Dark Forest</a></h2></div><p>Dark Forest 是一款多人网络游戏。玩家需要占领更多的星球，获得更多的资源。玩家可以向其他星球输送能量来占领它们。星球的位置是保密的。玩家需要利用哈希碰撞自己找到这些星球。<strong>ZK 被用来证明与位置有关的操作：</strong></p><ul><li><p><strong>行星初始化</strong></p></li><li><p><strong>行星资源的转移</strong></p></li></ul><p>在 Dark Forest v0.6 第一轮中，有 1700 名玩家参加。其中 700 人得到了进入下一轮的机会。在第一轮中，玩家们一共提交了 200 万笔交易，花费了大约 1.5 万亿 Gas。假设它是在以太坊上，Gas Price 是 80，那么这些玩家的手续费总共是 120 ETH。</p><div class="relative header-and-anchor"><h2 id="h-stealth-airdrop"><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://stealthdrop.xyz/">Stealth Airdrop</a></h2></div><p><strong>Stealth Airdrop 允许用户匿名地领取空投</strong>。用户首先使用他们满足空投领取条件的钱包来生成零知识证明，接着他们可以用其他钱包和这份证明来获得空投代币。</p><p>Stealth Airdrop 代表了 ZK 在治理方面的运用。在现实世界的治理中，我们也广泛应用匿名这个特性。例如在投票中，如果你发现有影响力的人物都投了赞成票，你也会受其影响，更有可能投出赞成票。因此匿名投票可以帮助用户独立投票。</p><p>在 2021 年，以太坊基金会对于 ZK 的资助主要集中在 ZKEVM 和治理方面。以太坊基金会主要资助了两个项目，其中一个就致力于解决投票贿赂问题。</p><p>A16Z 也实现了类似的东西 <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/a16z/zkp-merkle-airdrop-contracts">a16z/zkp-merkle-airdrop-contract</a>。</p><div class="relative header-and-anchor"><h2 id="h-zkproof-of-buffiness"><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://dorahacks.io/buidl/2121">zkProof of Buffiness</a></h2></div><p>这个项目在 ETHDanver 上发布。用户可以生成 ZK 证明来展示他们拥有一个 Buffiness，而不透露他们的个人身份信息。这是 ZK 在身份认证相关的应用。</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/b5e4f219437b04301336480201269e1e.png" alt="Source: zkPoB" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAdCAIAAABE/PnQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKhElEQVR4nEWSaVCTdx7H/0EIeQLkvp4j5/PkIBwhBEgC4QhHEkLAg0MREOQUQddAE8ByJGqUM0iNrBRvWqUopQaPWgttXVldsU5hpB0rHXq5s+0L+2Zf7TrTHfTFznxffz6f38wPAAYfMODEDGtO0U5zfgnEIch0Ipwmh2gqiKamMmKojFgKKz6Kl8BBkmBhmkBkEogzhNIcCZqpRHK0nCyVtlxc0EHY3URBh8TijC3xKrb2wmmNLE0jW7sfAJoghCsy5BSm5m035W6nsBXhdHk4TRFOU0Kb9BiIFUdlxVO5OoYghYemotJMTGrGReZENMfMzLrN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JRU5ErkJggg==" nextheight="723" nextwidth="785" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><div class="relative header-and-anchor"><h2 id="h-">总结</h2></div><ol><li><p><strong>隐私市场较小</strong>。隐私项目很早就出现了。Zcash 始于2016 年。然而，整个隐私市场只占加密货币市场的 0.45%。起步晚的 Layer2 也远超隐私市场。</p></li><li><p><strong>将会受益于更高的隐私标准</strong>。在不牺牲易用性的情况下，用户会追求更好的隐私保护。特别是在手机行业，谷歌和苹果正在推动更严格的隐私标准。欧盟也提出保护消费者隐私的法规。像 Let's Encrypt 这样提供 SSL 证书的基础设施公司更严格的意思标准中受益。在未来，当 ZK 因为更好的隐私保护而会被这些巨头公司采用时，ZK 基础设施将有巨大的机会。</p></li><li><p><strong>ZK 是金融机构入驻的必备条件</strong>。一些机构在尝试上链，他们有责任保护好客户的隐私。因此 ZK 在这个场景下将成为区块链的标配，来提供隐私功能。</p></li><li><p><strong>有利于 DAO 治理和身份</strong>。匿名在民主治理有着重要应用。ZK 可以实现匿名投票，让投票者独立思考，不被他人的决定所干扰。身份验证也可以从 ZK 中受益。用户可以在不显示其实际地址的情况下展示其资产。</p></li><li><p><strong>忽略 ZK，专注于产品的易用性</strong>。ZK 可以更好地保护隐私，但一个产品并不全是 ZK。ZK 是一种技术，我们更需要强调产品的易用性。通常，更好的隐私保护并不意味着易用性，但易用性是最关键的。因此，要更加关注易用性、市场和团队。</p><div class="relative header-and-anchor"><h1 id="h-">另一个有趣的项目</h1></div><div class="relative header-and-anchor"><h2 id="h-zkrepel"><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zkrepl.dev/">ZKRepel</a></h2></div><p>ZKRepel 在 GR13 中成功母子 5000 万美金。ZKRepel 是要给在线 Playground，开发者可以快速体验如何编写电路，并生成证明。ZKRepel 比较像早期的 <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://remix.ethereum.org/">Remix</a>。</p><p>大环境上，我们看到了从本地开发到云开发的范式转变。在这之中有一些著名的产品，如<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://codesandbox.io/">Codesandbox</a>，<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://codepen.io/">Codepen</a>，<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/features/codespaces">Codespaces</a>。有了这些产品，开发人员可以在任何地方任何时间使用他们的开发环境。开发者也可以快速建立新的开发环境。Github 提出面对日益复杂的软件开发，开发环境作为基础设施是必不可少的。Github 内部开发环境已经迁移到了自家的 Codespaces。</p><p>目前没有关于 ZK 开发者数据的明确统计。从 Github 上的数据来看，ZK 开发者比 Solidity 开发者少了 500 多倍。</p></li></ol><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/b22c3db8a0275d7f764413ec30118dc0.png" alt="Source: ZKRepel" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAfCAIAAAAJNFjbAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGKklEQVR4nK2W22/byBXGKSuKXFWOZEnW/S6REmVJq6vtdeys7XW7SFCg6GW7L11sH9qHvvYvbQwrKeIkcmTLuvEmkzMccjhkQcnJbjbZ2MDm4EAPAjg/nu875wwpCKEkSdJcms9FCIGqqtPp9OJiMBgMhsMhx3GzT4bA88PLq0cHP+ztfb+/9/fj43+1u99ubX2XKX7TLf+DLXxHYYwhhIqCeB4CiCBQJpPx4PJicDGYTqdzSZJEURLtkD6IGcfzAtfv9/f3f/jLt/958uTfh1//c3f3e7b6p2DysJj6YyrxB8ogRMcYqebl0BAlXRC5mcBf6+q1CizTtOy4+TVN8tO0LPNyKIhz0HvWq1SfZAtfl9jHReZ3oehOMLKzEf3SH94ORHYogxgI60g1OZ4IAjGAogo8mE6hwIPZFHJTTb62/xF5m2HZ5y5hlmVKsqxiq9fr5XPN31Ap70pmlUr9lkq7qaTLmfCsptyul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GRgjzJSbQN0C2OLYDsIMXSMVQ3pWCfE+LCLCoVWwF8IhWiKiq1QcYqKryymzB40VUMigAbReTAdiH0RCkD78R2tO0jU653m8s1QiEkmN5fT63TcjLG9KiDWFh5ghBEHOBEK3PVseUP+dB2Z71+WP5OIptvBEJNIbIYj5UCADkfKiXjVv5ZbVIDQtQwhhhIQ7c7E2CDGz65f8xdyuU56vdN8vplI1FrNg2ptv9U8ZJhuJtNY99uXGrV8F2IaxLTFvePR5vuAXK4Zi1fbra/Yym51c29769jny61QcdvkW3eyddugLQHJZL3dPmDZHZbdebj3pJBvOT4X4NmzXi7X8HqykSi7ES4FA3Q4yvq82RuTfz3g5OQpTbc3woxvLev1ZLyezLsW+jyAs7MXDNPJF9ssu53O1NPputt9c1/+WgCxh84CQGm1DzyrqXVfIeAvrPsLD7zZ+86027X48PocAPmL5uNk5mhn929F+hufv74R2220/9zt/DUY3v4sAFCrfbV6PxcOV/w+xuvJr3mLfn95PVBa8xb+Dxtkgs6+QOI1AAAAAElFTkSuQmCC" nextheight="852" nextwidth="869" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><div class="relative header-and-anchor"><h1 id="h-zk">更多的 ZK 项目</h1></div><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/abb35ca1d6e6d3713de3e6977c6388a6.png" alt="Source: How to fund your ZK Project?" title="null" blurdataurl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAICAIAAAAX52r4AAAACXBIWXMAAAsTAAALEwEAmpwYAAACpElEQVR4nI3SX0gTcRwA8J+JPUQIUSExRVlQSIaLXIF7cEEvQlEQ7kWCHrKWEJlgFKH4byQOAnWM2jgV7SXIRjLODdkEnXYyZ21Td91wrv2lnJt3t467m7tvuL1UT32evk/f/wgAJEmCv3EcFwwGvxVQFEWSJE3THMewbIbjfrEszTBMOp3e29tjGIZlWUmSstlMNpvJZDLpdDpVQNO0JElIyudncSsZ3o7HYqGdHYqiRFF0Op0ymUwul1dWVpagkvLycoNh5MnTqQqZ6uSpczXyyxpNi1qtbm5ubmpq0j7QBkjfpfMtFbJbyqtKZYNSpVIpFIra2lq/349EQbRYZ5fdxFeP5zNB4DgeiUTsdjtCqLSgrKwMIaTTDd6+M3jsbDtCdcdPXLxX0NHRodFotNpHPt/akdJGhBqqa6qVDcr6eoVafa2qqsrtdiMAYIQDNsvkCnsqriuVStntdpvNhuO4zTZnscxEo1GSDGxuBr3eLfeaOxQKeb3e9fX1YDC4HQqJghCPRxLxyPedYDIRTSZi8Vg4GgnzPI8kCXg2S4Wj1A8GAAIkZbXa5+cXlpaIhQXX4qKLIDwrK6uxWBwADopd/HG2YsAw2en3c+ZJy/DIdP8w1j883j3w9sMnBwAgCUASWSadyKRYAMCwqc7OF319Q3r9qE6nb22939Mz0NX1Ehuf4Jm8x5ldXd7Axs0mkxnDMKPRSBAEAEQjyes3H56tv4GO1qEzjej0FVR6oeXus8MCALC7+5MMkPH4YY8uF4FhU+3tnW1tj/X60bExk9k8aTCYcXz+MBEpbm1Eff4vJEk6HA6Px5NKpQBgn2bMEx9fG9497zX0DZl6X73pHjDOFCcAAJqmk8kkTe8DQD6fz+VygiDyPM9xvCAIuYJ//vj//QZwqitycgCEAgAAAABJRU5ErkJggg==" nextheight="210" nextwidth="890" class="image-node embed"><figcaption htmlattributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>以下项目专门自主或者投资 ZK 项目。</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://gitcoin.co/%EF%BC%89%E3%80%82%E7%AC%AC%E4%B8%80%E8%BD%AE%E5%9C%A819%E4%B8%AA%E9%A1%B9%E7%9B%AE%E4%B8%AD%E5%8C%B9%E9%85%8D%E4%BA%8610%E4%B8%87%E7%BE%8E%E5%85%83%E3%80%82">ZKTech Gitcoin Grants</a>： 第一轮中为 19 个项目中匹配了 10 万美元。</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://0xparc.org/">0xPARC Grants</a>：支持以太坊和其他去中心化平台在应用层面的创新。</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zkdao.io/">zkDAO</a>：由 zkSync 和 <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.bitdao.io/">BitDAO</a> 支持的新推出的 2 亿美元基金，以支持 zkSync 生态。2 亿美元中的 7.5% 将用于Grants。</p></li><li><p>Polygon ZK基金</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/Aztec-Grants-19896948e74b4024a458cdeddbe9574f">Aztec Grants</a>：目前的重点是跨链桥、工具和分析。</p></li><li><p>Harmony ZK 基金：专注于 ZK 和隐私研究的 1000 万美元基金。</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zkvalidator.com/">ZK Validator</a>:：专注于 ZK 的基金。过往投资有 Aztec, Penumbra, Ironfish, Anoma, zkSync, Aleo, Diversfi。</p></li><li><p>Aleo 推出的 <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.zprize.io/">ZPrice</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mobile.twitter.com/nil_foundation">Nil Foundation</a>：致力于数据库和密码学方面的项目。</p></li></ul><div class="relative header-and-anchor"><h1 id="h-">总结</h1></div><p>ZK 的前景是美好的，它可以让一些过去不可能的事情变成现实。近年来，ZK 领域发生了很多突破性的进展，例如更强的性能、可升级性和不需要信任初始化。这些改进都将 ZK 推向了应用阶段。因此，如果我们要看到一个新的 ZK 证明系统，我们可以从以下维度进行评判：</p><ul><li><p>一笔交易和十笔交易的证明时间</p></li><li><p>一笔交易和十笔交易的验证时间</p></li><li><p>一笔交易和十笔交易打包后的证明大小</p></li><li><p>可信初始化</p></li><li><p>参考字符串长度</p></li><li><p>CRS 支持</p></li><li><p>SRS 支持</p></li><li><p>递归证明支持</p></li><li><p>能否抵抗量子计算机</p></li><li><p>安全性基于任何密码学假设</p></li></ul><p>ZKEVM 是 ZKRU 的下一个里程碑，ZKEVM 有三个阶段：</p><ul><li><p>共识级</p></li><li><p>字节码级</p></li><li><p>语言级</p></li></ul><p>ZKRU 刚刚进入应用阶段，生态并不完善。开发者们还没有发掘出 ZK 的所有潜力。人们仍不断从这些前沿理论中得到启发，以下是值得关注的方向：</p><ul><li><p>充分利用高 TPS 和低手续费的应用程序</p></li><li><p>Layer2 之间的通信协议/应用程序</p></li><li><p>聚合流动性</p></li><li><p>开发工具/框架</p></li><li><p>基于云的开发工具</p></li><li><p>具有独特功能的跨 Layer2 Layer1 应用程序</p></li><li><p>不同的 ZKVM</p></li><li><p>ZK 桥</p></li><li><p>在其他链上应用 ZK</p></li><li><p>拥有递归功能的 Layer2</p></li><li><p>ZK 在 DAO 和社区治理中的应用</p></li><li><p>商业化 ZK 算法</p></li><li><p>芯片和云计算</p></li></ul><p>ZK 的应用聚焦在两个方面：Rollup 和隐私。Rollup 比隐私有更好的前景。隐私在某种程度上和区块链的开放精神相违背。另外，隐私可能有合规问题。在 Web2 时代，我们没有看到隐私应用程序达到龙头的位置。所有应用的隐私保护水平在不断提高，但龙头应用往往不是主打隐私的引用，而是易用性最强的应用。隐私是有代价的，大多数情况下牺牲了用户最关心的易用性。</p><p>当我们看 ZK 隐私项目时，以下几点较为重要：</p><ul><li><p>ZK 只是技术，我们要专注产品力和团队</p></li><li><p>ZK 是个复杂的技术，会拖慢开发进度</p></li><li><p>ZK 有利于 DAO 治理和身份认证</p></li><li><p>ZK 是机构上链的必备技术</p></li></ul><div class="relative header-and-anchor"><h1 id="h-">了解更多</h1></div><p>如果你想要了解更多 ZK，可以阅读这个<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/Pre-program-Topic-Sampler-46456f891dc541a7a780c79f8ced463c">教程</a>和 <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/ventali/awesome-zk%E3%80%82%E6%9C%9F%E5%BE%85%E4%B8%80%E4%B8%8B%E8%BF%99%E4%BB%BD">https://github.com/ventali/awesome-zk。期待一下这份</a><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://gitcoin.co/grants/543/the-moonmath-manual-to-zk-snarks#:~:text=Least%20Authority%20is%20a%20consulting,the%20production%20launch%20and%20after.">教程</a>。</p><p>我在 Fundamental Labs 担任 Tech Associate。欢迎关注<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/glazecl">我</a>，我的 <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://unblock256.com">Newsletter</a>。你可以在这找到 <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/FundamentalLabs">FL</a>。</p><div class="relative header-and-anchor"><h1 id="h-reference">Reference</h1></div><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://vitalik.ca/general/2021/01/05/rollup.html">An Incomplete Guide to Rollups</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://dcbuilder.mirror.xyz/QX_ELJBQBm1Iq45ktPsz8pWLZN1C52DmEtH09boZuo0">The ultimate guide to L2s on Ethereum</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://barnabe.substack.com/p/understanding-rollup-economics-from?utm_source=url&amp;s=r#footnote-anchor-1">Understanding rollup economics from first principles</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://forum.celestia.org/t/ethereum-rollup-call-data-pricing-analysis/141">Ethereum Rollup Call Data Pricing Analysis - Research</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/zero-knowledge-validator/how-to-fund-your-zk-project-d8267aaaed53">How to fund your ZK Project?</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://blog.ethereum.org/2016/12/05/zksnarks-in-a-nutshell/">zkSNARKs in a nutshell</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.ethhub.io/ethereum-roadmap/layer-2-scaling/zk-starks/">ZK-STARKs</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://vitalik.ca/general/2019/09/22/plonk.html">Understanding PLONK</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://consensys.net/blog/developers/introduction-to-zk-snarks/">Introduction to zk-SNARKS</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/coinmonks/comparing-general-purpose-zk-snarks-51ce124c60bd">Comparing General Purpose zk-SNARKs</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://consensys.net/blog/blockchain-explained/zero-knowledge-proofs-starks-vs-snarks/">Zero-Knowledge Proofs: STARKs vs SNARKs</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zhuanlan.zhihu.com/p/40245832">Comparison of Different zk-SNARKs</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zhuanlan.zhihu.com/p/145972091">Compare zk-SNARKs in practice</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zeroknowledge.fm/221-2/">Episode 221: Funding the Next Wave of Zero Knowledge Tech</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/@ronaldmannak/how-zero-knowledge-proofs-are-changing-blockchain-in-non-technical-terms-3d1fc0cab371">How Zero Knowledge Proofs Are Changing Blockchain (in non-technical terms)</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.reddit.com/r/ethereum/comments/rwojtk/ama_we_are_the_efs_research_team_pt_7_07_january/">[AMA] We are the EF's Research Team (Pt. 7: 07 January, 2022) : ethereum</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://blog.matter-labs.io/zksync-2-0-hello-ethereum-ca48588de179">zkSync 2.0: Hello Ethereum!. The Alpha version of zkEVM testnet is… | by Matter Labs | Matter Labs (matter-labs.io)</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/watch?v=_Zcz4Y4yt1Q">ZK Tutorial: An Introduction to SNARK Development with arkworks - Pratyush Mishra - YouTube</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/watch?v=BT88s7_VtC8">'Introduction to Zero Knowledge Proofs' - Elena Nadolinski - YouTube</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/watch?v=zgSF_dRe4UY">(2) zkSummit6: arkworks: A Rust Ecosystem for zkSNARKs – Pratyush Mishra – UC Berkeley - YouTube</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.paradigm.xyz/2022/04/zk-hardware">Hardware Acceleration for Zero Knowledge Proofs - Paradigm</a></p>]]></content:encoded>
            <author>inevitable@newsletter.paragraph.com (Inevitable)</author>
            <category>industry resaerch</category>
            <enclosure url="https://storage.googleapis.com/papyrus_images/7f7e761af03faaf4760843146f9177bb.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[Incomplete Guide to ZK: Why ZK Matters？]]></title>
            <link>https://paragraph.com/@inevitable/incomplete-guide-to-zk-why-zk-matters？</link>
            <guid>HMmaBUmp8eQ8kR11254g</guid>
            <pubDate>Tue, 12 Apr 2022 08:40:29 GMT</pubDate>
            <description><![CDATA[Intuition about ZKOne sentence for ZK: ZK is a way for a prover to convince a verifier that some statement is true but reveals no additio...]]></description>
            <content:encoded><![CDATA[<img src="https://storage.googleapis.com/papyrus_images/fc824d93bb755f6c579a4ab618779317.png" blurdataurl="data:image/png;base64,iVBOR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3bbIPYndMtfCRvTBvjnjLIAga0olON73g8Gsj0e49XJb8tLxAeSoypForGRgTN1Vfm8A9sB2AD35syaQRLYNoi190bX/X3F/1j8sQEl2FMfBFwZNP0DYscbaytaZTVGna61rrKIny/Iy3kaIHob2OZnaj5xwg4bxNuB88tD1sv/A2DSi1GoDhIH10Nf0TT9cNFqHh2emzYNdrZ3q1RR+/YCwBv7IhDrQmGVA8JtwLFDrP3D6HP/yPkda88BP1OcE+4AAAAASUVORK5CYII=" nextheight="650" nextwidth="1950" class="image-node embed"><div class="relative header-and-anchor"><h1 id="h-intuition-about-zk">Intuition about ZK</h1></div><p><strong>One sentence for ZK</strong>: ZK is a way for a prover to convince a verifier that some statement is true but reveals no additional information except that the statement is true. ZK is designed for anonymity. Imagine that we can prove we have a valid ID without verifiers knowing our real name or ID.</p><p><strong>Here is a more vivid example.</strong> Alice and Bob are playing Sudoku. Alice would like to show Bob that she found the answer. However, she did not want to reveal any information about the answer since Bob was still working on it. How will you design this proof?</p><img src="https://images.mirror-media.xyz/publication-images/ulTbNM2GL-e0ZoUnGoxBd.png?height=567&amp;width=428" alt="" title="null" class="image-node embed"><p>The answer is simple. We write down the Sudoku into cards, facing down. Bob can randomly choose one column, row, or block. Alice takes that column, row, or block of cards and shuffles it. Bob can verify the correctness by checking cards with 1-9. <strong>By constantly performing this step, Bob can say that Alice knows the answer, but Bob does not know the answer after the verification.</strong></p><img src="https://images.mirror-media.xyz/publication-images/DvBH2hhqbrw7v-6SObsgW.png?height=423&amp;width=911" alt="" title="null" class="image-node embed"><p>If you still can’t get the idea, view this <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/watch?v=fOGdb1CTu5c">video</a>. The UCLA CS professor will explain ZK on five different levels. You will definitely get it.</p><div class="relative header-and-anchor"><h1 id="h-common-zk-proof-systems">Common ZK Proof Systems</h1></div><p>Before examining the ZK proof systems comprehensively, notice that <strong>ZK-SNARK is a name of a class of schemes, and ZK-STARK is the name of a specific scheme.</strong></p><p>Let’s start with ZK-SNARK. SNARK stands for <strong>Succinct Non-Interactive Arguments of Knowledge</strong>. SNARK is unique from other ZK proof systems because of its trust setup phase, what ‘N’ stands for.</p><ul><li><p><strong>Succinct</strong>: The proof size and verification time are smaller than the original computation (statement).</p></li><li><p><strong>Non-interactive</strong>: The provers and verifiers do not need to communicate back and forth for each round. Instead, the provers and verifiers need to finish the initial setup phase. Even if they miss the setup phase, public verifiers can also join the verification later.</p></li><li><p><strong>Arguments</strong>: Provers with extremely large computation power can cheat the verifiers by generating wrong proofs. When this happens, the public/private key encryption is also broken.</p></li><li><p><strong>Knowledge</strong>: The prover needs to know something secret to make the proof.</p></li></ul><p><strong>The problem with ZK-SNARK is the trust setup phase.</strong> The trust setup phase generates a reference string. If the reference string is leaked, anyone can make the fake proof. Also, coordinating such a trust setup phase between multiparty is complex. The reference string can only be used in one program (Circuit). Thus it is impossible to have ZK-SNARK with a single trust setup for general computation. Another problem is that the reference string is not upgradable. If we upgrade the program, we need to rerun the trust setup phase.</p><p>To solve the problem, there are two approaches:</p><ul><li><p><strong>Transparent Setup</strong>: The trust setup phase sets a CRS (Common Reference String). If the CRS is leaked, the ZK proof systems will not be hurt. Fractal, Halo, SuperSonic and ZK-STARK use this approach. The problem with this approach is that the size of the proofs may be in kBs. This would be too large for the blockchain area.</p></li><li><p><strong>Universal Setup</strong>: The setup creates a secret reference string, but it is structured. Thus it can be used in not only one program. Marlin, SuperSonic-RSA, and Plonk use this approach.</p></li></ul><p>The following ZK proof systems are commonly used in the industry:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2016/260"><strong>Groth16</strong></a>: This is used in Zcash. It is fast and has a small proof size and constant verification time, but the trust setup phase needs to run for every program.</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2019/099"><strong>Sonic</strong></a>: Support universal setup. The SRS(Structured reference string) is linear to the size of supported programs. The proofs size is fixed, but the verification is expensive. On the other hand, it makes general computation possible.</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2019/1076"><strong>Fractal</strong></a>: Allow recursion. The proof size is big.</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2019/1021"><strong>Halo</strong></a>: Support recursion. It is not succinct because verification time is linear. Most ZK application is based on Halo2.</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2019/1229"><strong>SuperSonic</strong></a>: The first practical transparent ZK-SNARK.</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2019/1047"><strong>Marlin</strong></a>: Structured reference string (SRS); Universal and updatable; Better prover and varication time than Sonic, but slower than Groth16.</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eprint.iacr.org/2019/953"><strong>Plonk</strong></a>: Universal setup; Multiparty joins the setup phase sequentially. This makes it easy for many participants to join the trust setup phase; PLONK uses <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://hackmd.io/@tompocock/Hk2A7BD6U">Kate commitments</a> instead of polynomial commitments ( Recall that the first step in ZK-SNARK is to transform computation into a polynomial problem). Plonk is modern and popular today. Lots of ZK proof systems are based on Plonk and they are named Plonkish.</p></li></ul><p>Here is the benchmark based on this <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/coinmonks/comparing-general-purpose-zk-snarks-51ce124c60bd">research</a>. CRS is common reference string. SRS is structure reference string generated in the trust setup phase. The proof size determines the storage cost in the base layer—the runtime for the prover and verifier influence the computation resource.</p><img src="https://images.mirror-media.xyz/publication-images/SEnVtvE_hzlEXwoBNS3fg.png?height=487&amp;width=1414" alt="Souce: Comparing General Purpose zk-SNARKs" title="null" class="image-node embed"><img src="https://images.mirror-media.xyz/publication-images/l_1LxINZv13pxRZrAO54-.png?height=632&amp;width=875" alt="Souce: Comparing General Purpose zk-SNARKs" title="null" class="image-node embed"><p>You can find more benchmarks in the following research:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/sikoba-network/benchmarking-zero-knowledge-proofs-with-isekai-64e60cb89f42">Benchmarking Zero-Knowledge proofs with isekai</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://consensys.net/blog/blockchain-explained/zero-knowledge-proofs-starks-vs-snarks/">Zero-Knowledge Proofs: STARKs vs SNARKs</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.zkproof.org/pages/standards/accepted-workshop3/proposal-benchmarking.pdf">Community Proposal: A Benchmarking Framework for (Zero-Knowledge) Proof Systems</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zhuanlan.zhihu.com/p/40245832">Comparison of Different zk-SNARKs</a></p></li></ul><p>A quick wrap-up, if you see a new ZK proof systems, what number should you care about?</p><ul><li><p>Prover time for 1tx and 10 txs</p></li><li><p>Verifier time for 1tx and 10 txs</p></li><li><p>Proof size for 1tx and 10 txs</p></li><li><p>Trusted setup phase</p></li><li><p>Reference string size</p></li><li><p>CRS(common reference string) support</p></li><li><p>Upgradable</p></li><li><p>SRS(structured reference string) support</p></li><li><p>Recursion support</p></li><li><p>Post-quantum secure</p></li><li><p>Cryptography assumptions</p></li></ul><p>ZK has been applicable in recent years. <strong>The two main theses of ZK is a rollup, which improves computation efficiency and privacy.</strong> For the private thesis, it is intuitive since ZK shares no knowledge with the verifier except the statement itself. <strong>The rollup thesis heavily relies on two characteristics of ZK: succinct and recursion.</strong> Succinct characteristic helps verifiers save many computation resources instead of rerunning the whole program. Recursion characteristic helps to save storage space. With recursion, the blockchain can keep a fixed size. This is also beneficial for decentralization since the tiny blockchain node does not require high-end hardware.</p><img src="https://images.mirror-media.xyz/publication-images/l59gKsBzBscKU0qajPqlJ.png?height=1038&amp;width=1504" alt="" title="null" class="image-node embed"><div class="relative header-and-anchor"><h1 id="h-zk-application-development">ZK Application Development</h1></div><p>To develop a ZK application independently, a developer needs the following research and development skills:</p><ul><li><p><strong>Algorithm and low-level optimizations of arithmetic skills</strong>. Developers need this skill to tackle problems in finite field arithmetic, polynomial commitments, and elliptic curve.</p></li><li><p><strong>Cryptography knowledge about ZK proof systems</strong> like ZK-SNARKs, Plonkish, and trust setup process. Developers need to choose appropriate ZK proof systems and they may need to customize them.</p></li><li><p><strong>Circuit programming skills</strong>. Developers need to develop constraints for some cryptography primitives like Merkle Trees, and Hash.</p></li><li><p><strong>Application and cryptographic protocols development</strong>.</p></li></ul><p>Effective development tools can not only speed up the development process but also reduce the complexity. For example, tools like Circom takes care of the low-level algebra and proof systems. Developers can ignore algebra and ZK proof systems, and focus on circuit programming and application development.</p><div class="relative header-and-anchor"><h1 id="h-what-is-rollup">What is Rollup</h1></div><div class="relative header-and-anchor"><h3 id="h-mechanism">Mechanism</h3></div><p>The concept of rollup is simple. <strong>Since on-chain computation is expansive, rollup puts computation off-chain and only stores the result on a chain.</strong></p><p>The state root of the Merkle tree is stored at the rollup contract. The root can be used to verify the existence of the leaves. The smart contract knows how to update the state with the info in batches, and the state root switches to the new state root.</p><img src="https://images.mirror-media.xyz/publication-images/DU0bg7kNifTGBhOiO0GAQ.png?height=239&amp;width=801" alt="Source: An Incomplete Guide to Rollups (vitalik.ca)" title="null" class="image-node embed"><img src="https://images.mirror-media.xyz/publication-images/wS0QpyhO_8uct3hz37aQh.png?height=321&amp;width=901" alt="Source: An Incomplete Guide to Rollups (vitalik.ca)" title="null" class="image-node embed"><p>ZK rollup uses ZK proof in batches to verify that the new state root is correct. The ZK proof can be used to verify that after executing txs in batches, we can get the new state root provided in batches. Verifiers can verify the correctness of computations without having to execute them, and verifiers will not even learn what was executed. The characteristic of succinctness helps the ZKRU (ZK rollup) scale-up.</p><p>Optimistic Rollup is not as perfect as ZKRU. For example, ORU has fewer TPS and has a longer withdrawal period since it relies on fraud proof. Therefore, <strong>some ORUs are integrating ZK into their solution.</strong> In this way, they can improve TPS and shorter the withdrawal period. For example, they can add ZK to state transition to create a short fraud-proof time.</p><div class="relative header-and-anchor"><h2 id="h-roles">Roles</h2></div><p>There are three roles in rollup:</p><ul><li><p><strong>User</strong>: Users submit txs on Layer2. They deposit assets to Layer2.</p></li><li><p><strong>Rollup operator</strong>: Rollup operators keep the network running. They generate proof, execute txs, put txs into batches, and challenge fraud proofs.</p></li><li><p><strong>Base layer</strong>: This layer ensures the security of Layer2 and is where consensus lies. The most common base layer for Layer2 is Ethereum</p></li></ul><img src="https://images.mirror-media.xyz/publication-images/Jf36Oy6JUdod0C-QyDP7F.png?height=423&amp;width=911" alt="Source: Understanding rollup economics from first principles" title="null" class="image-node embed"><div class="relative header-and-anchor"><h2 id="h-economic-structure">Economic Structure</h2></div><p>The most important things for the economy of Layer2 are costs and revenue.</p><p>For Layer2, we can break down the cost into the following:</p><ul><li><p>Proof Cost (for Layer2)</p></li><li><p>State Transition</p></li><li><p>Base Layer Tx Cost</p></li><li><p>Data cost on the base layer</p></li></ul><p>One main cost for the network is data storage. This chart illustrates how data is stored. First, users send data (txs) to rollup operators. Then rollup operators package lots of data (txs) into batches and publish it to the base layer.</p><img src="https://images.mirror-media.xyz/publication-images/aqS89vNVJE9Egmd65UimY.png?height=423&amp;width=1180" alt="Source: Understanding rollup economics from first principles" title="null" class="image-node embed"><p>This chart illustrates how much are rollups paying for the base layer and their revenue.</p><img src="https://images.mirror-media.xyz/publication-images/eQssydDWaqkWukjYImGhB.png?height=717&amp;width=1362" alt="Source: L2Fees.info in 3/28/2022" title="null" class="image-node embed"><p>The common revenue for Layer2 is fees and MEV values. Fees vary based on the network status, and MEV varies based on users’ txs. Also, Layer2 may issue new tokens. Tokens will be the reward for rollup operators.</p><div class="relative header-and-anchor"><h1 id="h-common-zk-rollup">Common ZK Rollup</h1></div><p>This graph shows the status of different Layer2. Arbitrum dominates the whole market.</p><img src="https://images.mirror-media.xyz/publication-images/7VSBkMRKd-R0j4rG0IJxi.png?height=1174&amp;width=1360" alt="Source: https://l2beat.com/ on 3/28/2022" title="null" class="image-node embed"><p>This graph illustrates different tech used by different chains. Here is a short explanation:</p><ul><li><p>State Validation</p><ul><li><p><strong>Fraud Proofs</strong>: Fraud proofs allow whitelisted actors watching the chain to prove that the state is incorrect.</p></li><li><p><strong>ZK proofs (ST)</strong>: ZK-STARKS are zero-knowledge proofs that ensure state correctness.</p></li><li><p><strong>INT</strong>: Interactive proofs (INT) require multiple transactions over time to resolve.</p></li><li><p><strong>SN</strong>: Require trust setupExits only: Exits from the network are subject to a period when they can be challenged. The internet network state is left unchecked.</p></li><li><p><strong>1R</strong>: Single round proofs (1R) only require a single transaction to resolve.</p></li></ul></li><li><p>Data availability</p><ul><li><p><strong>On chain</strong>: All of the data needed for proof construction is published on chain.</p></li><li><p><strong>External DAC</strong>: Proof construction relies fully on data that is NOT published on chain. There exists a data availability committee (DAC) that is tasked with protecting and supplying the data.</p></li><li><p><strong>External</strong>: Proof construction relies fully on data that is NOT published on chain.</p></li></ul></li><li><p>Upgradability</p><ul><li><p><strong>Yes</strong>: The code that secures the system can be changed arbitrarily and without notice.</p></li><li><p><strong>21 day or no delay</strong>: There is a 21 days delay unless it is overridden by the 9/15 Security Council multisig.</p></li></ul></li><li><p>Sequencer Failure</p><ul><li><p><strong>Transact using L1</strong>: The user is able to submit a transaction through L1 and force its inclusion on L2.</p></li><li><p><strong>Force trade/ exit to L1</strong>: The user can force the sequencer to include a trade or withdrawal transaction by submitting a request through L1. The user is required to find a counterparty for the trade by out of system means. If the sequencer is down, the user can use the exit hatch to withdraw funds.</p></li><li><p><strong>Force exit to L1</strong>: The user can force the sequencer to include their withdrawal transaction by submitting a request through L1. If the sequencer is down, the user can use the exit hatch to withdraw funds.</p></li><li><p><strong>Propose blocks(ZK)</strong>: The user needs to run their own node and use it to propose new blocks that include otherwise censored transactions. Proposing new blocks requires creating ZK proofs which are very computationally expensive.</p></li><li><p><strong>Exit to L1</strong>: The user is only able to submit an L1 withdrawal request . After that, the user exits the system with their funds.</p></li></ul></li><li><p>Validation Failure:</p><ul><li><p><strong>Escape hatch(MP)</strong>: Users are able to trustlessly exit their collateral by submitting a merkle proof of funds. Positions will be closed using the average price from the last batch state update.</p></li><li><p><strong>Propose blocks</strong>: The user needs to run their own node and use it to propose new blocks to replace the validator.</p></li></ul></li></ul><img src="https://images.mirror-media.xyz/publication-images/uqI-vOvcNWQ3kUboOGAAR.png?height=554&amp;width=1281" alt="Source: https://l2beat.com/ on 3/28/2022" title="null" class="image-node embed"><img src="https://images.mirror-media.xyz/publication-images/o3z92bZzttkZnDnqO1z0M.png?height=1058&amp;width=1409" alt="Source: https://l2beat.com/ on 3/28/2022" title="null" class="image-node embed"><p>Here are the pros and cons listed on <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.ethhub.io/">Ethhub</a> for ZKRU:</p><p><strong>Pros</strong>:</p><ul><li><p>Reduced fees per user transfer.</p></li><li><p>Faster than Optimistic Rollup and Plasma.</p></li><li><p>Blocks will be computed in a parallel computing model, which encourages decentralization.</p></li><li><p>Fewer data contained in each transaction increases the throughput and scalability of layer 2.</p></li><li><p>It does not require a fraud game verification like Optimistic Rollup, which can delay withdrawals by up to two weeks.</p></li></ul><p><strong>Cons</strong>:</p><ul><li><p>The difficulty in computing zero-knowledge proof will require data optimization to get maximum throughput.</p></li><li><p>The initial setup of ZK rollups promotes a centralized scheme (see Security Considerations).</p></li><li><p>The security scheme assumes a level of unverifiable trust.</p></li><li><p>Quantum computing poses a threat to hacking the blockchain.</p></li></ul><p>Currently, most available ZK Layer2 only has limited functionality like payment. ZKSync is one payment layer used by Gitcoin. There is also ZK Layer2 with custom VM enabled. These custom VMs are non-EVM compatible, such as (StarkEx + Cairo, zkSync 1.0 + Zinc).</p><p>ZKEVM is the next milestone for all ZKRU. There are three levels for ZKEVM solutions:</p><ul><li><p><strong>Consensus level:</strong> At this stage, the ZKEVM is equivalent to EVM on Ethereum. It generates proofs for state roots on Ethereum.</p></li><li><p><strong>Bytecode level:</strong> The ZK proof systems play a big role in this ZKEVM. In this stage, state roots generated by ZKEVM are not compatible with the Ethereum EVM. This approach is taken by Scroll, Hermez.</p></li><li><p><strong>Language level:</strong> In this state, there is no real ZKEVM. A transpiler transforms Solidity into ZK-friendly VM that is totally different from EVM. zkSync and Starkware take this approach.</p></li></ul><p>In the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/vitalikbuterin/status/1466411377107558402">Ethereum roadmap</a>, Ethereum will integrate a consensus level ZKEVM.</p><p>Justin Drake from EF expects to see a bytecode level ZKEVM, like Hermez or Scroll to deploy in 2022, but with some limitations:</p><ul><li><p>Small gas limits compare to the current gas limit on Ethereum.</p></li><li><p>Centralized provers due to computation difficulty. Users may start to run their provers in 2023 with GPUs and SNARK proving ASIC by 2024. The development of the hardware will change from CPU, GPU, FPGA to ASIC.</p></li><li><p>Due to development complexity, there will exist bugs.</p></li></ul><p>To further reduce the cost, some ZKRUs are implementing <strong>Volition</strong>, changing their base layer. They plan to store the data off-chain or on their chains.</p><p>There are 16 ZKRU in the market and 7 of them have released the token. The total market cap is $15B, around 0.67% of the total crypto market.</p><div class="relative header-and-anchor"><h2 id="h-polygon">Polygon</h2></div><p>Polygon currently works on 4 ZK products:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://polygon.technology/solutions/polygon-miden/"><strong>Miden</strong></a>: Experiment general computation ZKRU with 1k+ tx/sec; 15min withdraws; 5 secs block time; Privacy enabled.</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://polygon.technology/solutions/polygon-nightfall/"><strong>Nightfall</strong></a>: Nightfall is an ORU with ZK enabled to provide private transactions. Around 9000 gas/tx and 110 TPS. It is designed for Ernst &amp; Young.</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://polygon.technology/solutions/polygon-hermez/"><strong>Hermez</strong></a>: EVM compatible ZKRU; 2k TPS. The network is currently live. The average txs per batch is 1. The daily tx number is nearly zero (data from <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://explorer.hermez.io/">explorer</a>).</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://polygon.technology/solutions/polygon-zero/"><strong>Zero</strong></a>: General Computation ZKRU with recursion enabled; 0.17s to generate proof; 45kb proof size; one account only occupies 5 bits.</p></li></ul><div class="relative header-and-anchor"><h2 id="h-zksync"><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zksync.io/">zkSync</a></h2></div><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zksync.io/">zkSync</a> started in Dec 2019. zkSync is a ZKRU built by Matter Labs. It is based on Plonk and the trusted. Currently, it supports payment function and limited smart contract function with customized programming language Zinc.</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://portal.zksync.io/">zkSync 2.0 testnet</a> is live in Feb featured ZKEVM. <strong>Matter Labs makes most OPCODE into circuits to achieve EVM compatibility.</strong> For now, it does not support ADDMOD, SMOD, MULMOD, EXP, CREATE2, and KECCAK256. In this approach, Solidity will be the first-class citizens.</p><p>The gas in zkSync 2.0 will fluctuate based on the current Layer1 gas price (data storage on Layer1 cost) and ZK proof generation costs.</p><p><strong>To further improve the TPS and lower the cost, zkSync will launch ZKPorter.</strong> Users can choose to store their account data on ZKPorter, which can cost much less than the base layer. If an account is stored on ZK Porter, all its tx can only be stored on ZKPorter. They can not be stored on Ethereum. ZKPorter will be secured by zkSync token holders.</p><img src="https://images.mirror-media.xyz/publication-images/Ju0M1BK62oHKVY2pyxdaj.png?height=483&amp;width=1150" alt="Source: Dune on 3/28/2022" title="null" class="image-node embed"><img src="https://images.mirror-media.xyz/publication-images/C4IKQt2MYJA4yFkvqkM5w.png?height=743&amp;width=1166" alt="Source: Dune on 3/28/2022" title="null" class="image-node embed"><div class="relative header-and-anchor"><h2 id="h-starkware">Starkware</h2></div><p>Starkware was started in May 2018 by core team members of Zcash.</p><p>Starkware has two solutions: StarkEx, StarkNet.</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://starkware.co/starkex/">StarkEx</a> is a SaaS that designs ZKRU for projects like dYdX, DeverseFi, Immutable, Sorare. dYdX is quite successful. Here are some metrics about dYdX. It has around 4k weekly active traders.</p><img src="https://images.mirror-media.xyz/publication-images/jJ3iOwrIbwWtKWurJe_VH.png?height=424&amp;width=1950" alt="Source: Layer 2 Public Dashboard · Metabase (dydx.exchange)" title="null" class="image-node embed"><img src="https://images.mirror-media.xyz/publication-images/i57Ph1O_fOZwDEVIE7swu.png?height=433&amp;width=1950" alt="Source: Layer 2 Public Dashboard · Metabase (dydx.exchange)" title="null" class="image-node embed"><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://starkware.co/starknet/">StarkNet</a> is the permissionless version. StarkNet is not EVM compatible. It uses Cairo to write smart contracts.</p><p>Starkware is also working on ZKEVM. However, they have a different approach. They use <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/NethermindEth/warp">Warp</a> to transpile smart contracts written by solidity to Cairo on StarkNet. This approach is not as good as zkSync.</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/starkware/starknet-alpha-now-on-mainnet-4cf35efd1669">StarkNet alpha with EVM</a> compatible launched in Nov 2021. Currently, the daily transaction number is 1033 (data from <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://voyager.online/blocks?ps=10&amp;p=2">Explorer</a>).</p><p>Similarly, Starkware is also working on off-chain storage. Users can choose to process their tx on Ethereum or off-chain.</p><div class="relative header-and-anchor"><h2 id="h-loopring"><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://loopring.org/#/">Loopring</a></h2></div><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://loopring.org/#/">Loopring</a> is a ZKRU DEX featuring low fees for spot trading with 2k TPS.</p><p>Loopring released its tokens LRC in 2018. Currently, the market cap of Loopring is $1.3m. Loopring has total 65k users, 167 unique users increment everyday, and 10896 txs everyday (data from <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://explorer.loopring.io/blocks">explorer</a>).</p><p>dYdX is a strong competitor of Loopring. In the future, when ZKEVM becomes popular, there would be more competitors joining this market, because development on ZKEVM is faster than developing a new Layer2 DEX.</p><div class="relative header-and-anchor"><h1 id="h-current-state">Current State</h1></div><p>Blockchain space has entered the multichain era. Different chains have different concentrations and have their features, not only look good on paper. We see lots of new chains featured with high TPS in the past. Now, these chains have a strong ecosystem and featured apps. Making a new chain with high TPS is easier than before because of the development tools. <strong>Thus now we emphasize more on featured apps, not paper numbers.</strong></p><p>Moonbeam is such a good example. It has some kind of similar base layer Polkadot and high TPS. This looks similar to most Layer2. Before launch, moonbeam collaborated with lots of projects, like sushi. It launches with a complete ecosystem like top-tier DEX, Lending, and bridges but lacks concentration and featured apps.</p><img src="https://images.mirror-media.xyz/publication-images/hEh0QaDBS2lU_OXUCxPW-.png?height=488&amp;width=1296" alt="Source: Defillama on 3/29/2022" title="null" class="image-node embed"><p>Thus layer2 needs to have features to compete with other chains with high TPS. There would be several potential opportunities in layer2 ecosystems:</p><img src="https://images.mirror-media.xyz/publication-images/47JXQscZ6D-SrzeZPPHja.png?height=554&amp;width=1180" alt="Source: Defillama dYdX on 3/29/2022" title="null" class="image-node embed"><ol><li><p><strong>Apps that utilize high throughput and lower fees of Layer2</strong>. One example is dYdX. As a DEX, it offers CEX like experience.</p></li><li><p>Since all Layer2 use the same base layer, <strong>it would be safer to construct cross-layer2 apps.</strong> For example, aggregate the fragmented liquidity between layer2. Starkware proposes <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/starkware/damm-decentralized-amm-59b329fb4cc3">dAMM</a> to solve this. dAMM allows layer1 LPs to expose to layer2 traders.</p></li><li><p><strong>Development kit to help developers quickly construct app-specific layer2.</strong> This may look like Cosmos SDK and Substrate from Polkadot. The idea is that if an app grows bigger, it will consume more resources on the base layer. To reduce computation cost, it either builds its chain, moves to layer2, or builds its layer2. We see Axie Infinity face the same problem. At that time, building its chain was the only solution. However, a separated chain is isolated and cannot benefit from the base layer ecosystem. Migrating to layer2 looks good, but it is not flexible. The app faces the same constraint as in the base layer. Thus the most promising solution is having its layer2. If the cross-layer2 is convenient and integrated well with the base layer, the app does not lose anything from moving away from the base layer.</p></li><li><p><strong>Better integration with the base layer.</strong> Users don’t feel any difference between layer2 and the base layer. This includes asset bridges and protocol communication.</p></li><li><p><strong>Different kinds of VM.</strong> More powerful ZKEVM or ZKWASM.</p></li><li><p><strong>Layer2 on other chains.</strong> Different chains have different concentrations. A ZKRU is also promising to them. ZK Link team has implemented <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/zkLinkorg/status/1507209829000966145">Groth16 in Solana</a>. Solana focuses on onboarding traditional finance institutions. These institutions need ZK to protect their customer&apos;s privacy.</p></li><li><p><strong>ZK bridge.</strong> Almost all the bridges are not trustless. We at least need to trust someone, like an oracle, to network participants. Although network participants have deposits, it is hard to calculate the slashing condition. The ideal trustless bridge is the ZK bridge. The light client captures the block and generates the proof. In this way, we don’t need to trust what the oracle says. We can verify the proof with a small cost due to SNARKs. The current problem is how to build a block verifier in the ZK circuit. Also, the extensibility sucks. The light client is coupled with blockchain consensus. Thus developers need to build different circuits for different chains.</p></li><li><p><strong>Commercialize ZK algorithm.</strong> There are many commercialized algorithms for professional problems, like advanced solvers for linear programming and GPT-3 from Microsoft. However, if ZK is highly professional and only selected developers can do this, there is room for a commercialized algorithm. Currently, most ZK practitioners are highly educated and hold a Ph.D. degree in CS, Math, or Cryptography.</p></li><li><p><strong>Chips and cloud computation.</strong> If more users move to ZKRU, there would be a growing demand for computation power. Node operators need more computation power to compete for packaging transactions, which is profitable. In the Ethereum roadmap, Ethereum will integrate ZKEVM, which means Ethereum miners also need to compute ZK proofs. Dedicated chips can give node operators more computation power and lower power consumption. Cloud computations can give more users to access ZKRU node operations. This growing demand for dedicated chips and cloud computation may look similar to what we see in the Ethereum mining industry. Miners first use CPU and GPU. Then they change to dedicated FPGA and ASIC. Cloud mining has existed in Ethereum and Bitcoin mining industry for a long time. Another example is AI chips. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/gakonst/status/1441134922127724554">Now every iPhone has dedicated AI chips</a>. If ZK is the new standard tech for privacy, there will be SNARK ASICs for every iPhone.</p></li><li><p><strong>Recursion enabled ZKRU</strong>. Blockchain needs to balance security, decentralization, and TPS. Size plays a big role here. In traditional blockchains, bigger size means centralization, because the node requires advanced hardware. However, smaller size means lower TPS. It is hard to balance TPS and decentralization. Now recursion will change this. Recursion can minimize the blockchain size without harming TPS.</p></li></ol><div class="relative header-and-anchor"><h1 id="h-privacy">Privacy</h1></div><p>ZK has already been used in lots of privacy projects. For example, Tornado cash, Zcash, dark forest.</p><p>There are three stages for privacy projects:</p><ol><li><p><strong>Transaction privacy</strong>: Users can hide their txs</p></li><li><p><strong>General computation privacy</strong>: Currently all the computation process on Ethereum is public. Anyone can see the inputs, outputs, and state transition.</p></li><li><p><strong>Function privacy</strong>: Sometimes functions’ names leak info. For example, <code>mint()</code> often means mint tokens.</p></li></ol><p>The total market cap of the private sector is around $10B, around 0.45% of the total crypto market. The daily trading volume is around $1B.</p><div class="relative header-and-anchor"><h2 id="h-tornado-cash">Tornado Cash</h2></div><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://tornado.cash/"><strong>Tornado Cash</strong></a><strong> is a smart contract-based privacy transaction tool.</strong> It is used to hide the cash flow. It now supports Ethereum, BSC, Polygon, Optimism, Arbitrum, Gnosis, and Avalanche.</p><p>It achieves privacy for the sake of usability. Deposit, wait and withdraw, the user can get the clean money.</p><p>ZK is used in users’ deposit and withdrawal processes.</p><img src="https://images.mirror-media.xyz/publication-images/pKLi6wCfklQabsR1g0YZ4.png?height=479&amp;width=1194" alt="Source: Dune on 3/28/2022" title="null" class="image-node embed"><img src="https://images.mirror-media.xyz/publication-images/ky58TULHYyl3A7wgSwh6A.png?height=472&amp;width=796" alt="Source: Dune on 3/28/2022" title="null" class="image-node embed"><img src="https://images.mirror-media.xyz/publication-images/QHmqui4zR8HckWRzPQki2.png?height=652&amp;width=1113" alt="Source: Trading View 3/28/2022" title="null" class="image-node embed"><div class="relative header-and-anchor"><h2 id="h-zcash">Zcash</h2></div><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://z.cash/">Zcash</a> is a blockchain that use zk-SNARK to achieve private transactions. Unlike Tornado Cash, <strong>Zcash customize the blockchain to achieve privacy transaction.</strong></p><img src="https://images.mirror-media.xyz/publication-images/sCT8ZSyCzLGDpZUx-pjOA.png?height=774&amp;width=2476" alt="Source: Zcash Transactions Chart on 3/28/2022" title="null" class="image-node embed"><img src="https://images.mirror-media.xyz/publication-images/-vjMawjZMF1qwLkbuHIQ6.png?height=730&amp;width=991" alt="Source: Trading View 3/28/2022" title="null" class="image-node embed"><div class="relative header-and-anchor"><h2 id="h-zecrey"><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.zecrey.com/">Zecrey</a></h2></div><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.zecrey.com/">Zecrey</a> is a privacy payment application supporting Ethereum, Polygon, BSC, Near, and Avalanche. It is on the first level of privacy, transaction privacy. Zecrey offers a browser wallet to help users privately transfer and swap tokens. To swap and transfer privately, users need to deposit tokens into Zecrey layer2, powered by Plonk. Everything that happens in layer2 can be private. Zecrey layer2 also supports cross-chain swap.</p><img src="https://images.mirror-media.xyz/publication-images/02FP6bloAIaG_xMAicXB-.png?height=682&amp;width=1393" alt="source: Zecrey" title="null" class="image-node embed"><p>Currently, Zecrey has around 10 txs everyday (data from <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://explorer.zecrey.com/">explorer</a>)</p><div class="relative header-and-anchor"><h2 id="h-suterusu"><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://suterusu.io/">Suterusu</a></h2></div><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://suterusu.io/">Suterusu</a> is a private payment application supporint Ethereum, BSC, Fantom, and Polygon. It uses layer2 to protect users’ transaction privacy. It also has a cross-chain bridge, which transfers $SUTER between ETH and BSC.</p><img src="https://images.mirror-media.xyz/publication-images/RZcnV7SuuX5SZD0pWOT-w.png?height=460&amp;width=668" alt="Source: Suterusu" title="null" class="image-node embed"><p>Suterusu has total 15k users and 24k deposits. The user increment stagnates. Its market cap is around $10m.</p><div class="relative header-and-anchor"><h2 id="h-dark-forest"><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zkga.me/">Dark Forest</a></h2></div><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zkga.me/">Dark Forest</a> is an MMO. Players need to send energy to other planets to occupy them. The location of planets is kept secret. Players need to find these planets themselves (hash collision). <strong>The ZK is used to prove locations related operations:</strong></p><ul><li><p><strong>Planet Initialization</strong></p></li><li><p><strong>Planet resources movement</strong></p></li></ul><p>In v0.6 round 1, 1700 players joined the game, and 700 got the next round. During this round, players made 2 million txs, spending around 1.5 trillion gas. Suppose it is on Ethereum, with an 80 gas fee. So the total gas will cost 120 ETH.</p><div class="relative header-and-anchor"><h2 id="h-stealth-airdrop"><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://stealthdrop.xyz/">Stealth Airdrop</a></h2></div><p><strong>The </strong><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://stealthdrop.xyz/"><strong>stealth airdrop</strong></a><strong> allows users to get airdrop anonymously.</strong> The user first uses their airdrop wallet to generate proof. Then they can use other wallets to get the airdrop token with the proof.</p><p>A16z also implements something similar <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/a16z/zkp-merkle-airdrop-contracts">a16z/zkp-merkle-airdrop-contracts (github.com)</a>.</p><p>This example shows the application of ZK in voting.</p><img src="https://images.mirror-media.xyz/publication-images/8PU96qAstKTdL5PD5klY1.png?height=2187&amp;width=4096" alt="Source: nalinbhardwaj/stealthdrop: Anonymous Airdrops using ZK-SNARKs (github.com)" title="null" class="image-node embed"><div class="relative header-and-anchor"><h2 id="h-zkproof-of-buffiness"><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://dorahacks.io/buidl/2121">zkProof of Buffiness</a></h2></div><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://dorahacks.io/buidl/2121">This project</a> is on ETHDanver. <strong>Users can generate ZK proof to show that they have a buffiness without revealing anything about themselves other than the user’s Buffiness.</strong></p><p>This is an application of ZK in Identity.</p><img src="https://images.mirror-media.xyz/publication-images/PhpLiKnOoI34h8Sngowb0.png?height=723&amp;width=785" alt="Source: zkPoB" title="null" class="image-node embed"><div class="relative header-and-anchor"><h2 id="h-wrap-up">Wrap up</h2></div><ol><li><p><strong>Small privacy market.</strong> Privacy projects started very early. Zcash started in 2016. However, the whole privacy market only takes 0.45% of the total crypto market.</p></li><li><p><strong>Benefit from higher privacy standards.</strong> Users are pursuing stronger privacy protections without sacrificing usability. Especially in the mobile phone industry, Google and Apple are pushing stricter privacy standards. EU proposes regulations to protect consumers’ privacy. Infrastructure companies like let’s encrypt which offer SSL certificates benefit from this. In the future, ZK may be adopted by these giant companies and there would be huge opportunities for ZK infrastructures.</p></li><li><p><strong>A must for onboard institutions.</strong> Big institutions have the responsibility to protect customers’ privacy and some blockchains are trying to onboard these big institutions. ZK will be a must for this scenario.</p></li><li><p><strong>Benefit DAO governance and Identity.</strong> Anonymity is an important aspect of democratic governance. ZK can empower privacy preserved governance and let participants make their own decisions without distracting by others’ decisions. Identity can also benefit from privacy. Users can reveal their identity without showing their actual address.</p></li><li><p><strong>Ignore ZK, focus on product usability.</strong> ZK can better protect privacy, but a product is not all about ZK. ZK is more tech focus and we need to emphasize the usability of the product. Normally more privacy means bad usability, but usability is the most crucial compatibility. Thus focus more on usability, market, and the team.</p></li></ol><div class="relative header-and-anchor"><h2 id="h-other-interesting-project">Other interesting project</h2></div><div class="relative header-and-anchor"><h3 id="h-zkrepel"><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zkrepl.dev/">ZKRepel</a></h3></div><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zkrepl.dev/">ZKRepel</a> appeared in GR13 and got $5k. <strong>This is an online playground for ZK circuits.</strong> Developers can quickly write and test circuits in ZKRepel without setting local development environments. It is similar to <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://remix.ethereum.org/">Remix</a>.</p><p>We see a paradigm shift from local development to cloud-based development. There are famous products like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://codesandbox.io/">Codesandbox</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://codepen.io/">Codepen</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/features/codespaces">Codespaces</a>. With these products, developers can continuously work anywhere anytime and set up a new development environment quickly. <strong>Development environment as infrastructure is a big trend today.</strong> This is proposed by Github, and Github practiced it with Codespaces.</p><p>There are no clear statistics about ZK developers. However, from the data on Github, it is over 500x less than solidity developers.</p><img src="https://images.mirror-media.xyz/publication-images/ekn0T5M1jQLKvMONkwSSV.png?height=852&amp;width=869" alt="Source: ZKRepel" title="null" class="image-node embed"><div class="relative header-and-anchor"><h1 id="h-find-more-zk-project">Find more ZK project</h1></div><img src="https://images.mirror-media.xyz/publication-images/ksfSx-ja-dwa8XcpuOYod.png?height=210&amp;width=890" alt="Source: How to fund your ZK Project?" title="null" class="image-node embed"><p>There are VCs or grants there focusing on ZK projects:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://gitcoin.co/">ZKTech Gitcoin Grants</a>: The first round matched $100k among 19 projects.</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://0xparc.org/">0xPARC Grants</a>: Supporting application level innovation on Ethereum and other decentralized platforms.</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zkdao.io/">zkDAO</a>: Newly launched $200M backed by zkSync and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.bitdao.io/">BitDAO</a> to support zkSync ecosystem. 7.5% of $200M will be used in grants.</p></li><li><p>Polygon ZK Fund</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/Aztec-Grants-19896948e74b4024a458cdeddbe9574f">Aztec Grants</a>: Current focus on bridges, tooling, and analytics.</p></li><li><p>Harmony ZK Fund: $10M fund for ZK and privacy research.</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zkvalidator.com/">ZK Validator</a>: Fund focusing on ZK. Featured investments are Aztec, Penumbra, Ironfish, Anoma, zkSync, Aleo, Diversfi</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.zprize.io/">ZPrice</a> from Aleo</p></li></ul><div class="relative header-and-anchor"><h1 id="h-conclusion">Conclusion</h1></div><p>ZK is a really promising technology that can bring impossible things to possible. In recent years, there have been lots of breakthroughs happening here. These breakthroughs like stronger performance, upgradability and no need for trust setup push ZK to the applied stage. So if we are going to look at a ZK project, we need to care about these theoretical numbers:</p><ul><li><p>Prover time</p></li><li><p>Verifier time</p></li><li><p>Proof size</p></li><li><p>Trusted setup phase</p></li><li><p>Reference String Size</p></li><li><p>CRS(common reference string) support</p></li><li><p>Upgradable SRS(structured reference string) support</p></li><li><p>Recursion Support</p></li><li><p>Post-quantum Secure</p></li><li><p>Cryptography assumptions</p></li></ul><p>ZKEVM is the next milestone for ZKRU. There are three stages for ZKEVM:</p><ul><li><p>Consensus level</p></li><li><p>Bytecode level</p></li><li><p>Language level</p></li></ul><p>ZK just enters the applied stage. The ecosystem is still empty. Not every characteristic of ZK is well used and applied to new products. People can still get inspiration from this cutting-edge theory. The following direction can best be beneficial from ZK tech:</p><ul><li><p>Apps that need high TPS and lower fee</p></li><li><p>Cross Layer2 communication protocol/apps</p></li><li><p>Aggregate fragment liquidity in Layer2</p></li><li><p>Development kit/framework</p></li><li><p>Cloud-based development tools</p></li><li><p>Cross Layer2 Layer1 apps with unique features</p></li><li><p>Different zkVM</p></li><li><p>ZK Bridge</p></li><li><p>Applied ZK on other chains</p></li><li><p>Layer2 with recursion enabled</p></li><li><p>ZK in DAO and community governance</p></li><li><p>Commercialize ZK algorithm</p></li><li><p>Chips and cloud computation</p></li><li><p>Recursion in ZKRU</p></li></ul><p>There are two main theses for applying ZK: Rollup and Privacy. Rollup is more promising than privacy. Privacy does not make sense because it is designed to be transparent. The privacy culture is somewhere against the transparent spirit. Also, privacy may have compliance problems. In Web2 era, we do not see the prosperity of privacy apps. In the same category, the top product does not heavily focus on privacy, although more and more institutions have improved their privacy protections. Privacy does have a tradeoff. Most of the time is availability, which is the key to users.</p><p>When looking at ZK applications, the following points are important:</p><ul><li><p>ZK is a fancy term. Without ZK, is the real product still competitive and has good UX.</p></li><li><p>ZK is complex and does an extra burden on the development speed.</p></li><li><p>ZK benefits DAO governance and identity</p></li><li><p>ZK will help institutions onboard the blockchain</p></li></ul><p><strong>Learn more</strong></p><p>If you would like to learn more about building a ZK project, check out this <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/Pre-program-Topic-Sampler-46456f891dc541a7a780c79f8ced463c">tutorial</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/ventali/awesome-zk">Awesome-zk</a>. Also, keep an eye on <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://gitcoin.co/grants/543/the-moonmath-manual-to-zk-snarks#:~:text=Least%20Authority%20is%20a%20consulting,the%20production%20launch%20and%20after.">this</a>.</p><p>I worked as a tech associate for Fundamental Lab. You can find me on Twitter <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/glazecl">here</a> and Fundamental Lab <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/FundamentalLabs">here</a>.</p><div class="relative header-and-anchor"><h1 id="h-reference">Reference</h1></div><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://vitalik.ca/general/2021/01/05/rollup.html">An Incomplete Guide to Rollups</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://dcbuilder.mirror.xyz/QX_ELJBQBm1Iq45ktPsz8pWLZN1C52DmEtH09boZuo0">The ultimate guide to L2s on Ethereum</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://barnabe.substack.com/p/understanding-rollup-economics-from?utm_source=url&amp;s=r#footnote-anchor-1">Understanding rollup economics from first principles</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://forum.celestia.org/t/ethereum-rollup-call-data-pricing-analysis/141">Ethereum Rollup Call Data Pricing Analysis - Research</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/zero-knowledge-validator/how-to-fund-your-zk-project-d8267aaaed53">How to fund your ZK Project?</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://blog.ethereum.org/2016/12/05/zksnarks-in-a-nutshell/">zkSNARKs in a nutshell</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.ethhub.io/ethereum-roadmap/layer-2-scaling/zk-starks/">ZK-STARKs</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://vitalik.ca/general/2019/09/22/plonk.html">Understanding PLONK</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://consensys.net/blog/developers/introduction-to-zk-snarks/">Introduction to zk-SNARKS</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/coinmonks/comparing-general-purpose-zk-snarks-51ce124c60bd">Comparing General Purpose zk-SNARKs</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://consensys.net/blog/blockchain-explained/zero-knowledge-proofs-starks-vs-snarks/">Zero-Knowledge Proofs: STARKs vs SNARKs</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zhuanlan.zhihu.com/p/40245832">Comparison of Different zk-SNARKs</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zhuanlan.zhihu.com/p/145972091">Compare zk-SNARKs in practice</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zeroknowledge.fm/221-2/">Episode 221: Funding the Next Wave of Zero Knowledge Tech</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/@ronaldmannak/how-zero-knowledge-proofs-are-changing-blockchain-in-non-technical-terms-3d1fc0cab371">How Zero Knowledge Proofs Are Changing Blockchain (in non-technical terms)</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.reddit.com/r/ethereum/comments/rwojtk/ama_we_are_the_efs_research_team_pt_7_07_january/">[AMA] We are the EF&apos;s Research Team (Pt. 7: 07 January, 2022) : ethereum</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://blog.matter-labs.io/zksync-2-0-hello-ethereum-ca48588de179">https://blog.matter-labs.io/zksync-2-0-hello-ethereum-ca48588de179</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/watch?v=_Zcz4Y4yt1Q">ZK Tutorial: An Introduction to SNARK Development with arkworks - Pratyush Mishra - YouTube</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/watch?v=BT88s7_VtC8">&apos;Introduction to Zero Knowledge Proofs&apos; - Elena Nadolinski - YouTube</a></p>]]></content:encoded>
            <author>inevitable@newsletter.paragraph.com (Inevitable)</author>
            <enclosure url="https://storage.googleapis.com/papyrus_images/fc824d93bb755f6c579a4ab618779317.png" length="0" type="image/png"/>
        </item>
    </channel>
</rss>