<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by xpara on Medium]]></title>
        <description><![CDATA[Stories by xpara on Medium]]></description>
        <link>https://medium.com/@xpara?source=rss-5760e4d9fdcb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*PVRTPhRJLmYbiqTz5eKohA.png</url>
            <title>Stories by xpara on Medium</title>
            <link>https://medium.com/@xpara?source=rss-5760e4d9fdcb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 00:08:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@xpara/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[모듈러 하모니에 초대합니다]]></title>
            <link>https://medium.com/fourpillars/%EB%AA%A8%EB%93%88%EB%9F%AC-%ED%95%98%EB%AA%A8%EB%8B%88%EC%97%90-%EC%B4%88%EB%8C%80%ED%95%A9%EB%8B%88%EB%8B%A4-2912f3364d5c?source=rss-5760e4d9fdcb------2</link>
            <guid isPermaLink="false">https://medium.com/p/2912f3364d5c</guid>
            <dc:creator><![CDATA[xpara]]></dc:creator>
            <pubDate>Thu, 28 Mar 2024 06:12:16 GMT</pubDate>
            <atom:updated>2024-03-28T06:12:16.583Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eIOXHXWuBMM_QOC1" /></figure><p>모듈러 블록체인의 개념은 핵심 블록체인 기능이 별개의 구성 요소로 세분화되면서 생겨났다. 2023년에는 각 세분화된 영역 내에서 혁신을 목표로 하는 프로젝트가 등장하였다. 반면 2024년에는 이러한 프로젝트 간의 협업의 중요성이 부각될 것으로 예상된다. 모듈러 블록체인 프로젝트들은 필연적으로 상호의존되기에, 협업은 업계에서 중요한 역할을 할 것이다.</p><p>본 호스트들은 업계 종사자들과의 교류를 하는 과정에서 개발자, 리서처, 프로젝트간 의견과 목표를 공유할 필요성을 인식했다. 이에 따라 셀레스티아, 어베일, 니어, 이니티아, 헤로도토스, 스타크넷 등 업계 리더를 포함한 다양한 팀을 초청했다. 모듈러 블록체인의 미래에 대한 인사이트를 얻고 이러한 프로젝트들이 어떻게 서로 시너지를 낼 수 있는지 이해하는 것이 본 행사 기획의 목표이다.</p><h3>1. RSVP</h3><p><strong>Co-hosted by</strong>: <a href="https://twitter.com/radius_xyz"><em>Radius</em></a><em>, </em><a href="https://twitter.com/FourPillarsFP"><em>Four Pillars</em></a><em>, </em><a href="https://twitter.com/ChainLight_io"><em>ChainLight</em></a><em>, </em><a href="https://twitter.com/DecipherGlobal"><em>Decipher</em></a></p><p><strong>날짜</strong> : <em>2024년 3월 29일 (금요일) 오전 11시 30분 — 오후 6시 30분(한국 시간)</em></p><p><strong>Location</strong> : 서울시 강남구 강남대로 374, 20층 (<a href="https://maps.app.goo.gl/kG9aCzkMgCNbDQys9">구글 지도</a>, <a href="https://naver.me/FZJpZm2R">네이버 지도</a>)</p><p><a href="https://lu.ma/modularharmony">Modular Harmony · Luma</a></p><h3>2. 타임라인</h3><ul><li>11:30–12:00 | <strong>네트워킹</strong></li><li>12:00–12:30 | <strong>ChainLight</strong></li><li>12:30–13:00 | <strong>Celestia &amp; Four Pillars</strong></li><li>13:00–13:30 | <strong>Fhenix</strong></li><li>13:30–14:00 | <strong>Initia</strong></li><li>14:00–14:30 | <strong>Avail</strong></li><li>14:30–15:00 | <strong>네트워킹</strong></li><li>15:00–15:30 | <strong>Scroll</strong></li><li>15:30–16:00 | <strong>Radius</strong></li><li>16:00–16:30 | <strong>Herodotus</strong></li><li>16:30–17:00 | <strong>Axelar</strong></li><li>17:00–17:30 | <strong>Near</strong></li><li>17:00–17:30 | <strong>네트워킹</strong></li></ul><h3>3. 스피커와 주제</h3><h4>Chainlight: “보안 관점에서 보는 모듈러 블록체인 아키텍처”</h4><p><strong>(</strong><a href="https://twitter.com/ChainLight_io"><strong>Twitter</strong></a><strong>)</strong></p><p>ChainLight는 스마트 컨트랙트를 보호하고 블록체인에서 성공할 수 있도록 맞춤형 보안 솔루션을 제공한다. 그리고 이번 이벤트에서 모듈형 블록체인 아키텍처의 잠재적 위험에 대해 이야기할 예정이다.</p><p>“<a href="https://4pillars.io/ko/articles/is-modular-blockchain-at-risk/public">모듈러 블록체인의 보안 리스크</a>”에 대한 Chainlight의 최근 리서치도 확인해보자.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3p1GwdJeDFpJw6m4" /></figure><h4>Celestia and Four Pillars: “모듈러 블록체인의 역사”</h4><p><strong>(</strong><a href="https://twitter.com/CelestiaOrg"><strong>Twitter</strong></a><strong>)</strong></p><p>셀레스티아는 누구나 쉽게 자신만의 블록체인을 안전하게 운영할 수 있는 DA 인프라를 제공하는 프로젝트이다. 이번 행사에서는 셀레스티아의 닉과 포필러스의 희창이 모듈형러 블록체인의 역사에 대해 이야기할 예정이다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*abQ-vYu1BNv_ASeO" /></figure><h4>Fhenix: “프라이버시 — FHE vs ZKP”</h4><p><strong>(</strong><a href="https://twitter.com/FhenixIO"><strong>Twitter</strong></a><strong>)</strong></p><p>피닉스는 이더리움에 암호화된 데이터에 대한 연산을 제공하는 최초의 완전동형암호화(FHE) 기반 L2이다. FHE(완전 동형 암호화)와 그들의 제품에 대해 발표할 계획이다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xmUCJZ63VydhIKox" /></figure><h4>Initia: “롤업의 미래”</h4><p><strong>(</strong><a href="https://twitter.com/initiaFDN"><strong>Twitter</strong></a><strong>)</strong></p><p>Initia는 연결되고 통합된 (Interwoven) 모듈 네트워크 시스템을 도입하여 L1 오케스트레이션 계층, L2 네트워크, 통신 프로토콜을 아우르는 독특한 아키텍처를 제공한다. 롤업 프레임워크를 통해 Initia는 자체 L2 롤업을 만들 수 있게 하면서, 생태계 내에서 연결성을 보장 가능하다. 이들은 “롤업의 미래”에 대해 이야기할 예정이다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FC-kPJSYd9laHrJM.png" /></figure><h4>Avail: “롤업의 파편화 문제의 해결책”</h4><p><strong>(</strong><a href="https://twitter.com/AvailProject"><strong>Twitter)</strong></a></p><p>Avail은 모듈러 실행 레이어가 신뢰를 최소화하는 방식으로 확장하고 상호 운용할 수 있는 웹3 인프라 레이어이다. 현재 블록체인 시스템의 문제인 유동성 파편화는 DA를 통해 해결할 수 있다는 것에 대한 발표를 진행할 예정이다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xkFSicNdyBgOJHQv" /></figure><h4>Scroll: “영지식 증명의 현재 개발자 경험”</h4><p><strong>(</strong><a href="https://twitter.com/Scroll_ZKP"><strong>Twitter</strong></a><strong>)</strong></p><p>스크롤은 바이트코드 수준의 호환성을 갖춘 네이티브 L2 zkEVM을 구축하고 있다. 덕분에 기존 이더리움 앱을 그대로 스크롤에서 운영할 수 있다. 스크롤은 영지식 증명의 개발자 경험에 대한 발표를 진행할 예정이다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0-UZRe1LzkD9vT9T" /></figure><h4>Radius: “롤업을 위한 컴포저빌리티 솔루션”</h4><p><strong>(</strong><a href="https://twitter.com/radius_xyz"><strong>Twitter</strong></a><strong>)</strong></p><p>래디우스 공유 시퀀싱 레이어는 MEV 보호, 검열 저항, 재정적 지속 가능성으로 롤업 탈중앙화를 제공합니다. 이 팀은 현재 구축 중인 공유 시퀀싱 레이어에 대해 이야기할 예정이다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ft74PWARti8YexQM" /></figure><h4>Herodotus: “스토리지 증명과 Herodotus 데이터 프로세서”</h4><p><strong>(</strong><a href="https://twitter.com/HerodotusDev"><strong>Twitter</strong></a><strong>)</strong></p><p>헤로도토스는 스마트 콘트랙트를 위해 특별히 설계된 안전한 온체인 데이터 스토리지와 증명 기반 데이터 액세스 솔루션을 제공한다. 이 플랫폼은 스토리지 증명과 같은 기능을 통해 이더리움 레이어 전반에서 현재, 과거 및 다른 체인 데이터에 액세스할 수 있도록 지원한다. API는 스토리지 증명 생성에 드는 비용을 상호화하여 개발자의 프로세스를 간소화하므로 상당한 시간을 절약할 수 있다.</p><p>이 플랫폼은 다양한 블록체인을 지원하며 거버넌스, 계정 복구, 보험, 브리징, 랜다오 액세스, 크로스체인 대출, 게임, 보안 강화를 위한 회로 차단기 구현 등 다양한 사용 사례를 제공하기에 이에 대한 발표를 진행할 예정이다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2TDxhcegDOuDkLjL" /></figure><h4>Axelar: “블록체인간 상호운용성”</h4><p><strong>(</strong><a href="https://twitter.com/axelarnetwork"><strong>Twitter</strong></a><strong>)</strong></p><p>Axelar는 프로그래밍 가능한 Web3 상호운용성 플랫폼으로, 차세대 인터넷 애플리케이션을 수십억 명의 사용자로 확장하는 것을 목표로 한다. 다른 크로스체인 커넥터와 달리 Axelar는 지분 증명 블록체인이며 이번 이벤트에서 상호운용성에 대해 이야기할 예정이다.₩</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IWdEF2VojInnrgpN" /></figure><h4>Near: “Near DA &amp; 체인 추상화”</h4><p><strong>(</strong><a href="https://twitter.com/NEARProtocol"><strong>Twitter</strong></a><strong>)</strong></p><p>NEAR는 현재 체인 추상화 스택을 구축하여 빌더들이 수십억 명의 사용자와 모든 블록체인에서 확장 가능한 앱을 만들 수 있도록 지원하고 있다. 이번 이벤트에서 체인 추상화의 개념을 소개할 예정이다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*keudR2kawiOcRpk7" /></figure><h3>아래 트윗을 통해 행사의 테마에 대해 더 알아보세요:</h3><p>Theme1: “과거”</p><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//twitter.com/FourPillarsKR/status/1770767493314781651%3Fs%3D20&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/edbf8a3e4b4a93b1106bf76c482a8f50/href">https://medium.com/media/edbf8a3e4b4a93b1106bf76c482a8f50/href</a></iframe><p>Theme2. “현재”</p><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//twitter.com/FourPillarsKR/status/1771515076190908892%3Fs%3D20&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/1a5c9d231e9f637d6fad6877b0a371af/href">https://medium.com/media/1a5c9d231e9f637d6fad6877b0a371af/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2912f3364d5c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fourpillars/%EB%AA%A8%EB%93%88%EB%9F%AC-%ED%95%98%EB%AA%A8%EB%8B%88%EC%97%90-%EC%B4%88%EB%8C%80%ED%95%A9%EB%8B%88%EB%8B%A4-2912f3364d5c">모듈러 하모니에 초대합니다</a> was originally published in <a href="https://medium.com/fourpillars">Four Pillars</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snapshot on zkSync and a Comparison with OP-Stack]]></title>
            <link>https://medium.com/fourpillars/snapshot-on-zksync-and-a-comparison-with-op-stack-1a89d9836f5b?source=rss-5760e4d9fdcb------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a89d9836f5b</guid>
            <category><![CDATA[four-pillars]]></category>
            <category><![CDATA[zkrollup]]></category>
            <category><![CDATA[zksync]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[rollup]]></category>
            <dc:creator><![CDATA[xpara]]></dc:creator>
            <pubDate>Wed, 12 Jul 2023 08:14:04 GMT</pubDate>
            <atom:updated>2023-10-27T05:40:10.823Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>* </em>Visit the </strong><a href="https://4pillars.io/en"><strong>Four Pillars official website</strong></a><strong> to explore </strong><a href="https://4pillars.io/en/article/25"><strong>this</strong></a><strong> and other research articles!</strong></p><p><strong><em>Disclaimer:</em></strong><em> This article is intended for general information purposes only and does not constitute legal, business, investment, or tax advice. It should not be used as a basis for making any investment decisions or relied upon for accounting, legal, or tax guidance. References to specific assets or securities are for illustrative purposes only and do not represent recommendations or endorsements. The opinions expressed in this article are those of the author and do not necessarily reflect the views of any affiliated institutions, organizations, or individuals. The opinions reflected herein are subject to change without being updated.</em></p><p><strong>Author:</strong> <a href="https://medium.com/u/5760e4d9fdcb">xpara</a> (<a href="https://twitter.com/xparadigms">@xparadigms</a>)</p><p><strong>Reviewer:</strong> <a href="https://medium.com/u/5e5fe9213d31">100y</a> (<a href="https://twitter.com/100y_eth">@100y_eth</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P_3rV6rplIldnB-1IET5PA.png" /></figure><h4>Key Takeaways</h4><ul><li>Matterlabs, the company behind zkSync, has shown consistent dedication to developing its unique zkEVM and building great products.</li><li>At present, the zkSync Era is experiencing growth, reflected in impressive metrics and the deployment of various projects.</li><li>Understanding the architecture of zkSync can be achieved by examining its three key layers: execution, settlement, and data availability.</li><li>ZK-Stack, the underlying codebase for zkSync, and OP-Stack may share a similar philosophy. Still, distinct differences can be identified when viewed from the perspectives of dapp developers, core developers, and business operators.</li></ul><h3>1. Footsteps of zkSync</h3><h4>1.1 Brief History of zkSync</h4><p>zkSync’s journey began at EthCC in 2019 as a small team striving to implement Rollup with zkSNARK. Their proof of concept was introduced in January 2019, which involved using a zkSNARK to operate a sidechain in Ethereum. Since then, they had decentralization as a core principle. They focused on storing all transaction data in Ethereum and pondered a multi-operator model to handle the sequencer decentralization model.</p><p>By June 2020, the team had made significant strides with the launch of zkSync v1 mainnet. This version was a crucial milestone in their journey, representing the practical implementation of their initial concept on a broader scale. A year later, in June 2021, they pushed the boundaries further with the release of the zkSync 2.0 testnet, known as Era.</p><p>Fast forward to March 2023, the full mainnet of zkSync was successfully launched, marking a significant accomplishment for the team. This development represented the maturity of the platform and its readiness for broader adoption. This launch has been the first mainnet zkEVM to be deployed in Ethereum Rollup ecosystem.</p><p>At present, the team is working towards making zkSync open-source. This will allow separate deployments of zk rollup chains from a ZK-Stack, enabling teams to launch their own customized rollups. Additional details on this exciting development are expected to be announced shortly.</p><p>All Tweets by zkSync and Matterlabs can be found at <a href="https://airtable.com/shrwKzWoluPbtW81o">this link</a>.</p><h4>1.2 Funding</h4><p>Matterlabs, the team behind zkSync, has amassed substantial funding to further its mission. Through a recent Series C round in November 2022, they have successfully raised their total funding to $458 million. This figure encompasses various investment rounds and a dedicated ecosystem fund. This includes a separate $200 million dedicated ecosystem fund, $200 million Series C, $50 million Series B led by a16z, and $8 million in Series A and Seed Round.</p><ul><li>Seed Round: The seed round saw Matterlabs secure $2 million from investors including PlaceholderVC, Hashed, and others. This early financial boost provided an essential foundation to begin their work on the zkSync project.</li><li>Series A: Following the seed round, Matterlabs raised an additional $6 million during their Series A funding round. This new influx of funds provided the fuel to push forward their research and development and bring zkSync closer to realization.</li><li>Series B: Matterlabs’ momentum continued to grow, and during the Series B funding round, they raised <a href="https://twitter.com/zksync/status/1457680594880634881">$50 million</a>, primarily led by a16z.</li><li>Series C: Matterlabs raised $200 million. The details of this funding round can be found in <a href="https://techcrunch.com/2022/11/16/matter-labs-the-company-behind-zksync-raises-200-million-to-scale-ethereum/">this Techcrunch article</a> as well as in their <a href="https://blog.matter-labs.io/announcing-200-million-in-new-funding-to-accelerate-the-zksync-mission-a9d59c1583c8">own announcement</a>.</li><li>Lastly, in addition to these investment rounds, Matterlabs also established a dedicated $200 million ecosystem fund. This fund is allocated specifically to fostering the growth and development of the broader zkSync ecosystem.</li></ul><p>All these resources combined have given Matterlabs the financial backing necessary to advance their zkSync mission, accelerate its pace of development, and foster growth within the wider ecosystem. Totally, Matterlabs had one of the biggest funding in major blockchain projects</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LKTwAGf3eh0JpgkJAghQGQ.png" /><figcaption>(Source: <a href="https://twitter.com/zksync_insider_/status/1674032901069983745">zkSync Insider</a>)</figcaption></figure><h3>2. Current Ecosystem</h3><h4>2.1 Overall Status</h4><p>zkSync has seen significant progress and growth over the years. zkSync v1, now known as zkSync Lite, hit a milestone in December 2020 when it surpassed $1 million in Total Value Locked (TVL). From then onwards, the TVL of the zkSync ecosystem has grown exponentially. As of now, it has exceeded $650 million, positioning zkSync as the <a href="https://l2beat.com/scaling/summary">third-largest Layer 2 Rollup</a> in the Ethereum ecosystem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bBanACkD35lYXuxutrZKNw.png" /><figcaption>(Source: <a href="https://l2beat.com/scaling/tvl">L2BEAT — The state of the layer two ecosystem</a>)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZqgpSRA88uYOa8x2RPCr2A.png" /><figcaption>(Source: <a href="https://l2beat.com/scaling/projects/zksync-era">zkSync Era — L2BEAT</a>)</figcaption></figure><p>Fast forward to June 2023, zkSync holds some impressive key metrics. It stands as the number one rollup by transactions per second (TPS), although it slightly trails Arbitrum over a 30-day period. It boasts the fastest TVL growth rate and is the leading rollup by aggregate fees paid on Layer 1.</p><p>Furthermore, the number of unique wallets is also rising, indicating an increase in user adoption. Simultaneously, the amount of Ethereum bridged into zkSync is also growing.</p><h4>2.2 Major Projects</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FTfojpGL2rCpRw-m8owa1A.png" /><figcaption>(Source: <a href="https://ecosystem.zksync.io/">zkSync Ecosystem — The era of dapps</a>)</figcaption></figure><p><strong>2.2.1 Argent</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*Wg-5LyGVqS3e7leetm-f5Q.png" /></figure><p>Argent is a non-custodial mobile wallet for Ethereum-based cryptocurrencies that provides a secure and user-friendly experience for managing digital assets.</p><p>Argent has a unique security model that is designed to protect user assets even if the user’s phone is lost or stolen. This model includes features like biometric authentication, social recovery, and on-chain smart contract wallets. Argent is a wallet with multisig security and social recovery, which Ethereum Founder Vitalik Buterin says is his “preferred method for securing a wallet.”</p><p><strong>2.2.2 SyncSwap</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rhDei8JNGyXY7ArRW2IuXQ.png" /></figure><p>SyncSwap is the <a href="https://www.notion.so/c66c12af42d44de091082cee98a376c4?pvs=21">largest DeFi protocol</a> in zkSync Era. It is a DEX based on AMM and provides various important features in AMM design. It provides an AMM pool for various tokens having 62 pools and important properties are like those below</p><ul><li>Stableswap: The multi-pool allows SyncSwap to aggregate multiple different pool models, each with its own optimal scenarios, making trading highly efficient. The first pool model to land will be the Stable Pool supports efficient stablecoin trading compared with the general-purpose Classic Pool, making SyncSwap enter the massive stablecoin markets.</li><li>Smart Router: It performs as a liquidity aggregator to aggregate different liquidity pools and various pool models to deliver the best price effortlessly. Providing multi-hops and path splits</li><li>Dynamic Fees: SyncSwap introduces dynamic fees on its DEX, allowing users to customize trading fees based on market conditions and community preferences. The four facets include variable fees, directional fees, fee discounts, and fee delegation. These features provide flexibility and adaptability for users to optimize their trading strategies and align with the changing dynamics of the market and community.</li></ul><p><strong>2.2.3 Tevaera</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*jIHC9GxkykqT8ZOXquRRog.png" /></figure><p>Tevaera’s Gaming Ecosystem brings a unique blend of adventure and technology to the gaming world. Teva Games provides multi-genre games set in naturalistic environments and linked by a central Guardian characters storyline. The first multiplayer game is set to debut with the Tevaera 2.0 launch, offering thrilling gameplay featuring crypto-themed power-ups and diverse game modes.</p><p>The ecosystem is further enhanced by an on-chain gaming infrastructure, composed of Teva Core, Teva Chain, Teva Dex, and Teva Market.</p><ul><li>Teva Core is an advanced multiplayer game framework</li><li>Teva Chain, a Layer 3 gaming hyper-chain, facilitates the transition to fully on-chain games.</li><li>Teva DEX contributes a sustainable play &amp; earn economy via an automated gaming dex, and</li><li>Teva Market allows the minting and trading of unique NFT characters.</li></ul><h3>3. Architecture of zkSync</h3><p>zkSync Era is a Layer 2 protocol developed to address the scalability issues of Ethereum, utilizing a zero-knowledge (ZK) rollup structure. Developed by Matter Labs, it represents a zk-rollup platform designed with a focus on user needs. The platform aims for extensive compatibility with the Ethereum Virtual Machine (EVM) within its custom virtual machine, optimized for zero-knowledge proofs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s0AuwzAMZtbOKQHXwWaHyg.png" /><figcaption>(Source: <a href="https://github.com/matter-labs/zksync-era">matter-labs/zksync-era: zkSync era</a>)</figcaption></figure><p>The stages of zkSync rollup operation can be summarized as:</p><ol><li>Initially, a transaction or priority operation is generated by a user.</li><li>Subsequently, the operator takes on the responsibility of handling the user’s request. Upon successful handling, the operator creates a rollup operation and includes it in the block.</li><li>After the block is completed, the operator moves on to submit it to the zkSync smart contract in the form of a block commitment. It’s noteworthy that the smart contract verifies a portion of the logic of certain rollup operations.</li><li>Lastly, the block’s proof is provided to the zkSync smart contract, in a step known as block verification. If the verification is deemed successful with a Verifier contract, it validates the new state as final. This concludes the zkSync rollup operation lifecycle.</li></ol><p>This part delves into how zkSync operates, focusing on three fundamental layers:</p><ol><li>Execution: This refers to the process that causes changes or transitions in the blockchain’s state. In simpler terms, it’s where transactions are received and applied to the previous state.</li><li>Settlement: This ensures with a proof system that the changes made during the execution phase accurately reflect the system’s overall state.</li><li>Data Availability: This is the system’s record-keeping section. It’s where all the transaction data (inputs), system changes (outputs), and proofs are stored. The purpose of this is to ensure that the system’s current state can always be recreated from scratch if needed.</li></ol><h4>3.1 Execution</h4><p><strong>3.1.1 Execution in VM Level</strong></p><p>It runs on a type4 zkEVM, which means it takes smart contract code written in a high-level language (e,g, Solidity, Vyper) and then compiles it to language that is designed to be zk-SNARK-friendly.</p><p>Also, a unique thing about zkSync Era is that it uses an LLVM-based compiler that will eventually let developers write smart contracts in C++, Rust, and other popular languages.</p><p>The LLVM framework is a compiler for building smart contract language toolchains. Its advanced intermediate representation (IR) permits developers to devise, implement, and refine effective language-specific features, while leveraging the broad LLVM ecosystem.</p><p>In the established toolchain, LLVM processes the LLVM IR, introduces comprehensive optimizations, and ultimately forwards the optimized IR to the zkEVM back-end code generator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*ljv6BJ2tbWcTeikZUWt9EA.png" /><figcaption>(Source: <a href="https://era.zksync.io/docs/tools/compiler-toolchain/overview.html">Overview | Welcome to our Docs | zkSync Era</a>)</figcaption></figure><p><strong>3.1.2 Execution Overview</strong></p><p>In zkSync, the <a href="https://github.com/matter-labs/zksync-era/blob/main/docs/architecture.md">Core App</a> plays a critical role in managing the execution layer.</p><p>Its first responsibility involves tracking the Layer 1 (L1) smart contract for deposits or priority operations. This mechanism is crucial for ensuring the seamless integration of zkSync with the Ethereum network, as all changes initiated from the Ethereum network need to be monitored and reflected in the zkSync Layer 2 (L2) environment.</p><p>The Core Application is also tasked with managing a memory pool (mempool) that collects incoming transactions. This collection of transactions then waits in the queue for processing, effectively acting as a holding area before they are confirmed and added to the block.</p><p>An integral part of the Core Application’s duties includes fetching transactions from the mempool, executing them within a virtual machine (VM), and adjusting the state as needed. In essence, this process involves picking up transactions, processing them, and reflecting the results in the system.</p><p>After executing the transactions, the Core App generates the chain blocks. These blocks consist of bundled transactions that have been executed and verified. Then the Core App submits these blocks and proofs to the L1 smart contract. This process ensures that the state of the L1 Ethereum chain is consistently synchronized with the L2 zkSync chain.</p><p>To allow seamless interaction for Ethereum-based applications, it provides an Ethereum-compatible web3 API. This makes zkSync more accessible and user-friendly for developers and users already familiar with the Ethereum ecosystem.</p><h4>3.2 Settlement</h4><p>This Settlement layer is responsible for ensuring the integrity of state transition zkSync. This verification process is done in the deployed smart contracts in Ethereum. There are two important contracts in this process</p><ol><li>Executor Contract: This contract gets block data from a validator and zk proof of the state transition in zkSync.</li><li>Verifier Contract: This is a logic contract that allows the system to validate block data and zk proof provided from the Executor contract.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LjcL4caaj_HPOLvpwd90bg.png" /><figcaption>(Source: <a href="https://l2beat.com/scaling/projects/zksync-era#contracts">zkSync Era — L2BEAT</a>)</figcaption></figure><p><strong>3.2.1 Executor Contract</strong></p><p>(<a href="https://github.com/matter-labs/era-contracts/blob/41c25aa16d182f757c3fed1463c78a81896f65e6/ethereum/contracts/zksync/facets/Executor.sol">Source Code</a>, <a href="https://etherscan.io/address/0x389a081BCf20e5803288183b929F08458F1d863D#code">Contract Address</a>)</p><p>The proveBlocks function has a central role in ensuring the integrity and security of the zkSync system. Its main job is to validate zk-SNARK proofs for submitted blocks. Here’s how it works in a simplified explanation:</p><ul><li>First, proveBlocks makes sure that the blocks are being verified in the right order. It does this by checking that the previous block received is the next one that needs verification in the blockchain sequence.</li><li>Next, the function begins to go through each of the submitted blocks. It’s checking that the hashes of these blocks match what’s expected for their specific place in the blockchain. This ensures that the blocks being verified are indeed the correct ones.</li><li>The function then starts building what’s known as a proofPublicInput array. This is a list that becomes the public input for the zk-SNARK proof verification process. The block number of each submitted block is included in this array.</li><li>Afterwards, using the proofPublicInput array and some stored parameters, the function then checks the zk-SNARK proof. It’s similar to solving a puzzle where all pieces should fit perfectly together.</li><li>If the proof checks out, the function updates the system to reflect that these blocks have now been verified. It’s like adding a tick next to the items on a checklist.</li><li>Finally, for each block that has been verified, the function triggers a special event called BlockVerification. This is like sending out a notification that the block number, hash, and commitment have been verified.</li></ul><p>In a nutshell, the proveBlocks function is like a vigilant gatekeeper, making sure that blocks are verified in the correct order, that the zk-SNARK proofs are accurate, and updating the system state accordingly. Its goal is to prevent invalid blocks from being executed, ensuring the overall security and integrity of the zkSync system.</p><p><strong>3.2.2 Verifier Contract</strong></p><p>(<a href="https://github.com/matter-labs/era-contracts/blob/41c25aa16d182f757c3fed1463c78a81896f65e6/ethereum/contracts/zksync/Verifier.sol">Source Code</a>, <a href="https://etherscan.io/address/0x020b26826C23142f2582733b2E6428EE31eAaB49/advanced#internaltx">Contract Address</a>)</p><p>This is where the above verification logic is implemented. It acts as a guard for zkSync by checking zk-SNARK proofs to validate submitted data. The Verifier contract is used to verify that data submitted to zkSync is valid.</p><p>The Verifier contract stores the “verification key,” which is used to verify these zk-SNARK proofs. Whenever zkSync wants to submit an update, it generates a zk-SNARK proof and submits it to the Verifier contract through Executor Contract.</p><p>The Verifier contract then uses the verification key to check if the proof is valid. If valid, it knows the update is legitimate without seeing the actual data. If invalid, it rejects the update.</p><p>By verifying these proofs, the Verifier contract ensures that only correct and valid data gets accepted into zkSync. This is crucial for security and preventing invalid state changes.</p><h4>3.3 Data Availability</h4><p>This section of the system functions as the archive, storing all transactional information (inputs), system modifications (outputs), and proofs. zkSync uses a smart contract interface to set its data availability (DA) policy. zkSync is planning to provide diverse options for DA for cost reduction and privacy.</p><p><strong>3.3.1</strong> <strong>zkPorter</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dpjn9VbJbWzJs8XmkqPO2g.png" /><figcaption>(Source: <a href="https://blog.matter-labs.io/zkporter-a-breakthrough-in-l2-scaling-ed5e48842fbf">zkPorter: a breakthrough in L2 scaling | by Matter Labs</a>)</figcaption></figure><p>zkSync has introduced an off-chain data availability solution named ‘zkPorter.’ This tool is designed to integrate with zkSync’s rollup system, fostering interactions between rollup and zkPorter accounts. To ensure data security within zkPorter, ‘guardians’ are used — individuals who stake zkSync tokens and verify data availability by signing blocks.</p><p>zkPorter operates as an internal consensus protocol, facilitating a high volume of transaction throughput. For comparison, the standard ZK Rollup mode in zkSync 2.0 is capable of processing roughly 1,000 to 5,000 transactions per second (TPS). In contrast, zkPorter can manage anywhere from 20,000 to 100,000 TPS, contingent on the complexity of the transactions.</p><p>One trade-off of utilizing zkPorter is that users must place their trust in zkSync’s internal consensus mechanism. This results in a rollup solution that is less decentralized. The balancing act for users is to decide between zkPorter for a lower cost yet decreased security, or the ZK-rollup mode for the highest level of security.</p><p>In addition, zkSync 2.0 promotes interoperability, allowing for seamless exchanges between the ZK-rollup and zkPorter accounts. The fundamental distinction between zkPorter and Starkware’s Volition is in the determination of data availability: in zkPorter, this decision is made on an account basis, whereas in Volition, the decision is made on a per transaction basis within an account.</p><h3>4. ZK-Stack and OP-Stack</h3><p>Recently, Matter Labs <a href="https://twitter.com/zksync/status/1673317167628967936">announced the upcoming release of ZK-Stack</a>. This would provide an <a href="https://medium.com/fourpillars/op-stack-most-simple-framework-to-build-your-blockchain-7953f149314e">OP-Stack</a>-like software to customize and operate appchain rollups.</p><p>Common Traits of OP-Stack and ZK-Stack</p><ol><li>Open-Source and Free: Both are developed under open-source licenses, guaranteeing cost-free access. They encourage developers to contribute and build based on the software</li><li>Interoperable: Hyperchains concept from ZK Stack can effortlessly link in a trustless network, featuring low latency and shared liquidity. Also, OP-Stack envisions a Superchain concept to connect all OP-Stack-based chains</li><li>Decentralization: In the pursuit of achieving a more distributed network and community, both OP-Stack and ZK-Stack have explicitly outlined plans for decentralization in their upcoming roadmap. This move not only increases the network’s resilience but also ensures a fairer distribution of authority and control.</li></ol><p>Although there are similarities from a philosophical standpoint, there are differences from technical and business standpoints. This part will delve into the difference between the below perspectives</p><ol><li>Dapp Developer</li><li>Core Developer</li><li>Business</li></ol><h4>4.1 From Dapp Developer’s Perspective</h4><p><strong>4.1.1 EVM Equivalency</strong></p><p>OP-Stack’s EVM Implementation: OP-Stack’s EVM is crafted with slight alterations to Ethereum’s geth, resulting in a system almost fully compatible with EVM. On the other hand, ZK-Stack incorporates some changes in the EVM opcodes, with some opcodes not being supported. Despite these modifications, the impact is minimal, and the projects have been rigorously tested and proven in the real world.</p><p>However, there have been a few incidents arising from the non-EVM equivalency of ZK-Stack. A <a href="https://cointelegraph.com/news/zksync-era-denies-921-eth-stuck-forever-in-smart-contract">notable instance</a> involved 921 ETH getting trapped in a smart contract because the contract utilized the transfer function. This issue has been effectively resolved.</p><p><strong>4.1.2 Native Account Abstraction</strong></p><p>Unlike ERC-4337, ZK-Stack’s architecture includes a native Account Abstraction (AA) feature. In systems like ERC-4337, it is necessary to establish a separate UserOps mempool to permit account abstraction within the network.</p><p><strong>4.1.3 Support for Privacy</strong></p><p>By utilizing Validium, storing data on other confidential databases ensures privacy, provided the operator keeps the block data confidential. This feature is particularly advantageous for enterprise users.</p><h4>4.2 From Core Developer’s Perspective</h4><p><strong>4.2.1 Infrastructure Operation: OP-Stack is more intuitive</strong></p><p>Operation: Both zkSync and OP-Stack function via a Sequencer that orchestrates transactions and deposits data to Ethereum. Nevertheless, the operations for zkSync necessitate a prover. This prover application processes blocks and associated metadata generated by the server to construct a validity zero-knowledge (zk) proof. In comparison, OP-Stack doesn’t require separate complex infrastructure to participate in the proof-challenging game.</p><p><strong>4.2.2 VM Alternatives: ZK-Stack has more potentials to provide various options</strong></p><p>zkSync operates with an LLVM compiler that translates into zkEVM bytecode, indicating the potential to establish execution environments with other languages, such as C++.</p><p><strong>4.2.3 Data Availability: ZK-Stack offers diverse options</strong></p><p>OP-Stack relies mainly on Ethereum for its Data Availability layer, storing all transaction information and the output state root in Ethereum. This usage results in a substantial cost for operating an OP-Stack chain. Yet, there have been attempts to offset this cost by storing transaction data in Celestia DA.</p><p>ZK-Stack is vigorously researching and developing alternative data availability solutions like zkPorter. This approach enables users to determine their data availability based on their preference for higher security or lower cost. Additionally, enterprises desiring to maintain data privacy can adopt solutions like Validium, which allows data storage without disclosure.</p><h4>4.3 Business Perspective: Cost and Revenue</h4><p>Launching an independent rollup has become a feasible option today, especially with open-source software like ZK-Stack and OP-Stack being publicly developed and maintained. Additionally, Rollup-as-a-Service (RaaS) platforms such as Caldera and Conduit are significantly simplifying the process.</p><p>Taking a step beyond the viewpoint of a developer, it’s crucial to realistically assess the potential costs and revenues associated with operating a rollup. However, projecting these amounts can be complex due to several variables.</p><p>As major improvements in the codebase are being made regularly, evident from the recent Bedrock upgrade from Optimism, the costs associated with running a rollup are rapidly reducing. This dynamic nature makes it challenging to estimate costs and revenues accurately. Furthermore, since a single entity usually manages all rollups, the specific costs linked to the server and infrastructure are not widely recognized. Lastly, the volatility of the base token price, such as $ETH for zkSync and Optimism, adds another layer of uncertainty as costs can swing according to market sentiment.</p><p>Some of the major costs and revenues are as follow:</p><p><strong>4.3.1 Cost</strong></p><ul><li>L1 publication cost: Costs on storing transactions, state root, proof data.Usually, optimistic rollup requires more publication cost since it requires storing raw transactions data for verification. Some rollups post the state diff rather than whole state data to avoid further cost.</li><li>L2 Sequencer Operating cost</li><li>Proving cost: For zk, proof generating and verifying cost and for fraud-proof, proof challenging cost.</li></ul><p><strong>4.3.2 Revenue</strong></p><ul><li>L2 Transaction fee</li><li>Possibly MEV, but currently, most L2 sequencers are known not to extract MEV to avoid centralization issue</li></ul><h3>5. Final Thoughts</h3><p>Matterlabs has been deeply dedicated to the development of zkEVM, achieving significant advancements in the process. Despite not being fully EVM compatible (Type4 EVM), there appears to be substantial potential in harnessing LLVM. The next stage of progress for Matterlabs is the release of the ZK-Stack, a codebase that will enable developers to utilize its robust codebase for creating their own rollups. This tool promises to have a clear edge over OP-Stack, specifically in areas of privacy and scalability.</p><p>Nevertheless, both projects are still in its early phase and require considerable work. It is vital to conduct thorough evaluations of cost and revenue structures associated with its implementation. Moreover, a significant challenge lies in fostering a developer ecosystem around the two codebases. Detailed analysis and strategic planning are crucial to ensuring a sustainable future for the platform and its associated technologies.</p><p>I hope both projects flourish and building in public and sharing roadmaps become the norm in the web3 landscape.</p><p>* I’m currently working on analyzing the revenue and cost structures of rollups using on-chain data. If you’re interested in a potential collaboration, <a href="https://twitter.com/xparadigms">DM’s open</a>.</p><p><em>Thanks to </em><a href="https://twitter.com/kate_soom"><em>Kate</em></a><em> for designing the graphics for this article and </em><a href="https://m3talab.io/en"><em>M3TA</em></a><em> for providing valuable insights into on-chain data on zkSync.</em></p><h4>About Us</h4><p>Four Pillars is a global crypto research firm based in Seoul, consisting of the most influential blockchain researchers in Korea. Through robust research and governance skills, it helps various market players easily onboard to the blockchain industry by offering high-quality research articles while supporting protocols in their expansion into Korean and global markets.</p><h4>Four Pillars Links</h4><ul><li><strong>Website </strong>(<a href="https://4pillars.io/en">EN</a>/<a href="https://4pillars.io/ko">KO</a>)</li><li><strong>Twitter</strong> (<a href="https://twitter.com/FourPillarsFP">EN</a>/<a href="https://twitter.com/FourPillarsKR">KO</a>)</li><li><strong>Telegram</strong> (<a href="https://t.me/FourPillarsFP">KO</a>)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a89d9836f5b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fourpillars/snapshot-on-zksync-and-a-comparison-with-op-stack-1a89d9836f5b">Snapshot on zkSync and a Comparison with OP-Stack</a> was originally published in <a href="https://medium.com/fourpillars">Four Pillars</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[zkSync의 현황과 OP-Stack과의 비교]]></title>
            <link>https://medium.com/fourpillars/zksync%EC%9D%98-%ED%98%84%ED%99%A9%EA%B3%BC-op-stack%EA%B3%BC%EC%9D%98-%EB%B9%84%EA%B5%90-1f087e67d582?source=rss-5760e4d9fdcb------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f087e67d582</guid>
            <category><![CDATA[rollup]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[zkrollup]]></category>
            <category><![CDATA[four-pillars]]></category>
            <category><![CDATA[zksync]]></category>
            <dc:creator><![CDATA[xpara]]></dc:creator>
            <pubDate>Wed, 12 Jul 2023 08:12:58 GMT</pubDate>
            <atom:updated>2023-10-27T05:40:15.254Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>* </strong><a href="https://4pillars.io/ko/article/25"><strong>본 글</strong></a><strong>을 포함한 다양한 리서치 아티클을 </strong><a href="https://4pillars.io/ko"><strong>Four Pillars 공식 웹사이트</strong></a><strong>에서 확인해보세요!</strong></p><p><strong><em>면책 조항:</em></strong><em> 본 글은 일반적인 정보 제공을 목적으로 작성되었으며, 법률, 사업, 투자 또는 세금 관련 조언을 제공하지 않습니다. 본 글을 기반으로 투자 결정을 내리거나 이를 회계, 법률, 세무 지침으로 사용해서는 안됩니다. 특정 자산이나 증권에 대한 언급은 정보 제공의 목적일 뿐, 투자에 대한 추천이 아님을 밝힙니다. 본 글에서 표현된 의견은 저자의 개인적인 의견이며, 관련된 기관, 조직 또는 개인의 견해를 반영하지 않을 수 있습니다. 본 글에 반영된 의견은 사전고지 없이 변경될 수 있음을 유의하십시오.</em></p><p><strong>Author:</strong> <a href="https://medium.com/u/5760e4d9fdcb">xpara</a> (<a href="https://twitter.com/xparadigms">@xparadigms</a>)</p><p><strong>Reviewer:</strong> <a href="https://medium.com/u/5e5fe9213d31">100y</a> (<a href="https://twitter.com/100y_eth">@100y_eth</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P_3rV6rplIldnB-1IET5PA.png" /></figure><h4>Key Takeaways</h4><ul><li>zkSync을 개발한 Matterlabs는 오랜 기간 zkEVM을 개발하고 우수한 제품을 만드는 데 집중한 모습을 보였다.</li><li>현재 zkSync Era의 성장은 여러 인상적인 지표와 다양한 프로젝트들을 통해 확인할 수 있다.</li><li>zkSync의 아키텍처를 이해하기 위해서는 실행, 결제, 데이터 가용성이라는 세 가지 주요 레이어를 살펴보아야한다.</li><li>zkSync의 기반이 되는 ZK-Stack과 OP-Stack은 비슷한 철학을 공유하지만, dapp 개발자, 핵심 개발자, 비즈니스 운영자의 관점에서 볼 때 구별되는 차이점이 있다.</li></ul><h3>1. zkSync의 발자취</h3><h4>1.1 zkSync의 간략한 역사</h4><p>zkSync의 여정은 2019년 EthCC에서 zkSNARK로 롤업을 구현하기 위해 노력하는 소규모 팀으로 시작되었다. 2019년 1월에는 이더리움에서 사이드체인을 운영하기 위해 zkSNARK를 사용하는 개념 증명이 소개되었다. 그 이후로 탈중앙화를 핵심 원칙으로 삼았다. 모든 트랜잭션 데이터를 이더리움에 저장하는 데 집중했고, 시퀀서 탈중앙화 모델을 처리하기 위해 다중 운영자(Multi Operator)모델을 구안했다.</p><p>2020년 6월, 팀은 zkSync v1 메인넷을 출시하며 상당한 진전을 이루었다. 이 버전은 초기 콘셉트를 더 넓은 범위에서 실제로 구현한 것으로, 개발 여정에서 중요한 이정표였다. 1년 후인 2021년 6월에는 zkSync 2.0 테스트넷인 Era를 출시하여 더욱 확장했다.</p><p>그리고 2023년 3월, zkSync의 전체 메인넷이 성공적으로 출시되어 팀에 큰 성과를 안겨주었다. 이 출시는 이더리움 롤업 생태계에 배포된 최초의 메인넷 zkEVM이었다.</p><p>현재 개발팀은 zkSync를 오픈소스로 만들기 위해 노력하고 있다. ZK-Stack라는 것을 발표하여 zk 롤업 체인을 별도로 배포할 수 있게 하여, 각 팀이 자신만의 맞춤형 롤업을 시작할 수 있게 될 것이다. ZK-Stack에 대한 추가 세부 사항은 곧 발표될 예정이다.</p><p>zkSync와 매터랩스의 모든 트윗은 <a href="https://airtable.com/shrwKzWoluPbtW81o">이 링크</a>에서 확인할 수 있다.</p><h4>1.2 투자</h4><p>zkSync의 개발팀인 매터랩스는 상당한 자금을 모았다. 2022년 11월에 진행된 최근 시리즈 C 라운드를 통해 총 4억 5,800만 달러의 자금을 성공적으로 조달했다. 이 수치에는 여러 투자 라운드와 전용 에코시스템 펀드가 포함되어 있다. 여기에는 2억 달러의 전용 생태계 펀드, 2억 달러의 시리즈 C, a16z가 주도한 5천만 달러의 시리즈 B, 그리고 800만 달러의 시리즈 A 및 시드 라운드가 포함된다.</p><ul><li>시드 라운드: 시드 라운드를 통해 매터랩스는 PlaceholderVC, Hashed 등의 투자자로부터 200만 달러를 확보했다. 이 초기 재정적 지원은 zkSync 프로젝트의 작업을 시작하는 데 필수적인 토대가 되었다.</li><li>시리즈 A: 시드 라운드에 이어, 매터랩스는 시리즈 A 펀딩 라운드에서 600만 달러를 추가로 모금했다. 이 새로운 자금 유입은 연구 개발을 추진하고 zkSync의 실현을 앞당길 수 있는 원동력이 되었다.</li><li>시리즈 B: 매터랩스의 모멘텀은 계속 성장하여 시리즈 B 펀딩 라운드에서 a16z가 리드 투자자로 참여하여 <a href="https://twitter.com/zksync/status/1457680594880634881">5천만 달러</a>를 모금했다.</li><li>시리즈 C: 매터랩스는 2억 달러를 모금했다.</li><li>마지막으로, 매터랩스는 시리즈C 투자 라운드와 더불어 2억 달러 규모의 전용 생태계 펀드를 BitDao와 zkDAO라는 명칭하에 조성했다. 이 펀드는 더 광범위한 zkSync 생태계의 성장과 발전을 촉진하기 위해 특별히 할당되었다.</li></ul><p>이러한 모든 자금을 통해 매터랩스는 zkSync의 발전시키고, 개발 속도를 가속화하며, 더 넓은 생태계 내에서 성장을 촉진하는 데 필요한 재정적 지원을 받게 되었다. 매터랩스는 주요 블록체인 프로젝트 중 가장 많은 자금을 모았다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LKTwAGf3eh0JpgkJAghQGQ.png" /><figcaption>(Source: <a href="https://twitter.com/zksync_insider_/status/1674032901069983745">zkSync Insider</a>)</figcaption></figure><h3>2. 현재 생태계</h3><h4>2.1 전체 현황</h4><p>zkSync는 수년 동안 상당한 발전과 성장을 이루었다. 현재 zkSync Lite로 알려진 zkSync v1은 2020년 12월에 총 가치 고정(TVL)이 100만 달러를 돌파하는 이정표를 세웠다. 그 이후로 zkSync 생태계의 TVL은 기하급수적으로 성장했다. 현재 6억 5천만 달러를 돌파하여 이더리움 생태계에서 <a href="https://l2beat.com/scaling/summary">세번째로 큰 레이어 2 롤업</a>으로 자리 잡았다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bBanACkD35lYXuxutrZKNw.png" /><figcaption>(Source: <a href="https://l2beat.com/scaling/tvl">L2BEAT — The state of the layer two ecosystem</a>)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZqgpSRA88uYOa8x2RPCr2A.png" /><figcaption>(Source: <a href="https://l2beat.com/scaling/projects/zksync-era">zkSync Era — L2BEAT</a>)</figcaption></figure><p>2023년 6월을 앞두고, zkSync는 몇 가지 인상적인 주요 지표를 보유하고 있다. 초당 트랜잭션 수(TPS) 기준 롤업 1위이지만, 30일 동안 아비트럼에 약간 뒤쳐져 있다. 가장 빠른 TVL 성장률을 자랑하며 레이어 1에서 지불된 총 수수료 기준 롤업 1위다.</p><p>또한, 고유 지갑의 수도 증가하고 있으며 이는 사용자 채택이 증가하고 있음을 나타냅니다. 동시에 zkSync에 브리징된 이더리움의 양도 증가하고 있다.</p><h4>2.2 주요 프로젝트</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FTfojpGL2rCpRw-m8owa1A.png" /><figcaption>(Source: <a href="https://ecosystem.zksync.io/">zkSync Ecosystem — The era of dapps</a>)</figcaption></figure><p><strong>2.2.1 Argent</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*Wg-5LyGVqS3e7leetm-f5Q.png" /></figure><p>Argent는 이더리움 기반 암호화폐를 위한 비수탁형 모바일 지갑으로, 디지털 자산 관리를 위한 안전하고 사용자 친화적인 경험을 제공한다.</p><p>Argent는 사용자의 휴대폰을 분실하거나 도난당한 경우에도 사용자 자산을 보호할 수 있도록 설계된 고유한 보안 모델을 갖추고 있다. 이 모델에는 생체 인증, 소셜 복구, 온체인 스마트 컨트랙트 지갑과 같은 기능이 포함되어 있다. 이더리움 창립자 비탈릭 부테린이 “지갑 보안을 위해 선호하는 방법”이라고 말한 다중 서명 보안과 소셜 복구 기능을 갖춘 지갑이 바로 Argent다.</p><p><strong>2.2.2 싱크스왑</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rhDei8JNGyXY7ArRW2IuXQ.png" /></figure><p>싱크스왑은 zkSync Era내 <a href="https://www.notion.so/Based-rollup-Sequenced-by-Ethereum-c66c12af42d44de091082cee98a376c4?pvs=21">최대 규모의 디파이 프로토콜</a>다. AMM을 기반으로 한 탈중앙화 거래소로, AMM의 중요 기능들을 제공한다. 62개의 AMM 풀을 보유하며 중요한 특성은 아래와 같다.</p><ul><li>스테이블 스왑: 멀티풀을 통해 싱크스왑은 각각 최적의 시나리오를 가진 여러 가지 풀 모델을 통합하여 매우 효율적으로 거래할 수 있다. 가장 먼저 출시될 풀 모델은 스테이블 풀로, 범용 클래식 풀에 비해 효율적인 스테이블 코인 거래를 지원하여 싱크스왑이 대규모 스테이블 코인 시장에 진입할 수 있도록 한다.</li><li>스마트 라우터: 다양한 유동성 풀과 다양한 풀 모델을 통합하여 최적의 가격을 손쉽게 제공하는 유동성 애그리게이터 역할을 수행한다. 멀티홉 및 경로 분할 기능을 제공한다.</li><li>동적 수수료: 싱크스왑은 DEX에 동적 수수료를 도입하여 사용자가 시장 상황과 커뮤니티 선호도에 따라 거래 수수료를 맞춤 설정할 수 있다. 네 가지 측면에는 변동 수수료, 방향성 수수료, 수수료 할인, 수수료 위임이 포함된다. 이러한 기능은 사용자가 거래 전략을 최적화하고 시장과 커뮤니티의 변화하는 역학 관계에 맞춰 유연하게 조정할 수 있도록 유연성과 적응력을 제공한다.</li></ul><p><strong>2.2.3 테베라</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*jIHC9GxkykqT8ZOXquRRog.png" /></figure><p>테바의 게임 생태계는 게임 세계에 모험과 기술의 독특한 조화를 제공한다. 테바 게임즈는 자연주의적 환경을 배경으로 가디언 캐릭터 스토리라인을 중심으로 연결된 다양한 장르의 게임을 제공한다. 첫 번째 멀티플레이어 게임은 암호화폐를 테마로 한 파워업과 다양한 게임 모드를 갖춘 스릴 넘치는 게임 플레이를 제공하는 Tevaera 2.0 출시와 함께 선보일 예정이다.</p><p>테바 생태계는 테바 코어, 테바 체인, 테바 덱스, 테바 마켓으로 구성된 온체인 게임 인프라를 갖는다.</p><ul><li>테바 코어는 고급 멀티플레이어 게임 프레임워크다.</li><li>레이어 3 게임 하이퍼체인인 테바 체인은 완전한 온체인 게임으로의 전환을 촉진한다.</li><li>테바 덱스는 자동화된 게임 덱스를 통해 지속 가능한 플레이 및 수익 경제에 기여한다.</li><li>테바 마켓은 고유한 대체불가토큰 캐릭터를 발행하고 거래할 수 있도록 지원한다.</li></ul><h3>3. zkSync의 아키텍처</h3><p>zkSync Era는 이더리움의 확장성 문제를 해결하기 위해 개발된 레이어 2 프로토콜로, 영지식(ZK) 롤업 구조를 활용한다. 매터 랩스에서 개발한 이 프로토콜은 확장성 및 EVM 호환성에 초점을 맞춰 설계된 zk 롤업 인프라이다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s0AuwzAMZtbOKQHXwWaHyg.png" /><figcaption>(Source: <a href="https://github.com/matter-labs/zksync-era">matter-labs/zksync-era: zkSync era</a>)</figcaption></figure><p>zkSync 롤업의 운영 단계는 다음과 같이 요약할 수 있다:</p><ol><li>처음에 트랜잭션 또는 우선순위 작업이 사용자에 의해 생성된다.</li><li>이후 운영자가 사용자의 요청을 처리할 책임을 맡는다. 성공적으로 처리되면 운영자는 롤업 작업을 생성하고 이를 블록에 포함한다.</li><li>블록이 완료되면 운영자는 블록 커미트먼트의 형태로 zkSync 스마트 컨트랙트에 블록을 제출한다.</li><li>마지막으로, 블록 검증(Verification)이라고 알려진 단계에서 블록의 proof가 zkSync 스마트 컨트랙트에 제공된다. 검증자 계약에서 검증이 성공적으로 간주되면 새 상태를 최종 상태로 검증한다. 이것으로 zkSync 롤업 작업 주기가 끝난다.</li></ol><p>이 파트에서는 세 가지 기본 계층에 초점을 맞춰 zkSync가 작동하는 방식을 자세히 설명하도록 하겠다.</p><ol><li>실행(Execution): 이는 블록체인의 상태를 변경하거나 전환하는 과정을 말한다. 간단히 말해 트랜잭션을 수신하고 이전 상태에 적용하는 곳이다.</li><li>세틀먼트(Settlement): 실행 단계에서 변경된 내용이 시스템의 전체 상태를 정확하게 반영하는지 증명 시스템을 통해 확인한다.</li><li>데이터 가용성(Data Availability): 시스템의 기록 보관 섹션이다. 모든 트랜잭션 데이터(입력), 스테이트 변화 값(출력), 증명이 저장되는 곳이다. 이는 필요한 경우 언제든지 시스템의 현재 상태를 처음부터 다시 생성할 수 있도록 하기 위함이다.</li></ol><h4>3.1 실행</h4><p><strong>3.1.1 VM 레벨에서 실행</strong></p><p>zkSync는 타입4 zkEVM에서 실행되며, 이는 하이레벨 언어(예: 솔리디티, 바이퍼)로 작성된 스마트 컨트랙트 코드를 가져와서 zk-SNARK 친화적으로 설계된 언어로 컴파일한다는 의미이다.</p><p>또한, 개발자가 C++, Rust 및 기타 인기 있는 언어로 스마트 컨트랙트를 작성할 수 있도록 LLVM 기반 컴파일러를 사용한다는 점도 zkSync Era의 독특한 점이다. LLVM 프레임워크는 스마트 컨트랙트 언어 툴체인을 구축하기 위한 컴파일러이다. Intermediate Representation(IR)을 통해 개발자는 광범위한 LLVM 생태계를 활용하면서 효과적인 언어별 기능을 고안, 구현, 개선할 수 있다.</p><p>구축된 툴체인에서 LLVM은 LLVM IR을 처리하고, 포괄적인 최적화를 도입하며, 궁극적으로 최적화된 IR을 zkEVM 백엔드 코드 생성기로 전달한다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*ljv6BJ2tbWcTeikZUWt9EA.png" /><figcaption>(Source: <a href="https://era.zksync.io/docs/tools/compiler-toolchain/overview.html">Overview | Welcome to our Docs | zkSync Era</a>)</figcaption></figure><p><strong>3.1.2 실행 개요</strong></p><p>zkSync에서 코어 어플리케이션(<a href="https://github.com/matter-labs/zksync-era/blob/main/docs/architecture.md">Core App</a>), 실행 계층을 관리하는 데 중요한 인프라다.</p><p>첫 번째 역할은 입금 또는 우선순위 작업을 위해 레이어 1(L1) 스마트 컨트랙트를 추적하는 것이다. 이 메커니즘은 이더리움 네트워크에서 시작된 모든 변경 사항을 모니터링하고 zkSync 레이어 2(L2) 환경에 반영해야 하므로 zkSync와 이더리움 네트워크의 원활한 통합을 보장하는 데 매우 중요한다.</p><p>코어 애플리케이션은 또한 들어오는 트랜잭션을 수집하는 메모리 풀(멤풀)을 관리하는 작업도 수행한다. 이 트랜잭션 모음은 처리를 위해 대기열에서 대기하며, 트랜잭션이 확인되어 블록에 추가되기 전에 효과적으로 보류 영역 역할을 한다.</p><p>코어 애플리케이션의 필수적인 업무에는 멤풀에서 트랜잭션을 가져와 가상 머신(VM) 내에서 실행하고 필요에 따라 상태를 조정하는 것이 포함된다. 본질적으로 이 프로세스에는 트랜잭션을 가져와서 처리하고 그 결과를 시스템에 반영하는 작업이 포함된다.</p><p>트랜잭션을 실행한 후 코어 앱은 체인 블록을 생성한다. 이러한 블록은 실행되고 확인된 번들 트랜잭션으로 구성된다. 그런 다음 코어 앱은 이러한 블록과 증명을 L1 스마트 컨트랙트에 제출한다. 이 과정을 통해 L1 이더리움 체인의 상태는 L2 zkSync 체인과 지속적으로 동기화된다.</p><p>이더리움 기반 애플리케이션의 원활한 상호작용을 위해 이더리움 호환 웹3 API를 제공한다. 따라서 이미 이더리움 생태계에 익숙한 개발자와 사용자가 zkSync에 더 쉽게 접근하고 사용자 친화적으로 사용할 수 있다.</p><h4>3.2 세틀먼트</h4><p>이 세틀먼트 계층은 zkSync의 상태 전환의 무결성을 보장하는 역할을 한다. 이 검증 프로세스는 이더리움에 배포된 스마트 컨트랙트에서 수행된다. 이 과정에는 두 가지 중요한 컨트랙트가 있다.</p><ol><li>실행자 컨트랙트: 이 컨트랙트는 검증자로부터 블록 데이터와 zkSync의 상태 전환에 대한 zk 증명을 받는다.</li><li>검증자 컨트랙트: 실행자 컨트랙트로부터 제공받은 블록 데이터와 zk 증명을 검증할 수 있도록 하는 로직 컨트랙트다.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LjcL4caaj_HPOLvpwd90bg.png" /><figcaption>(Source: <a href="https://l2beat.com/scaling/projects/zksync-era#contracts">zkSync Era — L2BEAT</a>)</figcaption></figure><p><strong>3.2.1 실행자 컨트랙트</strong></p><p>(<a href="https://github.com/matter-labs/era-contracts/blob/41c25aa16d182f757c3fed1463c78a81896f65e6/ethereum/contracts/zksync/facets/Executor.sol">소스 코드</a>, <a href="https://etherscan.io/address/0x389a081BCf20e5803288183b929F08458F1d863D#code">컨트랙트 주소</a>)</p><p>proveBlocks 함수는 zkSync 시스템의 무결성과 보안을 보장하는 데 핵심적인 역할을 한다. 주요 임무는 제출된 블록에 대한 zk-SNARK 증명의 유효성을 검사하는 것이다. 아래에서 간단한 설명으로 작동 방식을 설명하겠다:</p><ul><li>먼저, proveBlocks는 블록이 올바른 순서로 검증되고 있는지 확인한다. 이는 이전에 받은 블록이 블록체인 순서에서 검증이 필요한 다음 블록인지 확인하는 방식으로 이루어진다.</li><li>다음으로, 이 함수는 제출된 각 블록을 검토하기 시작한다. 이러한 블록의 해시가 블록체인의 특정 위치에 대해 예상되는 것과 일치하는지 확인한다. 이를 통해 확인 중인 블록이 실제로 올바른 블록인지 확인할 수 있다.</li><li>그런 다음 함수는 proofPublicInput 배열로 알려진 것을 구축하기 시작한다. 이 배열은 zk-SNARK 증명 검증 과정의 공개 입력이 되는 목록이다. 제출된 각 블록의 블록 번호가 이 배열에 포함된다.</li><li>그 후 증명PublicInput 배열과 저장된 일부 매개변수를 사용하여 함수는 zk-SNARK 증명을 확인한다. 이는 모든 조각이 완벽하게 맞아야 하는 퍼즐을 푸는 것과 비슷한다.</li><li>증명에 문제가 없으면 이 함수는 해당 블록이 이제 검증되었음을 반영하여 시스템을 업데이트한다. 체크리스트의 항목 옆에 체크 표시를 추가하는 것과 같다.</li><li>마지막으로, 검증이 완료된 각 블록에 대해 이 함수는 블록검증이라는 특별한 이벤트를 트리거한다. 이는 블록 번호, 해시, 커미트먼트가 검증되었다는 알림을 보내는 것과 같다.</li></ul><p>간단히 말해, proveBlocks 함수는 블록이 올바른 순서로 검증되었는지, zk-SNARK 증명이 정확한지 확인하고, 그에 따라 시스템 상태를 업데이트하는 경계하는 문지기와 같다. 이 기능의 목표는 유효하지 않은 블록이 실행되는 것을 방지하여 zkSync 시스템의 전반적인 보안과 무결성을 보장하는 것이다.</p><p><strong>3.2.2 검증자 계약</strong></p><p>(<a href="https://github.com/matter-labs/era-contracts/blob/41c25aa16d182f757c3fed1463c78a81896f65e6/ethereum/contracts/zksync/Verifier.sol">소스 코드</a>, <a href="https://etherscan.io/address/0x020b26826C23142f2582733b2E6428EE31eAaB49/advanced#internaltx">컨트랙트 주소</a>)</p><p>위의 실행자가 요청하는 검증의 로직 구현되는 곳다. 제출된 데이터의 유효성을 검사하기 위해 zk-SNARK 증명을 확인한다. 검증자 컨트랙트는 zkSync에 제출된 데이터가 유효한지 검증하는 데 사용된다.</p><p>검증자 컨트랙트는 “검증 키”를 저장하며, 이 키는 이러한 zk-SNARK 증명을 검증하는 데 사용된다. zkSync는 업데이트를 제출하고자 할 때마다 zk-SNARK 증명을 생성하고 실행자 컨트랙트를 통해 검증자 컨트랙트에 제출한다.</p><p>그러면 검증자 컨트랙트는 검증 키를 사용하여 증명이 유효한지 확인한다. 유효하면 실제 데이터를 보지 않고도 업데이트가 합법적인지 알 수 있다. 유효하지 않으면 업데이트를 거부한다.</p><p>검증자 계약은 이러한 증명을 확인함으로써 정확하고 유효한 데이터만 zkSync에 허용되도록 보장한다. 이는 보안과 유효하지 않은 상태 변경 방지를 위해 매우 중요한다.</p><h4>3.3 데이터 가용성</h4><p>시스템의 이 섹션은 모든 트랜잭션 정보(입력), 시스템 수정(출력) 및 증명을 저장하는 아카이브 역할을 한다. zkSync는 스마트 컨트랙트 인터페이스를 사용하여 데이터 가용성(DA) 정책을 설정한다. zkSync는 비용 절감 및 개인정보 보호를 위해 DA에 대한 다양한 옵션을 제공할 계획이다.</p><p><strong>3.3.1</strong> <strong>zkPorter</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dpjn9VbJbWzJs8XmkqPO2g.png" /><figcaption>(Source: <a href="https://blog.matter-labs.io/zkporter-a-breakthrough-in-l2-scaling-ed5e48842fbf">zkPorter: a breakthrough in L2 scaling | by Matter Labs</a>)</figcaption></figure><p>zkSync는 오프체인 데이터 가용성 솔루션인 ‘zkPorter’를 출시했다. 이 도구는 zkSync의 롤업 시스템과 통합되어 롤업 계정과 zkPorter 계정 간의 상호 작용을 촉진하도록 설계되었다. zkPorter 내에서 데이터 보안을 보장하기 위해 ‘가디언’이 사용된다. 가디언은 zkSync 토큰을 스테이킹하고 블록에 서명하여 데이터 가용성을 검증하는 개인이다.</p><p>zkPorter는 내부 합의 프로토콜로 작동하여 대량의 트랜잭션 처리량을 촉진한다. 비교를 위해 zkSync 2.0의 표준 ZK 롤업 모드는 초당 약 1,000~5,000개의 트랜잭션을 처리할 수 있다. 반면, zkPorter는 트랜잭션의 복잡성에 따라 20,000~100,000 TPS까지 관리할 수 있다.</p><p>zkPorter를 사용할 때의 한 가지 단점은 사용자가 zkSync의 내부 합의 메커니즘을 신뢰해야 한다는 것이다. 사용자는 비용은 낮추되 보안을 강화하기 위해 zkPorter를 사용할지, 아니면 높은 수준의 보안을 위해 ZK 롤업 모드를 사용할지 결정할 수 있다.</p><p>또한, zkSync 2.0은 상호운용성을 촉진하여 ZK 롤업 계정과 zkPorter 계정 간의 원활한 교환을 가능하게 한다. 데이터 가용성 결정에 있어 zkPorter와 Starkware의 Volition의 근본적인 차이점은 zkPorter에서는 계정 단위로 결정되는 반면, Volition에서는 계정 내 트랜잭션 단위로 결정된다는 점이다.</p><h3>4. ZK-스택과 OP-스택</h3><p>최근 매터랩스는 <a href="https://twitter.com/zksync/status/1673317167628967936">ZK-Stack의 출시</a>를 발표했다. 이는 앱체인 롤업을 커스터마이징하고 운영할 수 있는 <a href="https://medium.com/fourpillars/op-stack-most-simple-framework-to-build-your-blockchain-7953f149314e">OP-Stack</a>과 유사한 소프트웨어를 제공할 것이다.</p><p>OP-Stack과 ZK-Stack의 공통 특성</p><ol><li>오픈소스 및 무료: 둘 다 오픈소스 라이선스에 따라 개발되어 비용 부담 없이 이용할 수 있다. 개발자가 소프트웨어를 기반으로 기여하고 구축하도록 장려한다.</li><li>상호운용성: ZK Stack의 하이퍼체인 서로간에 손쉽게 연결할 수 있으며, 짧은 지연 시간과 공유 유동성을 특징으로 한다. 또한 OP-Stack은 모든 OP-Stack 기반 체인을 연결하는 슈퍼체인 개념을 구상하고 있다.</li><li>탈중앙화: 보다 분산된 네트워크와 커뮤니티를 달성하기 위해 OP-Stack과 ZK-Stack은 향후 로드맵에서 탈중앙화 계획을 명시적으로 설명했다. 이러한 움직임은 네트워크의 복원력을 높일 뿐만 아니라 권한과 제어의 분배를 보장한다.</li></ol><p>철학적 관점에서는 유사점이 있지만, 기술 및 비즈니스 관점에서는 차이점이 있다. 이 부분에서는 아래 관점의 차이점을 기반으로 자세히 살펴보겠다.</p><ol><li>디앱 개발자</li><li>핵심 개발자</li><li>비즈니스</li></ol><h4>4.1 디앱 개발자의 관점</h4><p><strong>4.1.1 EVM Equivalency</strong></p><p>OP-Stack의 EVM 구현: OP-Stack의 EVM은 이더리움의 geth를 약간 변경하여 만들어졌기 때문에 EVM과 거의 완벽하게 호환되는 시스템을 구현할 수 있다. 반면, ZK-Stack은 EVM 옵코드에 일부 변경 사항이 있으며, 일부 옵코드는 지원되지 않다. 이러한 변경에도 불구하고 그 영향은 미미하며, 프로젝트는 실제 환경에서 엄격한 테스트를 거쳐 검증되었다.</p><p>그러나 ZK-Stack의 비 EVM 동등성으로 인해 발생한 몇 가지 사건이 있었다. <a href="https://cointelegraph.com/news/zksync-era-denies-921-eth-stuck-forever-in-smart-contract">주목할 만한 사례</a>는 스마트 컨트랙트가 전송 함수를 사용했기 때문에 921 ETH가 스마트 컨트랙트에 갇힌 경우였다. 이 문제는 효과적으로 해결되었다.</p><p><strong>4.1.2 네이티브 계정 추상화</strong></p><p>ERC-4337과 달리 ZK-Stack의 아키텍처에는 네이티브 계정 추상화(AA) 기능이 포함되어 있다. ERC-4337과 같은 시스템에서는 네트워크 내에서 계정 추상화를 허용하기 위해 별도의 UserOps 멤풀을 설정해야 한다.</p><p><strong>4.1.3 개인 정보 보호 지원</strong></p><p>운영자가 블록 데이터를 기밀로 유지한다면, 다른 기밀 데이터베이스에 데이터를 저장하는 것은 프라이버시를 보장한다. 이 기능은 특히 기업에게 매력적으로 작용될 것으로 보인다.</p><h4>4.2 코어 개발자의 관점</h4><p><strong>4.2.1 인프라 운영: 더욱 직관적인 OP-Stack</strong></p><p>zkSync와 OP-Stack은 모두 트랜잭션을 오케스트레이션하고 이더리움에 데이터를 예치하는 시퀀서를 통해 작동된다. 그럼에도 불구하고, zkSync의 연산에는 프로버가 필요한다. 이 증명자 애플리케이션은 서버에서 생성된 블록과 관련 메타데이터를 처리하여 유효성 영지식(zk) 증명을 생성한다. 이를 운영하기 위한 세팅과 문제가 생겼을때의 대처는 많은 지식이 요구된다. 이에 비해 OP-Stack은 증명 챌린지 게임에 참여하기 위해 별도의 복잡한 인프라가 필요하지 않다.</p><p><strong>4.2.2 VM 대안: 더 많은 옵션을 제공할 수 있는 잠재력을 가진 zkSync</strong></p><p>zkSync는 zkEVM 바이트코드로 변환하는 LLVM 컴파일러와 함께 작동하므로 C++와 같은 다른 언어로 실행 환경을 구축할 수 있는 잠재력을 갖는다.</p><p><strong>4.2.3 데이터 가용성: ZK-Stack은 다양한 옵션을 제공한다.</strong></p><p>OP-Stack은 데이터 가용성 계층을 주로 이더리움에 의존하며, 모든 트랜잭션 정보와 출력 상태 루트를 이더리움에 저장한다. 이러한 사용 방식은 OP-Stack 체인을 운영하는 데 상당한 비용을 발생시킨다. 하지만 <a href="https://blog.celestia.org/modular-data-availability-for-the-op-stack/">셀레스티아 DA</a>에 트랜잭션 데이터를 저장하여 이 비용을 상쇄하려는 시도가 있었다.</p><p>ZK-Stack은 zkPorter와 같은 대체 데이터 가용성 솔루션을 활발히 연구하고 개발하고 있다. 이러한 접근 방식을 통해 사용자는 더 높은 보안 또는 더 낮은 비용에 대한 선호도에 따라 데이터 가용성을 결정할 수 있다. 또한, 데이터 프라이버시를 유지하고자 하는 기업은 데이터를 공개하지 않고 저장할 수 있는 Validium과 같은 솔루션을 채택할 수 있다.</p><h4>4.3 비즈니스 관점: 비용 및 수익</h4><p>독립적인 롤업을 운영하는 것은 오늘날 실현 가능한 옵션이 되었으며, 특히 공개적으로 개발 및 유지 관리되는 ZK-Stack, OP-Stack과 같은 오픈 소스 소프트웨어가 등장하면서 더욱 그러한다. 또한, Caldera 및 Conduit과 같은 서비스형 롤업(RaaS) 플랫폼은 프로세스를 크게 간소화하고 있다.</p><p>개발자의 관점에서 한 걸음 더 나아가 롤업 운영과 관련된 잠재적인 비용과 수익을 현실적으로 평가하는 것이 중요한다. 그러나 여러 변수로 인해 이러한 금액을 예측하는 것은 어렵다.</p><p>최근 Optimism의 Bedrock 업그레이드에서 볼 수 있듯이 코드베이스의 주요 개선이 정기적으로 이루어지고 있기 때문에 롤업 실행과 관련된 비용이 빠르게 감소하고 있다. 이러한 빠른 발전으로 인해 비용과 수익을 정확하게 예측하기가 어렵다. 또한 일반적으로 단일 주체가 모든 롤업을 관리하기 때문에 서버 및 인프라와 관련된 구체적인 비용이 널리 인식되지 않다. 마지막으로, 시장 분위기에 따라 비용이 변동될 수 있기 때문에 zkSync 및 Optimism의 $ETH와 같은 운영 토큰 가격의 변동성은 또 다른 불확실성을 더한다.</p><p>주요 비용과 수익은 다음과 같다:</p><p><strong>4.3.1 비용</strong></p><ul><li>L1 퍼블리싱 비용: 트랜잭션, 상태 루트, 증명 데이터를 저장하는 비용. 일반적으로 옵티미즘 롤업은 검증을 위해 원시 트랜잭션 데이터를 저장해야 하므로 더 많은 퍼블리싱 비용이 필요한다. 일부 zk 롤업은 추가 비용을 피하기 위해 전체 상태 데이터가 아닌 상태 차이(State Diff)만 게시한다.</li><li>L2 시퀀서 운영 비용</li><li>증명 비용: zk의 경우, 증명 생성 및 검증 비용, 사기 증명의 경우 도전 비용</li></ul><p><strong>4.3.2 수익</strong></p><ul><li>L2 트랜잭션 수수료</li><li>MEV일 수도 있지만, 현재 대부분의 L2 시퀀서는 중앙화 문제를 피하기 위해 MEV를 추출하지 않는 것으로 알려져있다.</li></ul><h3>5. 마무리하며</h3><p>메터랩스는 zkEVM 개발에 집중하여 중요한 발전을 이루어냈다. 완벽한 EVM 호환성(Type4 EVM)이 없더라도 LLVM을 이용하는 데 상당한 잠재력이 있다는 것으로 보인다. 메터랩스의 다음 발전 단계는 ZK-Stack을 출시하는 것이다. 이 코드베이스는 개발자들이 자신의 롤업을 생성할 수 있도록 해준다. 이는 OP-Stack에 비해 특히 개인 정보 보호 및 확장성 측면에서 명확한 경쟁 우위를 가지고 있다.</p><p>하지만 두 프로젝트 모두 아직 초기 단계에 있으며 상당한 작업이 필요한다. 구현과 관련된 비용 및 수익 구조에 대한 철저한 평가가 필수적이다. 게다가 두 코드베이스 주위 개발자 생태계를 육성하는 것은 중요한 과제다. 세부적인 분석과 전략적인 계획 수립은 플랫폼과 관련 기술들에 대한 지속 가능한 미래를 보장하는 데 필수적이다.</p><p>필자는 두 프로젝트가 모두 성공적으로 운영되어 “building in public”과 커뮤니티에 지속적으로 로드맵을 공유하는 문화가 웹3 생태계에 정착되기를 바란다.</p><p>현재 온체인 데이터를 사용하여 롤업의 수익 및 비용 구조를 분석하는 작업을 진행 중입니다. 잠재적인 협업에 관심이 있다면, <a href="https://twitter.com/xparadigms">DM</a>으로 연락 부탁드립니다.</p><p>이 글의 그래픽을 디자인해준 <a href="https://twitter.com/kate_soom">Kate</a>와 온체인 데이터에 대한 귀중한 통찰력을 제공해준 <a href="https://m3talab.io/en">M3TA</a>에게 감사드립니다.</p><h4>About Us</h4><p>Four Pillars is a global crypto research firm based in Seoul, consisting of the most influential blockchain researchers in Korea. Through robust research and governance skills, it helps various market players easily onboard to the blockchain industry by offering high-quality research articles while supporting protocols in their expansion into Korean and global markets.</p><h4>Four Pillars Links</h4><ul><li><strong>Website </strong>(<a href="https://4pillars.io/en">EN</a>/<a href="https://4pillars.io/ko">KO</a>)</li><li><strong>Twitter</strong> (<a href="https://twitter.com/FourPillarsFP">EN</a>/<a href="https://twitter.com/FourPillarsKR">KO</a>)</li><li><strong>Telegram</strong> (<a href="https://t.me/FourPillarsFP">KO</a>)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f087e67d582" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fourpillars/zksync%EC%9D%98-%ED%98%84%ED%99%A9%EA%B3%BC-op-stack%EA%B3%BC%EC%9D%98-%EB%B9%84%EA%B5%90-1f087e67d582">zkSync의 현황과 OP-Stack과의 비교</a> was originally published in <a href="https://medium.com/fourpillars">Four Pillars</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OP-Stack: 블록체인을 구축하기 위한 가장 간편한 프레임워크]]></title>
            <link>https://medium.com/fourpillars/op-stack-%EB%B8%94%EB%A1%9D%EC%B2%B4%EC%9D%B8%EC%9D%84-%EA%B5%AC%EC%B6%95%ED%95%98%EA%B8%B0-%EC%9C%84%ED%95%9C-%EA%B0%80%EC%9E%A5-%EA%B0%84%ED%8E%B8%ED%95%9C-%ED%94%84%EB%A0%88%EC%9E%84%EC%9B%8C%ED%81%AC-5e86cc18768a?source=rss-5760e4d9fdcb------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e86cc18768a</guid>
            <dc:creator><![CDATA[xpara]]></dc:creator>
            <pubDate>Thu, 22 Jun 2023 11:20:43 GMT</pubDate>
            <atom:updated>2023-10-27T05:40:50.275Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>* </strong><a href="https://4pillars.io/ko/article/15"><strong>본 글</strong></a><strong>을 포함한 다양한 리서치 아티클을 </strong><a href="https://4pillars.io/ko"><strong>Four Pillars 공식 웹사이트</strong></a><strong>에서 확인해보세요!</strong></p><p><strong><em>면책 조항:</em></strong><em> 본 글은 일반적인 정보 제공을 목적으로 작성되었으며, 법률, 사업, 투자 또는 세금 관련 조언을 제공하지 않습니다. 본 글을 기반으로 투자 결정을 내리거나 이를 회계, 법률, 세무 지침으로 사용해서는 안됩니다. 특정 자산이나 증권에 대한 언급은 정보 제공의 목적일 뿐, 투자에 대한 추천이 아님을 밝힙니다. 본 글에서 표현된 의견은 저자의 개인적인 의견이며, 관련된 기관, 조직 또는 개인의 견해를 반영하지 않을 수 있습니다. 본 글에 반영된 의견은 사전고지 없이 변경될 수 있음을 유의하십시오.</em></p><p><strong>Author:</strong> <a href="https://medium.com/u/5760e4d9fdcb">xpara</a> (<a href="https://twitter.com/xparadigms">@xparadigms</a>)</p><p><strong>Reviewer:</strong> <a href="https://medium.com/u/5e5fe9213d31">100y</a> (<a href="https://twitter.com/100y_eth">@100y_eth</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qr-Afu1WiduGfG66290VGA.png" /></figure><h4>Key Takeaways</h4><ul><li>자체 블록체인 또는 롤업을 만드는데 커스터마이징, 확장성연관 툴 등을 고려했을때 분명한 OP-Stack은 가장 배포하기 쉬운 소프트웨어다.</li><li>OP-Stack의 아키텍쳐를 보면 총 4개의 요소와 다수의 컨트랙트로 구성되어 있다.</li><li>Coinbase의 Base을 포함해 다양한 롤업과 인프라 툴이 OP-Stack에서 구축되고 있다.</li><li>그러나 OP-Stack에는 Fault-proof 시스템, 중앙 집중화 및 블록체인 코어 개발에서 한계가 있다.</li><li>결론: OP-Stack은 롤업을 보다 간단하게 생성할 수 있게 하며 생태계의 성장과 맞춤형 롤업 공간의 혁신을 위한 토대를 마련할 것이다.</li></ul><h3>1. OP-Stack으로 블록체인 만들기</h3><p>탈중앙화 어플리케이션(dApp)이 계속 성장하고 더 많은 기존 비즈니스가 블록체인에 참여하기 시작하면서 분명한 추세가 나타나고 있다. “자체 블록체인 또는 롤업 구축에 대한 관심이 높아지고 있다.” 자체 블록체인을 구축했을때 얻을 수 있는 이점과 OP-Stack을 사용해야하는 이유는 다음과 같다:</p><h4>1.1 커스터마이징 가능성</h4><p>커스터마이징 측면에서 자신만의 롤업 또는 블록체인을 생성하면 다양한 기능을 사용에 맞게 추가할 수 있다. 거버넌스 모델, 트랜잭션 수수료, 스마트 컨트랙트의 기능 등 특정 요구사항에 맞게 이러한 요소를 네트워크에 내재하여 운영할 수 있다.</p><p>OP-Stack의 설계시 중요하게 고려된 모듈성(Modularity)은 커스터마이징을 장려한다. 배포시 특정 컨트랙트들을 내장시켜 사용자들이 사용할때 더 더 통일성있는 규격과 낮은 비용으로 사용할 수 있으며 인프라단에서는 실행 클라이언트와 같은 구성 요소를 다양화할 수 있도록 의도적으로 적응성을 고려한 구조로 설계되었다.</p><h4>1.2 확장성</h4><p>롤업과 블록체인은 근본적으로 확장성 문제를 해결하도록 설계되었다. 자체 솔루션을 출시하는 작업을 수행할 때, 리소스를 체인의 주 사용원에 국한하여 사용되기에 낮은 비용으로 높은 트랜잭션 처리량을 안정적으로 처리할 수 있다. 이를 통해 리소스를 공유해야하는 기존 플랫폼이 제공하는 수준을 뛰어넘는 수준의 확장성을 구현할 수 있다.</p><h4>1.3 리소스 효율성</h4><p>OP-Stack은 데이터 가용성 계층의 보안 기능을 활용할 수 있으며, 단일 시퀀서로 운영할 수 있다. 코스모스나 폴카닷에서 제공하는 전문 SDK는 상호운용성 솔루션과 다양한 핵심 기능 커스터마이징 등 다양한 이점을 제공하지만, 별도의 검증자 세트를 운영하거나 보안 공유 기능을 활용하기 위해서는 높은 비용이 발생된다. 또한 이더리움 생태계에 비해 개발 도구가 풍부하지 않지만 반대로 OP-Stack은 이더리움 생태계에서 사용 가능한 도구를 활용할 수 있으며, 이더리움과 같은 기본 데이터 가용성 계층의 보안 기능을 활용할 수 있다.</p><h3>2. OP-Stack 소개</h3><p>OP-Stack은 옵티미스틱 롤업을 구축을 할 수 있도록 제공되는 오픈소스 코드다. 이는 2023년 6월 6일 옵티미즘의 중요한 변화 기점인 베드락 업그레이드 이후로 메인넷에서 사용되고 있다. 옵티미즘 네트워크는 베드락 업그레이드를 통해 트랜잭션 수수료를 낮추고 보안을 강화했으며, 더 많은 기능을 제공했다. 주요 개선 사항은 다음과 같다.</p><p>베드락 업그레이드를 통해 옵티미즘 메인넷의 프로토콜 <a href="https://blog.oplabs.co/heres-how-bedrock-will-bring-significantly-lower-fees-to-optimism-mainnet/">비용이 47% 감소했다</a>. 일괄 압축을 최적화여 데이터 가용성을 위해 이더리움에 데이터를 저장하는 비용을 줄임으로써 수수료가 감소했다. 전체적으로 스테이트 체인 커밋먼트가 99%, 일괄 제출 비용이 20%로 감소될 것으로 예상된다. 향후 OP-Stack은 옵티미즘을 상호 연결된 블록체인의 ‘슈퍼체인(Superchain)’으로 발전시켜 OP-Stack 기반 체인이 공유 인프라로 상호 연결될 수 있도록 하는 것을 목표로 하고 있다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*76JBIXXGwSH3ebh15P8_IA.png" /></figure><h3>3. 아키텍쳐</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hDPUnVzf4nw8Hnm7Z7WWFQ.png" /></figure><h4>3.1 구성 요소</h4><p>OP-Stack 솔루션은 <a href="https://stack.optimism.io/docs/build/getting-started/#generate-some-keys">네 가지 요소</a>로 구성되어 있다: 노드(op-geth, op-node) 및 시퀀서 노드(op-batcher, op-proposer). 각각은 롤업 인프라를 운영하는데 고유한 역할을 한다.</p><p>노드:</p><ul><li>op-geth는 주요 트랜잭션 프로세스에서 실행 및 처리 부분을 담당하며 사용자 트랜잭션을 전달받아 효율적인 네트워크 트랜잭션을 보장한다. 또한 op-geth는 트랜잭션에 따라 L2의 상태를이전 상태에 트랜잭션을 적용하여 새로운 상태를 생성한다. 이러한 트랜잭션은 L1 혹은 L2의 유저들에 의해 발생된다.</li><li>op-node 구성 요소는 표준 이더리움 엔진 API를 통해 데이터 가용성 레이어(현재 옵티미증에서는 이더리움)의 원시 데이터를 실행 레이어를 위한 처리된 입력으로 변환하는 과정을 담당한다. 이 컴포넌트는 이더리움 블록 데이터, 시퀀서 트랜잭션 배치, 예치된 트랜잭션 이벤트 데이터를 입력으로 받으며, op-node 는 이 데이터를 받아 op-geth 에서 활용할 수 있게 가공한다. 이 매커니즘은 효율적이고 정확한 데이터 처리를 보장하기 위해 여러 안전 장치가 마련되어 있다. 이러한 데이터를 가공해서 L2에 활용되는 예시는 다음과 같다. L1에서 실행된 L2 입출금 트랜잭션의 반영, 실패한 트랜잭션 재시도, L2 트랜잭션 상태 업데이트, 최근 팁에 기반한 L1 가스 가격 계산 등의 기능이 있다.</li></ul><p>시퀀서별 노드:</p><ul><li>op-batcher는 주로 데이터 가용성 레이어(이더리움)에 트랜잭션 저장을 담당하며, 트랜잭션을 압축하여 네트워크 효율성을 최적화하고 데이터 전송 및 저장을 간소화한다.</li><li>op-proposer는 상태 전환을 마무리하는 데 매우 중요하다. op-geth가 상태를 수정한 후, op-proposer는 트랜잭션 후 상태에 대한 커미션을 L1에 작성하여 업데이트된 상태를 기록한다. 이는 업데이트된 상태의 새로운 머클 루트를 제안하며, 머클 루트를 활용하여 L1에 기록되는 데이터를 최소화하여 트랜잭션 비용을 줄인다. 이러한 상태 루트 제안은 L1 네트워크의 L2OutputOracle에 저장된다. 이러한 결과 루트 제안은 승인을 얻기 전에 7일간의 결함 이의 제기 기간을 거쳐야 하며, 잠재적인 오류에 대한 네트워크 신뢰성과 책임성을 향상시킨다.</li></ul><h4>3.2 스마트 컨트랙트</h4><p>OP-Stack 롤업 운영을 위해서는 여러 개의 컨트랙트를 배포해야 한다. <a href="https://github.com/ethereum-optimism/optimism/tree/develop/packages/contracts-bedrock">컨트랙트</a> 중 주요 컨트랙트는 다음과 같다:</p><p><strong>3.2.1 OptimismPortal (L1에 배포)</strong></p><p>OptimismPortal은 L1과 L2 간의 통신을 용이하게 하는 컨트랙트다. 이는 옵티미즘 시스템 내에서 크로스 체인 메시징을 위한 기본 게이트웨이 역할을 한다.</p><p>이 컨트랙트는 몇 가지 중요한 기능을 지원한다. 첫째, L2에서 실행될 예정인 L1 트랜잭션을 예치하여 L2에서의 실행을 보장 받을 수 있으며 L2 인출을 확인하고 L1에서 자금을 인출하는 역할을 한다. 그리고 <a href="https://github.com/ethereum-optimism/optimism/blob/e8cdf4e4bf411a1fae792ad3d1b8d12c2dc6ae58/packages/contracts-bedrock/contracts/L1/OptimismPortal.sol#L146">가디언</a>(입출금을 일시 중지할 수 있는 주소)에서 관리하는 크로스 체인 메시징을 일시 중지하는 기능이 내장되어 있다. 마지막으로, 확인된 출금과 l2Sender를 추적하여 출금 완료를 용이하게 한다.</p><p>또한, L2OutputOracle과 SystemConfig 컨트랙트는 이 컨트랙트와 상호 작용을 한다. L2OutputOracle은 L2 상태의 유효성을 검사하는 데 도움을 주고, SystemConfig 컨트랙트는 시스템 매개 변수를 설정하는데 활용된다.</p><p><strong>3.2.2 L2OutputOracle (L1에 배포)</strong></p><p>L2OutputOracle은 op-proposer가 제출한 L2의 결과 상태 루트를 보유하는 컨트랙트다. 이 컨트랙트를 통해 다른 L1 컨트랙트는 L2 상태와 관련된 정보를 인증할 수 있다.</p><p>이 컨트랙트에 op-proposer는 특정 제출 간격에 따라 새로운 L2 결과물을 제출할 수 있다. 또한, 챌린저는 유효하지 않은 L2 출력을 제거할 수 있 수 있으며 다른 컨트랙트가 L2 출력을 확인하여 L2 상태에 대한 정보를 검증할 수 있도록 허용한다. 마지막으로, L2 블록 시간을 기반으로 L2의 타임스탬프와 블록 번호를 계산할 수도 있다.</p><p>본질적으로 L2OutputOracle 컨트랙트는 L1 컨트랙트에서 L2 체인 상태에 대한 신뢰할 수 있는 정보 소스 역할을 한다. L2 상태에 대한 정보을 저장함으로써 L1에 저장되어 있는 L2 트랙잭션을 확인하여 변화를 검증할 수 있다.</p><p><strong>3.2.3 L1Block (L2에 배포)</strong></p><p>L1Block은 가장 최근에 알려진 L1 블록에 대한 정보를 보관하는 컨트랙트이다.</p><p>이 컨트랙트는 L2 컨트랙트에 대한 최신 L1 블록에 대한 결정적인 정보를 제공한다. 이 데이터를 L2에 보관함으로써 L2 콘트랙트는 크로스체인 호출 없이도 L1에 대한 세부 정보에 접근할 수 있다. 저장된 정보는 다양한 방식으로 사용될 수 있다:</p><ul><li>L2 트랜잭션에 대한 L1 가스 가격을 계산할 수 있다.</li><li>시퀀서가 제출한 L1 블록 데이터를 검증하는 데 활용된다.</li><li>L2 컨트랙트가 특정 L1 트랜잭션이 성공적으로 채굴되었는지 확인할 수 있다.</li></ul><p>시퀀서는 새로운 L1 블록이 확정 상태에 도달할 때마다 컨트랙트의 값을 새로 고치는 예금자 주소를 관리한다.</p><p>나머지 컨트랙트들은 이 <a href="https://github.com/ethereum-optimism/optimism/tree/develop/packages/contracts-bedrock/deployments/mainnet">링크</a>에서 확인할 수 있다.</p><h4>3.3 주요 프로세스</h4><p><strong>3.3.1 트랜잭션</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BUmce1jfqdwfXd9Vsvp_RA.png" /></figure><p><a href="https://community.optimism.io/docs/protocol/txn-flow/#compression">트랜잭션</a>은 L1(이더리움)에 기록되어야 한다. 일반적으로 op-batcher가 L2 트랜잭션에 대해 이 프로세스를 처리하지만, 모든 사용자는 op-batcher를 우회하는 L2 트랜잭션을 제출하기 위해 L1 트랜잭션을 전송할 수 있다.</p><p>그런 다음 상태를 수정하려면 op-geth에 의해 트랜잭션이 실행되어야 한다. 그 후 op-proposer가 트랜잭션 후 상태에 대한 커미션을 생성하고 이를 L1에한다. 한 가지 주목할 점은 op-proposer가 모든 상태 전환 후에 커미션을 생성할 필요는 없다는 것이다.</p><p>L2 트랜잭션의 프로세스에는 몇 가지 주요 단계로 실행된다:</p><ol><li>L1에 저장</li></ol><p>먼저 트랜잭션이 L1에 기록된다. 여기에는 압축과 L1에 게시하는 두 가지 하위 단계가 포함된다. 압축하는 동안 op-batcher는 압축률을 최대화하기 위해 시퀀서 배치를 채널로 나눈다. 채널이 채워지거나 시간이 초과되면 채널이 압축되고 저장된다.</p><p>압축 후 트랜잭션은 L1에 배치로 묶여 저장되고 채널이 포화 상태가 되면 데이터 크기에 따라 단일 또는 여러 개의 L1에 전송된다. L2 트랜잭션은 unsafe(처리되었지만 아직 L1에 기록되지 않음), safe(처리되어 L1에 기록되었지만 L1 재구성으로 인해 삭제될 수 있음), finalized(시간이 오래 지난 L1블록에 기록됨)의 세 가지 상태를 가질 수 있다. 트랜잭션이 finalized 상태에 도달하면 취소할 수 없다.</p><p>2. 실행</p><p>상태 처리(state processing) 단계에는 기존 상태에 트랜잭션을 적용하여 새로운 상태를 생성하고, 상태를 나타내는 새로운 머클 루트를 제안하는 두 가지 주요 단계가 포함된다. 이 작업은 두 가지 구성 요소에 의해 수행된다: op-geth와 op-proposer이다. 초기 단계에서 op-geth는 트랜잭션을 현재 상태에 적용한다. 이 작업은 트랜잭션이 적용됨에 따라 변경된 상태를 초래한다. op-geth 는 이더리움 geth의 최소한의 수정으로 만들어졌다.</p><p>3. 변경된 상태 루트 제안</p><p>다음 단계에서는 op-proposer가 개입하여 상태의 새로운 머클 루트를 제안하고, 이 루트를 L1의 L2OutputOracle 컨트랙트에 저장한다. 크기가 커서 집약된 전체 상태를 L1에 직접 기록하는 대신, 머클 루트가 압축된 표현으로 사용된다. 이 루트는 상태 변경에 대한 중요한 정보를 갖고 나타내며 효과적인 검증을 가능하게 한다.</p><p><strong>3.2.2 블록 생성</strong></p><p>베드락 업그레이드 이전에는 각 트랜잭션에 대해 하나의 블록이 생성되었었다. 그러나 업그레이드 후에는 2초마다 블록이 생성되며, 이 기간 동안의 트랜잭션과 변경된 상태 루트가 블록에 포함된다. 또한 모든 블록에는 L1 블록의 최신 정보를 L1 속성 예치 트랜잭션(L1 Attributes Deposited Transaction)이라는 시스템 트랜잭션으로 매 블록에 기록한다. 그런 다음 op-geth가 트랜잭션을 실행하여 이전 상태를 변경한다.</p><p>L1 속성 예치 트랜잭션은 두 가지 중요한 역할을 한다. 첫째, L2 컨트랙트에 가장 최근의 L1 블록에 대한 최신 업데이트를 제공하여 별도의 크로스 체인 호출이 필요 없게 한다. 둘째, L2 콘트랙트가 시퀀서가 제공한 L1 블록 관련 정보의 정확성을 인증할 수 있게 해준다.</p><p>L1 블록의 op-node는 블록 파생 중에 이를 생성한다. 이 트랜잭션에는 L1 블록 번호, 타임스탬프, 기본 수수료, 해시 및 기타 관련 세부 정보를 포함한 중요한 정보가 포함되어 있다. <a href="https://optimistic.etherscan.io/address/0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001">L1 속성 예금자 계정</a>에서 생성되며, 이더리움 가치를 포함하지 않고 L2 가스 풀과 상호 작용하지 않으며 유효성에 관계없이 원활한 블록 구성을 보장하기 위해 항상 블록에 포함된다. <a href="https://optimistic.etherscan.io/address/0x4200000000000000000000000000000000000015">L1 속성 사전 배포 컨트랙트</a>는 이 정보를 저장하고 액세스할 수 있도록 하는 역할을 담당한다.</p><p>L1 속성 예치 트랜잭션의 표준 프로세스는 다음과 같다:</p><ul><li>op-node는 L2 블록에 가장 최근의 L1 블록 정보를 포함하는 L1 속성 예치 트랜잭션을 생성한다.</li><li>이 트랜잭션은 L2에서 수행되고, L1 속성 사전 배포된 컨트랙트를 시작한다.</li><li>사전 배포된 컨트랙트는 L1 블록 데이터를 보유하고 이벤트를 트리거한다.</li><li>이제 다른 L2 컨트랙트는 사전 배포된 컨트랙트와 연동하여 최신 L1 블록 정보를 가져올 수 있다.</li></ul><h3>4. 관련 프로젝트</h3><h4>4.1 OP-Stack 체인</h4><p>OP-Stack 출시와 함께 이의 코드베이스를 사용하여 롤업을 구축하는 여러 프로젝트가 있다. 코인베이스의 Base, <a href="https://twitter.com/ourzora/status/1671602236219355136">Zora의 체인</a>, BNB의 <a href="https://twitter.com/BNBCHAIN/status/1670783527485419521">opBNB</a>가 그 예이며 현재 테스트넷 단계에 있다. 앞으로 더 많은 도구와 실험이 이어질 것으로 보이며 다음은 몇 가지 예시이다.</p><p><strong>4.1.1 OP-Clave</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9A_EJd49aa7-idsTh6rK2w.png" /><figcaption>(Source: <a href="https://www.ethglobal.com/showcase/opclave-opstack-impr-erc4337-and-apple-sign-94def">Opclave | ETHGlobal</a>)</figcaption></figure><p>이더리움은 ECDSA의 일종인 secp256k1만을 지원한다. 그러기에 다른 타원 곡선의 검증은 새로 배포된 스마트 컨트랙트를 통해 처리해야 하므로 결과적으로 상당한 검증 비용이 발생한다.</p><p>이 문제를 해결하기 위해 OP-Clave가 도입되었다. 이는 옵티미즘의 Bedrock 표준을 준수하는 사전 컴파일된 컨트랙트로서 “secp256r1 검증자”를 내장한 맞춤형 롤업이다. 이러한 기능을 통해 아이폰을 하드웨어 월렛과 같이 사용 가능하게 만들었으며 페이스 ID 및 터치 ID 검증 트랜잭션을 적용할 수 있는 환경의 기반을 마련했다.</p><p><strong>4.1.2 셀레스티아 OP-Stack</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NJQaZWfr6iOCXBegXgzffA.png" /><figcaption>(Source: <a href="https://blog.celestia.org/modular-data-availability-for-the-op-stack/">Celestia</a>)</figcaption></figure><p>셀레스티아는 셀레스티아를 데이터 가용성 계층으로 사용하여 OP-Stack 기반 롤업을 운영할 수 있는 <a href="https://github.com/celestiaorg/optimism">데모 코드베이스</a>를 공개했다. OP-Stack의 운영 비용 대부분이 이더리움에 트랜잭션을 저장하는 데서 발생한다는 점을 고려할 때, 이 구현을 통해 롤업은 트랜잭션 데이터를 셀레스티아에 저장하고 트랜잭션 데이터에 대한 참조 링크만 이더리움에 저장할 수 있다. 결과적으로 이는 많은 운영 비용 절감으로 이어진다.</p><p><strong>4.1.3 OP-Stack을 지원하는 RaaS</strong></p><p>롤업을 배포하고 관리할 수 있는 도구를 제공하는 서비스형 롤업(RaaS)은 성장하고 있는 분야이다. <a href="https://www.notion.so/OP-Stack-5f62d408e457424990f47f173bb100d5?pvs=21">Conduit</a>, <a href="https://blog.caldera.xyz/caldera-x-celestia-unveiling-taro/">Caldera</a>와 같은 회사가 OP-Stack을 지원하는 솔루션며 이들 서비스는 롤업의 관리 및 배포를 간소화하여 OP-Stack 애플리케이션의 성장과 개발을 지원한다. 최근에 <a href="https://twitter.com/ourZORA/status/1671602236219355136?s=20">Zora에서 발표한 롤업</a>도 Conduit을 활용하여 OP-Stack 체인으로 만들어졌다.</p><h3>4.2 인프라 툴</h3><p>OP-Stack의 중요한 이점은 이더리움 생태계에서 사용되는 툴링을 활용할 수 있다는 것이다. 이를 통해 다양한 이더리움 툴을 사용할 수 있다. 다른 생태계의 경우 개발 툴 인프라가 부족하기에 개발시 많은 난관이 있다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X07M4y5HsGJ4f-VeFs4GUQ.png" /><figcaption>(Source: <a href="https://www.landscape.dappcamp.xyz/">DappCamp</a>)</figcaption></figure><p><strong>4.2.1 op-erigon</strong></p><p>테스트 인 프로덕트에서 개발한 op-erigon은 op-geth의 대체 실행 클라이언트로, 이더리움의 에리곤을 기반으로 모델링되었다. 현재 op-geth만이 프로덕션에서 사용되는 유일한 실행 클라이언트이다. 하지만 op-erigon 은 첫번째 대체 실행 클라이언트로 메인넷에 <a href="https://twitter.com/testinprod_io/status/1668259464510668807">배포되었으며</a>, 실행 클라이언트의 다양성을 향상시킬 것으로 기대된다.</p><p><strong>4.2.2 Magi</strong></p><p>a16z가 개발한 <a href="https://github.com/a16z/magi">Magi</a>는 롤업 내 클라이언트 다양성을 향상시키기 위한 op-node용 대체 롤업 클라이언트입니다. Rust로 작성된 Magi는 Geth 및 Besu와 같은 실행 클라이언트와 호환된다. op-node와 동일한 기능을 공유하지만, 몇 달간의 추가 개발을 통해 이를 대체할 수 있을 것으로 예상된다.</p><h3>5. 한계</h3><h4>5.1 결함 증명의 한계</h4><p>옵티미스틱 롤업은 수백만 건의 트랜잭션으로 프로덕션 환경에서 광범위한 테스트를 거쳤다. 그러나 입력 데이터(트랜잭션)를 저장하고 값비싼 데이터 가용성 계층에 저장해야 하며, 7일의 파이널리티를 기다리는 것은 너무 길다는 단점이 있다. 이것이 바로 zkEVM이 주목받는 이유이다. 최근 OP-Stack에 zk를 구현하기 위한 <a href="https://github.com/ethereum-optimism/ecosystem-contributions/issues/61">제안요청서</a>(RFP)가 발표되었지만, 영지식 기술을 OP-Stack에 통합하는 데는 상당한 시간이 소요될 것으로 예상된다. 또한, 현재 결함 증명 시스템에는 소수의 참여자만 참여 가능하기에 효율성과 탈중앙화 모두에서 개선이 필요하다. 하지만 이러한 결함 증명 시스템은 다음 OP-Stack의 다가오는 마일스톤에서의 주 과제이기에 가까운 미래에 상당한 진전이 있을 것으로 예상된다.</p><h4>5.2 탈중앙화</h4><p>현재 OP-Stack 시스템의 주요 단점 중 하나는 시퀀서의 중앙 집중화이다. 시퀀서는 단일 주체에 의해 운영되며, 베드락 업그레이드 이후에는 트랜잭션당 블록이 아닌 2초마다 블록이 생성되므로 프런트 러닝과 같은 사용자들에게 피해가 가는 MEV가 발생할 가능성이 있다. 현재 멤풀은 이를 방지하기 위해 프라이빗으로 유지되고 있다. 그러나 옵티미즘 팀은 로드맵에 탈중앙화 계획을 가지고 있으며 공유 시퀀서 등이 개발 되고 있기에 추후에는 탈중앙화를 달성할 수 있을 것으로 보인다.</p><h4>5.3 블록체인 코어 개발의 한계</h4><p>이더리움 생태계는 활발한 개발자 커뮤니티를 갖고있지만, 네트워크 코어 측면의 실험은 미미하다. 애플리케이션에 특화된 코어 변경 대신 대부분의 구현된 기능은 보다 일반화되어 있다. 특정 애플리케이션에 필요한 이더리움 개선 제안(EIP)은 이더리움 코어 업그레이드에 포함되기 어려운 경우가 많다. 따라서 이러한 구현은 대부분 스마트 콘트랙트 측면에서 이루어진다. 이러한 상황은 옵티미즘 생태계에도 적용된다.</p><h3>6. 결론</h3><p>OP-Stack은 자체 롤업을 쉽게 구축할 수 있는 길을 열었으며, 수많은 프로젝트가 이 생태계 내에서 구축되고 있다. 생태계가 계속 성장하고 번창함에 따라 롤업 배포는 스마트 컨트랙트를 배포하는 것만큼이나 간단해질 것이다.</p><p>필자 의견으로 스마트 컨트랙트만으로 애플리케이션을 구축하는 데는 분명한 제약이 있다. 스마트 컨트랙트 기반 디앱에서 무수히 많은 혁신과 실험이 이루어지고 있지만 분명한 한계가 있으며 맞춤형 롤업 및 블록체인 구축을 하는 인프라에 있어 더욱 흥미로운 발전이 이루어질 것이라고 생각한다. 이는 OP-Stack과 같은 프레임워크 덕분에 가능해지고 있으며 많은 프로젝트들이 다양한 시도를 하고 있는 만큼 앞으로 1년동안 많은 발전이 있을 것이다.</p><p><em>이 글의 비주얼을 제공해주신 </em><a href="https://twitter.com/kate_soom"><em>Kate</em></a><em>에게 감사의 말씀을 전합니다.</em></p><h4>About Us</h4><p>Four Pillars is a global crypto research firm based in Seoul, consisting of the most influential blockchain researchers in Korea. Through robust research and governance skills, it helps various market players easily onboard to the blockchain industry by offering high-quality research articles while supporting protocols in their expansion into Korean and global markets.</p><h4>Four Pillars Links</h4><ul><li><strong>Website </strong>(<a href="https://4pillars.io/en">EN</a>/<a href="https://4pillars.io/ko">KO</a>)</li><li><strong>Twitter</strong> (<a href="https://twitter.com/FourPillarsFP">EN</a>/<a href="https://twitter.com/FourPillarsKR">KO</a>)</li><li><strong>Telegram</strong> (<a href="https://t.me/FourPillarsFP">KO</a>)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e86cc18768a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fourpillars/op-stack-%EB%B8%94%EB%A1%9D%EC%B2%B4%EC%9D%B8%EC%9D%84-%EA%B5%AC%EC%B6%95%ED%95%98%EA%B8%B0-%EC%9C%84%ED%95%9C-%EA%B0%80%EC%9E%A5-%EA%B0%84%ED%8E%B8%ED%95%9C-%ED%94%84%EB%A0%88%EC%9E%84%EC%9B%8C%ED%81%AC-5e86cc18768a">OP-Stack: 블록체인을 구축하기 위한 가장 간편한 프레임워크</a> was originally published in <a href="https://medium.com/fourpillars">Four Pillars</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OP-Stack: Most Simple Framework to Build Your Blockchain]]></title>
            <link>https://medium.com/fourpillars/op-stack-most-simple-framework-to-build-your-blockchain-7953f149314e?source=rss-5760e4d9fdcb------2</link>
            <guid isPermaLink="false">https://medium.com/p/7953f149314e</guid>
            <dc:creator><![CDATA[xpara]]></dc:creator>
            <pubDate>Thu, 22 Jun 2023 11:20:22 GMT</pubDate>
            <atom:updated>2023-10-27T05:40:54.704Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>* </em>Visit the </strong><a href="https://4pillars.io/en"><strong>Four Pillars official website</strong></a><strong> to explore </strong><a href="https://4pillars.io/en/article/15"><strong>this</strong></a><strong> and other research articles!</strong></p><p><strong><em>Disclaimer:</em></strong><em> This article is intended for general information purposes only and does not constitute legal, business, investment, or tax advice. It should not be used as a basis for making any investment decisions or relied upon for accounting, legal, or tax guidance. References to specific assets or securities are for illustrative purposes only and do not represent recommendations or endorsements. The opinions expressed in this article are those of the author and do not necessarily reflect the views of any affiliated institutions, organizations, or individuals. The opinions reflected herein are subject to change without being updated.</em></p><p><strong>Author: </strong><a href="https://medium.com/u/5760e4d9fdcb">xpara</a><strong> </strong>(<a href="https://twitter.com/xparadigms">@xparadigms</a>)</p><p><strong>Reviewer:</strong> <a href="https://medium.com/u/5e5fe9213d31">100y</a> (<a href="https://twitter.com/100y_eth">@100y_eth</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qr-Afu1WiduGfG66290VGA.png" /></figure><h3>Key Takeaways</h3><ul><li>Launching your own blockchain or rollup has clear benefits like customization, and scalability, and from various options, OP-Stack is the most easy-to-deploy software.</li><li>OP-Stack is composed of 4 node components, and some smart contracts and various projects are being built around OP-Stack.</li><li>However, there are limitations of OP-Stack: Fault-proof system, centralization, and lack of core innovations.</li><li>OP-Stack has enabled the simpler creation of personal rollups, laying the ground for growth in the ecosystem and innovations in customized rollup space.</li></ul><h3>1. Launching a Blockchain with OP-Stack</h3><p>As decentralized applications (dApps) continue to grow, and as more conventional businesses engage in the blockchain, a clear trend is emerging. There is a keen interest in constructing their own blockchain or rollup for many reasons.</p><p>Launching own blockchain can provide some notable advantages. The question of why one should embark on such a venture with OP-Stack can be answered by examining key benefits:</p><h4>1.1 Customizability</h4><p>In terms of customization, creating your own rollup or blockchain opens the door to a world of possibilities. The freedom to tailor various aspects to meet specific provides multiple benefits. Whether you are looking at the governance model, transaction fees, or the functionality of smart contracts, you can alter these elements to suit your particular requirements. The modularity inherent in OP-Stack’s design encourages customization. The structure is deliberately crafted to enable adaptability, allowing components such as the execution client to be diversified. This means that you can tailor these elements to fit the unique requirements of your project, providing control and flexibility.</p><h4>1.2 Scalability</h4><p>Rollups and blockchains are fundamentally designed to address issues of scalability. When you take on the task of launching your own solution, you can use the resource only for your use cases resulting in high transaction throughput with lower cost. This allows for a level of scalability that often surpasses what is offered by existing platforms. Consider, for instance, the potential to maximize transaction speed by optimizing your own blockchain. This would enable faster, more efficient operations than those currently achievable on more congested platforms.</p><h4>1.3 Resource Efficient</h4><p>OP-Stack has the capability to utilize the security features of Data Availability layers and can be operated with a single sequencer. While specialized SDKs such as those provided by Cosmos or Polkadot offer various benefits like interoperability solutions and diverse core feature customization, they come with the high cost of operating separate sets of validators or the requirement of inclusion to utilize the shared security property. Furthermore, their development tools aren’t as abundant as those in the Ethereum ecosystem. Conversely, OP-Stack can make use of the tools available in the Ethereum ecosystem and can tap into the security features of the underlying Data Availability layer, such as Ethereum.</p><h3>2. About OP-Stack</h3><p>OP-Stack is an open-source, modular methodology designed for constructing optimistic rollups. The Bedrock upgrade on June 6, 2023, was the initial mainnet release of the OP-Stack. As the Optimism network underwent a significant Bedrock upgrade, it lowered transaction fees, boosted security, and provided more customizability. The major specifics of improvements are like below.</p><p>This upgrade resulted in a <a href="https://blog.oplabs.co/heres-how-bedrock-will-bring-significantly-lower-fees-to-optimism-mainnet/">47% reduction in protocol costs</a> on the Optimism Mainnet. Transaction fees were decreased by optimizing batch compression and utilizing Ethereum for data availability. Comprising 99% in state chain commitments and 20% in batch submission costs. In the future, OP-Stack aims to advance Optimism toward becoming a “Superchain” of interlinked blockchains, making OP-Stack based chains to be interconnected with a shared infrastrcture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*76JBIXXGwSH3ebh15P8_IA.png" /></figure><h3>3. Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hDPUnVzf4nw8Hnm7Z7WWFQ.png" /></figure><h4>3.1 Components</h4><p>The OP-Stack solution encompasses <a href="https://stack.optimism.io/docs/build/getting-started/#generate-some-keys">four essential components</a>: nodes (op-geth, op-node) and sequencer-specific components (op-batcher, op-proposer). Each plays a distinctive role in enabling the rollup process.</p><p>Nodes:</p><ul><li><strong>op-geth</strong> sits at a key transaction process intersection, channeling user transactions to the Execution Layer, ensuring accurate and efficient network transactions. Additionally, op-geth adjusts the state based on the transaction, applying transactions to the preceding state to create the new one. It manages the state&#39;s storage and modification throughout the transaction process, thus accurately reflecting all state changes.</li><li>The <strong>op-node</strong> component is integral to converting raw data from the Data Availability Layer into processed inputs for the Execution Layer via the standard Ethereum Engine API. It sources inputs from Ethereum block data, Sequencer transaction batches, and Deposited transaction events, with the current system state guiding its parsing of raw input data. This mechanism ensures efficient and precise data processing. Functions include L2 deposit and withdrawal transactions submission to L1, failed transactions retry, L2 transaction statuses update, and L1 gas prices calculation based on recent tips.</li></ul><p>Sequencer-specific:</p><ul><li><strong>op-batcher</strong> mainly handles writing transactions to the L1 network (Ethereum), compressing transactions to optimize network efficiency and streamline data transmission and storage.</li><li>Lastly, the <strong>op-proposer</strong> is crucial in finalizing state transitions. After op-geth has modified the state, op-proposer writes a commitment to the post-transaction state to L1, thereby recording the updated state. It proposes the new Merkle root of the updated state, utilizing Merkle roots to minimize the data written to L1, thereby reducing transaction costs. These state root proposals are posted to the L2OutputOracle on the L1 network. These output proposals must undergo a 7-day fault challenge period before gaining authority, facilitating potential disputes and challenges, which enhances network reliability and accountability.</li></ul><h4>3.2 Contracts</h4><p>Several contracts need to be deployed for the operation of an OP-Stack rollup. Some of the <a href="https://github.com/ethereum-optimism/optimism/tree/develop/packages/contracts-bedrock">primary contracts</a> include the following:</p><p><strong>3.2.1 OptimismPortal deployed on L1</strong></p><p>The OptimismPortal is a contract that facilitates communication between L1 and L2. It serves as the primary gateway for cross-chain messaging within the Optimism system.</p><p>The contract enables several crucial functionalities. Firstly, it permits the depositing of L1 transactions that are slated for execution on L2. Secondly, it assists in verifying L2 withdrawals and withdrawing funds from L1. Thirdly, it has a built-in feature to pause cross-chain messaging, which is managed by the <a href="https://github.com/ethereum-optimism/optimism/blob/e8cdf4e4bf411a1fae792ad3d1b8d12c2dc6ae58/packages/contracts-bedrock/contracts/L1/OptimismPortal.sol#L146">Guardian</a> (an address that can pause deposits and withdrawals). Lastly, it keeps track of confirmed withdrawals and the l2Sender, facilitating the finalization of withdrawals.</p><p>In addition, the L2OutputOracle and SystemConfig contracts appear to have specific roles in this system. The L2OutputOracle assists in validating the L2 state, while the SystemConfig contract presumably helps in setting up system parameters.</p><p><strong>3.2.2 L2OutputOracle deployed on L1</strong></p><p>The L2OutputOracle is a contract that holds the resulting state root of L2 as submitted by the op-proposer. This contract allows other L1 contracts to authenticate information regarding the L2 state.</p><p>Several key functions are facilitated by this contract. It allows the proposer to submit new L2 outputs at a specific submission interval. Furthermore, it enables the challenger to remove any invalid L2 outputs. Additionally, it permits other contracts to validate information about the L2 state by scrutinizing the L2 outputs. Lastly, it is also capable of calculating timestamps and block numbers for L2 based on the L2 block time.</p><p>In essence, the L2OutputOracle contract serves as a reliable source of information about the state of the L2 chain for L1 contracts. By storing commitments to the L2 state, it facilitates the cross-chain verification of information.</p><p><strong>3.2.3 L1Block deployed on L2</strong></p><p>The L1Block is a contract that retains information about the most recent known L1 block.</p><p>This contract is likely a definitive source of information about the latest L1 block for L2 contracts. By archiving this data on L2, L2 contracts can access details about L1 without the need for cross-chain calls. The stored information can be used in various ways:</p><ul><li>It enables the computation of L1 gas prices for L2 transactions.</li><li>It assists in verifying the L1 block data submitted by the sequencer.</li><li>It allows L2 contracts to verify if a specific L1 transaction has been successfully mined.</li></ul><p>The sequencer presumably manages the depositor address, which refreshes the contract’s values each time a new L1 block reaches its finalized state.</p><p>More contracts can be found in this <a href="https://github.com/ethereum-optimism/optimism/tree/develop/packages/contracts-bedrock/deployments/mainnet">link</a>.</p><h4>3.3 Walkthrough</h4><p><strong>3.3.1 Transaction</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BUmce1jfqdwfXd9Vsvp_RA.png" /></figure><p>The <a href="https://community.optimism.io/docs/protocol/txn-flow/#compression">transaction</a> is required to be recorded on L1 (Ethereum). Typically, op-batcher handles this process for L2 transaction, but any user has the option to send an L1 transaction to submit an L2 transaction, which bypasses op-batcher.</p><p>Then to modify the state, the transaction needs to be executed by op-geth. Subsequently, op-proposer generates a commitment to the post-transaction state and writes it to L1. It&#39;s worth noting that op-proposer doesn&#39;t need to create a commitment after every state transition.</p><p>The process of an L2 transaction involves several key steps:</p><ol><li>Posting Transactions to L1</li></ol><p>Firstly, the transaction is written to L1. This includes two sub-steps: compression and posting to L1. During compression, the op-batcher divides sequencer batches into channels to maximize the compression ratio. Channels, once filled or timed out, are compressed and transcribed.</p><p>Following compression, the transaction is posted to L1. When a channel is saturated, it’s dispatched to L1 as either a single or multiple transactions, depending on the data size. An L2 transaction can occupy three states: unsafe (processed but not yet written to L1), safe (processed and written to L1, but might be discarded due to an L1 reorganization), and finalized (written to L1 in an adequately mature block). Once a transaction reaches the ‘finalized’ state, it is irrevocable.</p><p>2. Execution</p><p>The state processing phase involves two major steps: applying transactions to the existing state to yield a new state and proposing the new Merkle root that represents the state. This is undertaken by two components: op-geth and op-proposer.</p><p>In the initial phase, op-geth applies the transactions to the current state. This action results in an altered state as the transactions are applied. op-geth is a minimal modification of ethereum geth.</p><p>3. Proposing State Root</p><p>In the subsequent step, the op-proposer steps in and proposes the new Merkle root of the state, and stores the root to an L2OutputOracle contract in L1. Rather than directly transcribing the entire state to L1, which would be resource-intensive due to its large size, a Merkle root is used as a compact representation. This root encapsulates critical information about the state alterations and enables effective verification.</p><p><strong>3.2.2 Block Production</strong></p><p>Before the Bedrock upgrade, a block was produced for each transaction. However, post-upgrade, a block is generated every 2 seconds, where transactions in this period and the altered state root are included. Also, Every block has a system transaction called L1 Attributes Deposited Transaction that encapsulates the latest information of an L1 block. Then op-geth receives the transactions and applies them to the previous state.</p><p>L1 Attributes Deposited Transaction serves two critical roles. Firstly, it equips L2 contracts with the latest updates about the most recent L1 block, eliminating the need for separate cross-chain calls. Secondly, it enables L2 contracts to authenticate the correctness of the information regarding L1 blocks provided by the sequencer.</p><p>The L1 Attributes Deposited Transaction comes with a unique set of features. The rollup node from L1 blocks generates it during block derivation. This transaction contain valuable information, including the L1 block number, timestamp, base fee, hash, and other pertinent details. They originate from the <a href="https://optimistic.etherscan.io/address/0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001">L1 Attributes Depositor account</a> and do not carry any ETH value nor interact with the L2 gas pool. Regardless of their validity, they are always incorporated in the block to ensure seamless block construction. The <a href="https://optimistic.etherscan.io/address/0x4200000000000000000000000000000000000015">L1 Attributes Predeployed Contract</a> stores and makes this information accessible.</p><p>The standard workflow for L1 Attributes Deposited Transactions is as follows:</p><ul><li>The op-node makes an L1 Attributes Deposited Transaction containing the most recent L1 block details in an L2 block.</li><li>This transaction is carried out on L2, which then initiates the L1 Attributes predeployed Contract.</li><li>The predeployed contract holds onto the L1 block data and triggers an event.</li><li>Other L2 contracts can now engage with the predeployed contract to fetch the latest L1 block information.</li></ul><p>In summary, L1 Attributes Deposited Transactions serve as a trustworthy reference for L1 blocks for L2 contracts. By embedding this information directly into L2 blocks, L2 contracts can effortlessly access up-to-date L1 data, thereby eliminating the need for cross-chain calls.</p><h3>4. Related Projects</h3><h4>4.1 OP-Stack Chains</h4><p>As the launch of OP-Stack, multiple projects have been building a rollup using the OP-Stack codebase. Base by coinbase, <a href="https://twitter.com/BNBCHAIN/status/1670783527485419521">opBNB on BNB</a>, and <a href="https://twitter.com/ourzora/status/1671602236219355136">ZORA chain</a> is an example and is currently in the testnet phase. This can lead to more tools and experiments. Here are some example cases.</p><p><strong>4.1.1 OP-Clave</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9A_EJd49aa7-idsTh6rK2w.png" /><figcaption>(Source: <a href="https://www.ethglobal.com/showcase/opclave-opstack-impr-erc4337-and-apple-sign-94def">Opclave | ETHGlobal</a>)</figcaption></figure><p>Ethereum supports Elliptic Curve Digital Signature Algorithm (ECDSA) on the elliptic curve secp256k1. However, this necessitates that the verification of other elliptic curves be processed through a newly deployed smart contract, consequently leading to a substantial verification cost. This is an inherent challenge considering the broad potential applications and benefits that diverse elliptic curves can offer.</p><p>In response to this issue, OP-Clave has been introduced. It is a custom rollup that incorporates a “secp256r1 verifier” as a precompiled contract, conforming to the standards of Optimism’s Bedrock Release. This integration has paved the way for an environment where Face-ID and Touch-ID verified transactions could be applied. The OP-Clave’s unique approach optimizes efficiency and affordability while ensuring secure and reliable transactions.</p><p><strong>4.1.2 Celestia OP-Stack</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NJQaZWfr6iOCXBegXgzffA.png" /><figcaption>(Source: <a href="https://blog.celestia.org/modular-data-availability-for-the-op-stack/">Celestia</a>)</figcaption></figure><p>Celestia has unveiled a <a href="https://github.com/celestiaorg/optimism">demo codebase</a> that allows the operation of OP-stack-based rollups using Celestia as a data availability layer. Given that the bulk of OP-stack’s operating expenses come from storing transactions on Ethereum, this implementation enables the rollup to store transaction data on Celestia, while only a reference link to the transaction data is stored on Ethereum. Consequently, this leads to a reduction in operating costs.</p><p><strong>4.1.3 RaaS that supports OP-Stack</strong></p><p>Rollup as a Service (RaaS) is a growing field that provides tools to deploy and manage rollups. Companies such as <a href="https://www.notion.so/OP-Stack-5f62d408e457424990f47f173bb100d5?pvs=21">Conduit</a> and <a href="https://blog.caldera.xyz/caldera-x-celestia-unveiling-taro/">Caldera</a> are the solutions supporting OP-Stack. Their services aid in simplifying the management and deployment of rollups, supporting the growth and development of OP-Stack applications. The <a href="https://twitter.com/ourZORA/status/1671602236219355136?s=20">recent announcement</a> by Zora of its own rollup chain is also built using Conduit.</p><h3>4.2 Infra Tooling</h3><p>ÎA significant benefit of OP-Stack is its ability to utilize the toolings used in the Ethereum ecosystem. This allows for the use of a wide range of Ethereum tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X07M4y5HsGJ4f-VeFs4GUQ.png" /><figcaption>(Source: <a href="https://www.landscape.dappcamp.xyz/">DappCamp</a>)</figcaption></figure><p><strong>4.2.1 op-erigon</strong></p><p>Developed by Test in Prod, op-erigon is an alternative execution client for op-geth, modeled as a variant of the erigon implementation. Currently, only op-geth is the only execution client used in the production. However, as the second alternative execution client, this has been <a href="https://twitter.com/testinprod_io/status/1668259464510668807">deployed to the mainnet</a> and is expected to improve the execution client diversity.</p><p><strong>4.2.2 Magi</strong></p><p>Developed by a16z, <a href="https://github.com/a16z/magi">Magi</a> is an alternative rollup client for op-node to enhance client diversity within the rollup. Written in Rust, Magi is compatible with execution clients such as Geth and Besu. While it shares the same functionality as op-node, it is projected to become a viable alternative to it with additional months of development.</p><h3>5. Limitations</h3><h4>5.1 Limitation of Fault Proof</h4><p>Optimistic rollup has undergone extensive testing in production with millions of transactions. However, it needs to store input data (transaction) and output to an expensive data availability layer, and the 7-day finality is too long. This is why the zkEVM is gaining attention. Despite the <a href="https://github.com/ethereum-optimism/ecosystem-contributions/issues/61">recent RFP</a> (request for proposal) to implement zk on OP-Stack, integrating zero-knowledge into OP-Stack might take substantial time. Furthermore, the fault-proof system currently involves only a handful of participants, indicating a need for enhancement in both efficiency and decentralization. Yet, with the upcoming milestone in the OP-Stack focused on this fault-proof system, I anticipate significant advancements in the near future.</p><h4>5.2 Decentralization</h4><p>One of the main drawbacks of the current OP-Stack system is the centralized nature of the sequencer. The sequencer is operated by a single entity and post-Bedrock upgrade, blocks are produced every 2 seconds, as opposed to a block per transaction, opening a possibility for bad MEV like front-running. Currently, to prevent Miner Extractable Value (MEV), the mempool is kept private. However, the Optimism team has plans for decentralization on their roadmap and expects to achieve this in the near future.</p><h4>5.3 Core Implementation</h4><p>While the Ethereum ecosystem boasts a vibrant developer community, core-side experimentation is minimal. Instead of application-specific core changes, most implemented features are more generalized. Ethereum Improvement Proposals (EIPs) required for specific applications often struggle to be included in Ethereum core upgrades. Thus, most of these implementations occur on the smart contract side. This also applies to the Optimism ecosystem.</p><h3>6. Conclusion</h3><p>OP-Stack has paved the way for the accessible building of your own rollups, and numerous projects are being built within this ecosystem. As the ecosystem grows and thrives, deploying rollups will become as simple as deploying smart contracts.</p><p>I think there are clear limitations to building applications with only smart contracts. While there’s a ton of innovation and experimentation happening in smart contract-based dapps, there are clear limitations and I think we’ll see more exciting developments in infrastructure for building custom rollups and blockchains. This is being made possible by frameworks like OP-Stack, and with so many projects trying different innovations, we’ll see a lot of progress over the next year.</p><p><em>Thanks to </em><a href="https://twitter.com/kate_soom"><em>Kate</em></a><em> for designing the graphics for this article.</em></p><h4>About Us</h4><p>Four Pillars is a global crypto research firm based in Seoul, consisting of the most influential blockchain researchers in Korea. Through robust research and governance skills, it helps various market players easily onboard to the blockchain industry by offering high-quality research articles while supporting protocols in their expansion into Korean and global markets.</p><h4>Four Pillars Links</h4><ul><li><strong>Website </strong>(<a href="https://4pillars.io/en">EN</a>/<a href="https://4pillars.io/ko">KO</a>)</li><li><strong>Twitter</strong> (<a href="https://twitter.com/FourPillarsFP">EN</a>/<a href="https://twitter.com/FourPillarsKR">KO</a>)</li><li><strong>Telegram</strong> (<a href="https://t.me/FourPillarsFP">KO</a>)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7953f149314e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fourpillars/op-stack-most-simple-framework-to-build-your-blockchain-7953f149314e">OP-Stack: Most Simple Framework to Build Your Blockchain</a> was originally published in <a href="https://medium.com/fourpillars">Four Pillars</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>