What are zkSync Hyperchains & how they bring hyper scalability to L3 dApps?
Tags: zksynchyperchains, rollups
Published: 2023-12-20 06:19:02

<p>Vitalik Buterin’s claim for <a href="https://www.zeeve.io/appchains/polygon-zkrollups/">zkRollups</a> to be the scaling solution’s end game has already paved the way for the success of various Zk-powered layer-2 scaling solutions. As an advanced, future-facing Layer-2 scaling solution– the <a href="https://www.zeeve.io/blockchain-protocols/deploy-zksync-era-node/">zkSync Era</a> marks its participation by introducing <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">ZkStack</a> and hyper-scalable chains built using zkStack. This comprehensive guide explains the broader concept of <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">zkSync Era’s Hyperchains</a>, diving deeper into hyperchain, its stack, features, use cases, and the approach of enabling hyper-scalable L3 dApps.&nbsp;</p>
<h2 id="h-understanding-hyperchains-and-its-development-framework-zkstack">Understanding Hyperchains and its development framework— ZkStack</h2>
<p><a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">Hyperchains</a>, offered by zkSync are hyper-scalable, interoperable, custom, and fully sovereign zk-chains running on the top of Layer-1 or Layer-2 networks while being connected, able to get security and finality from the main chain (L1).&nbsp;</p>
<p>You can say <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">Hyperchains</a> are a Zk version of OP Stacks' Superchains. There's a difference in rollup implementation as Superchains are based on <a href="https://www.zeeve.io/appchains/optimistic-rollups/">Optimistic rollup</a> technology, whereas hyperchains use <a href="https://www.zeeve.io/appchains/polygon-zkrollups/">zk-rollups</a>.&nbsp;</p>
<p>The development stack for <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">hyperchains</a> is ZkStack. This is a highly optimized, open-source, and modular framework for building custom zk-chains layer-2 and layer-3. <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">zkSync</a> has designed its <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">zkStack</a> with significant improvements to address the challenges of its previous stack– ZK Credo.&nbsp;</p>
<p>zkStack offers unique benefits such as easy implementation of Account Abstraction in any zk-enabled architecture, 1000X cheaper transactions compared to general <a href="https://www.zeeve.io/rollups/">rollup chains</a>, and optional extension with zkPorter accounts for highly affordable use cases.</p>
<p>All the hyperchains use 100% identical circuits, ensuring each of them can trust the activities happening on other chains with no need for assumptions.<strong> </strong>Anyone with extensive experience in <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">zkStack</a> can build modular, app-specific–yet highly secure <a href="https://www.zeeve.io/appchains/polygon-zkrollups/">zk-rollup chains</a> and deploy them permissonlessly on the <a href="https://www.zeeve.io/blockchain-protocols/deploy-zksync-era-node/">zkSync Era ecosystem</a>.&nbsp;</p>
<figure class="wp-block-image aligncenter size-large"><a href="https://www.zeeve.io/talk-to-an-expert/"><img src="https://www.zeeve.io/wp-content/uploads/2023/11/zkSync-Eras-Hyperchains_Banner-1-1-1024x130.png" alt="" class="wp-image-51248"/></a></figure>
<h2 id="h-the-architecture-of-hyperchains-and-its-working">The architecture of Hyperchains and its working</h2>
<p><a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">Hyperchains</a> work as independent <a href="https://www.zeeve.io/appchains/polygon-zkrollups/">zkrollup chains</a> that compute transactions separately from Layer-1, generate zk-proof, and submit it to L1. Instead of settling up their proofs individually, hyperchains can aggregate all the proofs and voluntarily agree to settle all the batches’ proofs in a single proof and then publish to Layer-1. Simple proof aggregation, L3 proof settling, and layered aggregation are the multiple options for hyperchains to choose from for proof aggregation.</p>
<p>All the hyperchains can seamlessly and trustlessly communicate with each other, forming an interoperable and rich ecosystem for zkSync. <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">zkSync's hyperchains</a>, at its core, solve the challenge of sharing liquidity and asset movements between L2 rollups and Layer-1 blockchain. For example, think of hyperchains as an email interface where you can send email from any address on any domain to a completely different address of a different domain. All these happen in a fraction of a second and with complete trust because each chain has access to each other’s state, and they all share a common bridge <a href="https://www.zeeve.io/blog/smart-contract-standardization-a-necessity-for-the-large-scale-adoption-of-blockchain/">smart contract</a> running on the mainchain. Refer to the below image for a graphical explanation of hyperchains:</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/taudqn6zsm1wxn4xn53j.png)
<h2 id="h-who-should-build-hyperchains">Who should build Hyperchains?</h2>
<p>Hyperchains unlock a plethora of benefits, yet they are not meant for every web3 project. Let’s say you are building a regular <a href="https://www.zeeve.io/blog/a-simple-and-comprehensive-guide-on-non-fungible-tokens/">NFT</a> or DeFi dApp; deploying on a Layer-2 such as <a href="https://www.zeeve.io/blockchain-protocols/deploy-zksync-era-node/">zkSync Era</a> is a fair deal as you will get a production-ready ecosystem with all the default features, consensus, and chain-specific components.</p>
<p>But, if you need a fully customized Zk Chain that offers single-use infrastructure, custom <a href="https://www.zeeve.io/blog/tokenomics-a-new-demand-generation-framework-for-a-new-generation/">tokenomics</a>, unique fee mechanism, TPS adjustability, <a href="https://www.zeeve.io/blog/smart-contract-standardization-a-necessity-for-the-large-scale-adoption-of-blockchain/">smart contract</a> logics, VM, prover, DA layer sequencer—then you go for Hyperchains. Following are the potential applications that will be greatly benefited by building their project as hyperchains:<br></p>
<li>Any Layer-1 blockchain that seeks scalability by launching their standalone zk-powered chains.</li>
<li>Gaming applications that wants to customize their ecosystem to make it player-centric. For example– offering gasless transactions, setting TPS as high as possible to get massive throughput, or allowing players to explore a broader ecosystem of interconnected <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">hyperchains</a>.</li>
<li>Crypto exchanges looking for low latency chains that also offer unfragmented liquidity.</li>
<li>DeFi or Enterprise-grade solutions that want a private chain while maintaining communication with other chains.</li>
<li>dApps that want a specific token to use of their base token.&nbsp;</li>
<li><a href="https://www.zeeve.io/enterprise-blockchain/">Enterprise</a> building a range of applications and wanting them all to interoperate with each other via a native bridge.</li>
<h2 id="h-how-hyperchains-enable-the-creation-of-hyper-scalable-l3-dapps-key-features">How Hyperchains enable the creation of hyper-scalable L3 dApps— Key features&nbsp;</h2>
<p><a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">zkSync era’s hyperchains</a> can be architectured to work as Layer-3s dApps. For this, the hyperchain needs to be deployed on the Layer-2 network, and it should utilize this same chain to settle its proofs. Setting on L2 means there will be significant load reduction on Layer-1. Only the aggregated proofs will be published on it. This will offer benefits like infinite scalability, faster messaging between L1-&gt;L2-&gt;L3 and meanwhile preserving <a href="https://www.zeeve.io/blog/blockchain-interoperability-key-for-global-blockchain-adoption/">interoperability</a> of <a href="https://www.zeeve.io/blockchain-protocols/deploy-zksync-era-node/">zkSync Era’s</a> broader ecosystem.&nbsp;</p>
<p>Layer-3 hyperchains are feasible options for projects that need to integrate more advanced features on their dApps and a complex smart contract design, which is difficult to implement on Layer-1 and Layer-2 due to lack of scalability.&nbsp;</p>
<p>That was all about Layer-3s and its benefits. Now, to understand how exactly <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">hyperchains</a> are enabling the creation of hyper-scalable dApps, we have to dive deeper into all the features that hyperchains offer. These features together power a highly optimized <a href="https://www.zeeve.io/rollups/">rollup ecosystem</a> that is perfect for Layer-3 development.&nbsp;</p>
<h3 id="h-sovereignty">Sovereignty:</h3>
<p>Hyperchains are sovereign blockchains, having the freedom to design their unique <a href="https://www.zeeve.io/blog/tokenomics-a-new-demand-generation-framework-for-a-new-generation/">tokenomics</a>, consensus, rollup mode, DA layer, and other aspects of a <a href="https://www.zeeve.io/rollups/">rollup chain</a>. The idea of sovereign blockchain is to create a network that powers a single dApps rather than providing an ecosystem for multiple dApps. This enables complete block space for one application, providing infinite scalability and reliable <a href="https://www.zeeve.io/blog/a-guide-to-blockchain-security-and-compliance/">security</a>, <a href="https://www.zeeve.io/blog/how-blockchain-is-changing-the-way-we-deal-with-data-privacy/">privacy</a>, and customization choices. However, sovereign ZK chains built as <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">hyperchains</a> can still leverage the security from underlying Layer-1.&nbsp;</p>
<h3 id="h-extensive-modularity">Extensive modularity:&nbsp;</h3>
<p>Developers in the <a href="https://www.zeeve.io/blockchain-protocols/deploy-zksync-era-node/">zkSync Era</a> are free to implement their own customization and components for making their hyperchains as modular as required. We have already talked about <a href="https://www.zeeve.io/blog/tokenomics-a-new-demand-generation-framework-for-a-new-generation/">tokenomics</a>, consensus, etc. On a high-level overview, hyperchains can opt for specific sequencing transactions – centralized sequencer, decentralized sequencer, shared sequencer, and priority queue. Similarly, each hyperchain can choose its DA layer and data availability policy. Basically, they can choose Layer-1 as the data availability layer, external DA solutions with zkPorter, and build their hyperchain as validium for off-chain data availability and verification by DAC– Data Availability Committee. Also, <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">hyperchains</a> are free to implement custom virtual machines (VM), set specific security parameters, and optimize their existing modules for greater speed and execution.</p>
<h3 id="h-account-abstraction-aa-integration">Account Abstraction (AA) Integration:&nbsp;</h3>
<p><a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">Hyperchains</a> can integrate account abstraction (AA) features into their ecosystem, allowing users to utilize their accounts as <a href="https://www.zeeve.io/blog/smart-contract-standardization-a-necessity-for-the-large-scale-adoption-of-blockchain/">smart contracts</a>. This is possible because accounts in hyperchains can implement arbitrary logic within them while they can initiate transactions like EOAs. Having AA is beneficial in many ways, such as ensuring the privacy and <a href="https://www.zeeve.io/blog/a-guide-to-blockchain-security-and-compliance/">security</a> of <a href="https://www.zeeve.io/blog/smart-contract-standardization-a-necessity-for-the-large-scale-adoption-of-blockchain/">smart contract</a> wallets or <a href="https://www.zeeve.io/blockchain-protocols/">protocols</a>, one-click approval of asset trading and swapping, and the ease of accepting transaction fees in <a href="https://www.zeeve.io/blog/introduction-to-token-standards-erc-20-erc-721-erc-777-and-erc-1155/">ERC tokens</a> from any chain, regardless of the fee logic it implements. AA also enables cross-hyperchain wallet management so that users can manage and maintain wallets on different chains while still being able to transact with any chain.&nbsp;</p>
<h3 id="h-inter-hyperchain-interoperability-through-shared-bridge">Inter-hyperchain interoperability through shared bridge:</h3>
<p>As we discussed already, <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">hyperchains</a> are independent, but they are interconnected through a shared bridge called a hyperbridge. This bridge is a <a href="https://www.zeeve.io/blog/smart-contract-standardization-a-necessity-for-the-large-scale-adoption-of-blockchain/">smart contract</a> deployed on layer-1 that verifies Merkle proof of all the transactions happening on the adjacent chains. Plus, a hyperbridge locks the assets from various chains to maintain unified liquidity while facilitating the inter-chain flow of assets. Let’s see how Hyperbridges works:<br></p>
<li>Hyperchains initiates inter-hyperchain transactions.</li>
<li>This chain settles its transaction proof in L1.</li>
<li>Once a proof is settled, hyperchain updates its transaction root.</li>
<li>The receiving hyperchain now imports this transaction root.</li>
<li>A relayer sends this transaction along with a Merkle Proof that connects the transaction root with the recipient chain.</li>
<li>Transactions and Merkle Proofs are validated.</li>
<li>Proof is settled on the receiving hyperchain.</li>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7amcvdmqtywurveicsbu.png)
<h3 id="h-privacy-enabled-permissioned-zk-chains">Privacy-enabled, permissioned ZK chains:</h3>
<p>Hyperchains can be designed as a privacy-enabled zk–chain that can modify privacy aspects in a number of ways. For example, web3 projects can launch their hyperchain as validium in which data is settled on an external layer. Hence, high-level privacy is achieved while maintaining complete secrecy of blocked data.&nbsp;</p>
<p>Another option is to build a specialized Layer-3 protocol with user-level privacy. This can be done by directly including projects like Aztec and Tornado into the <a href="https://www.zeeve.io/blockchain-protocols/deploy-zksync-era-node/">zkSync era’s ecosystem</a> or opting them into a standalone hyperchain for more flexibility. Lastly, dApps can go for self-hosted <a href="https://www.zeeve.io/rollups/">rollups</a> using user–maintained data availability and off-chain, self-proving state transitions. This approach offers ultimate privacy and infinite scalability in the long run.</p>
<h2 id="h-use-cases-of-zksync-era-s-hyperchains">Use cases of zkSync Era’s Hyperchains&nbsp;</h2>
<p>There can be diverse use cases of <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">hyperchain</a> due to its next-level <a href="https://www.zeeve.io/rollups/">rollup architecture</a>, hyper-scalable web3 dApp ecosystem, and a range of useful features. Let’s discuss its main use cases:</p>
<p><strong>Enterprise solutions- </strong>Hyperchains are ideal for <a href="https://www.zeeve.io/enterprise-blockchain/">enterprises</a> looking to build a permissioned, closed chain while still needing connection with the broader ecosystem, such as zkSync Era. There’s no specific limitation on how private a hyperchain can be or what privacy parameters can be added. It's endless.</p>
<p><strong>DeFi projects:</strong> With Hyperchains, high throughput DeFi projects like <a href="https://www.zeeve.io/blog/blockchain-in-the-banking-and-financial-industry/">finance</a> and flash loan applications can unlock benefits like unified liquidity, composable <a href="https://www.zeeve.io/blog/blockchain-interoperability-key-for-global-blockchain-adoption/">interoperability</a> and, most importantly, infinite throughput and scalability.&nbsp;</p>
<p><strong>Gaming appchains: </strong>If you are building a game that needs endless customization and massive scalability– <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">Hyperchains</a> is the ideal solution. With a lightweight sequencer and single-use infrastructure, your game can offer massive throughout, custom gas fee, game-specific concensus, and a seamless flow of in-game assets— everything that caters to its specific requirements.</p>
<p><strong>Exchange solution: </strong>We all know about dYdX’s move from <a href="https://www.zeeve.io/blockchain-protocols/deploy-ethereum-blockchain/">Ethereum</a> to a private chain to achieve higher throughput, lower fees, better decision-making, and customization. With zkStack, exchanges like dYdX can create a hyperchain to get all these benefits and additional benefits of Account Abstraction (AA), better exchange of assets via hyperbridge, fast response time, and throughput.</p>
<p>Hyperchains are relatively new, hence, Web3 projects are right now working on making their projects live soon. One such example is GRVT. It’s a hybrid cryptocurrency exchange that will operate as a hyperchain on the top of <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">zkSync ecosystem</a>, which interoperates seamlessly with all the other hyperchains via hyperbridge, maintaining unified liquidity while ensuing smooth trading, and a rich user experience.</p>
<p>Another example is Tradable— the leading joint venture is utilizing <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">ZK Stack</a> to build hyperchain and bring traditional finance on-chain while tokenizing their private credit market worth $.14 trillion.&nbsp; Hyperchain will boost platform Tradable’s overall efficiency and scalability while offering an infrastructure that is privacy-focused, institutional-friendly, and other compliance-forward solutions.</p>
<h2 id="h-launch-your-hyperchains-with-zkstack-and-zeeve">Launch your Hyperchains with Zkstack and Zeeve</h2>
<p><a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">Deploying your zkSync hyperchains</a> or Layer-3 dApps with <a href="https://www.zeeve.io/">Zeeve</a> is seamless, cost-efficient, 10x faster, and less resource-intensive than doing it yourself. <a href="https://www.zeeve.io/">Zeeve</a> offers an enterprise-grade <a href="https://www.zeeve.io/appchains/polygon-zkrollups/">Zk-rollup-as-a-service</a> platform with extensive customization and configuration options through <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">ZkStack</a>.&nbsp;</p>
<p><a href="https://www.zeeve.io/">Zeeve</a> removes the hassle of managing ZK-chain infrastructure, deploying nodes, or getting crucial components ready, such as explorers, wallets, testnet faucets, and data indexers, using <a href="https://www.zeeve.io/subgraphs/">custom Subgraph</a> and Subquery projects. On top of all these, your <a href="https://www.zeeve.io/rollups/">rollup chains</a> will be monitored on critical performance, offering to maintain 99.99% uptime and resilience. Further, Zeeve guarantees the reliability of its <a href="https://www.zeeve.io/rollups/">Rollups-as-a-service</a> offering with ISO 27001 and SOC 2 Type 2 compliance and enterprise-level SLA.&nbsp;</p>
<p>For more information on how <a href="https://www.zeeve.io/">Zeeve</a> simplifies the deployment of <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">ZkSync Hyperchains</a> and layer-3 Zk-chains, <a href="https://www.zeeve.io/talk-to-an-expert/">connect with our experts</a>. Drop your queries via email on this page or join our active community discussion.&nbsp;</p>