Difference between revisions of "ZkSync (ZKS)"
m (→Basics) |
m |
||
(22 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
zkSync is a [[Layer Two|L2]] [[Rollups|ZK rollup]] | zkSync is a [[Layer Two|L2]] [[Rollups|ZK rollup]] | ||
==Basics == | ==Basics == | ||
* Based in: | * Based in: | ||
* | *Development [https://bankless.ghost.io/r/71787661 began in 2019]. | ||
* [[Mainnet]] release: [https://medium.com/matter-labs/zksync-is-live-bringing-trustless-scalable-payments-to-ethereum-9c634b3e6823 18-6-2020] | * [[Mainnet]] release zkSync 1.0: [https://medium.com/matter-labs/zksync-is-live-bringing-trustless-scalable-payments-to-ethereum-9c634b3e6823 18-6-2020] | ||
*[https://thedefiant.io/zksync-launch-evm Opened up] registrations for developers for it's "mainnet" zero-knowledge rollup platform (17-2-2023). | *[https://thedefiant.io/zksync-launch-evm Opened up] registrations for developers for it's "mainnet" zero-knowledge rollup platform (17-2-2023). | ||
Line 30: | Line 30: | ||
=== Bugs/Exploits === | === Bugs/Exploits === | ||
* Got hit with the Inscription wave. Made its [https://x.com/zkSyncDevs/status/1736057961477226517 nodes lag], but did not halt the chain (16-12-2023). zkSync Era network [https://twitter.com/zkSyncDevs/status/1739395228233335154 issued] (26-12-2023) post-mortem: safety procedure caused [[sequencer]] to wait for computed state update mismatch to be resolved | |||
* [https://twitter.com/ChainLight_io/status/1720109308015485194 From] ChainLight (2-11-2023): | |||
''"On September 15th, we discovered and reported a critical bug in @zkSync Era's ZK-Circuits that could have drained all the tokens passing through the bridge. This bug allows a malicious prover to produce "proofs" for invalidly executed blocks, which the verifier smart contracts on L1 would have blindly accepted. Since our bug discovery, $1.9B has passed through the bridge. Matter Labs quickly reacted to the report and deployed a fix for the issue. For disclosing a critical issue, they proactively awarded us with 50K USDC."'' | |||
* zkSync [https://blog.yacademy.dev/2024-08-19-when-L2s-fall/ went down] (1-4-2023): | |||
''"This incident resulted in over 4 hours of downtime, but the fix for the issue only took 5 minutes. One reason for the slow response time in responding to this issue is that the monitoring for the database that went down failed to work as expected. The protocol tweeted “The database health alert did not trigger because it could not connect to it to collect metrics.” Another reason given for the delay is that all the team was at an off-site, so they did not have engineers in multiple time zones like normal. Downtime started at block 5308 until block 5312."'' | |||
== Governance == | == Governance == | ||
=== | === ZK Nation === | ||
* zkSync governance [https://x.com/aeyakovenko/status/1834266261028839507 went live], with the community voting on scheduled upgrades and a security council being able to pause withdrawls, but not do emergency upgrades (12-9-2024). | |||
* [https://decrypt.co/234619/zksync-unveils-zk-nation-ahead-of-airdrop From] [[Decrypt]] (11-6-2024): | |||
''"An initiative where the community, security experts, and technical experts will work in tandem to maintain and grow the ZKSync ecosystem.'' | |||
''For now, the privacy-focused network said its ZK Nation will oversee three major divisions, which will be responsible for all network-related activities.'' | |||
''ZkSync Token Assembly will be a community-driven initiative whose primary objective is to participate in the on-chain governance of the protocol. These will include putting forth proposals, voting on proposals, delegating votes, and more.'' | |||
''ZkSync Guardians will embody the principles of ZK Credo. Its members will have the ability to enforce actions to safeguard the protocol such as taking emergency actions, vetoing actions, and more. Initially, five individuals will take on the mantle of being a ZKsync Guardian. Their identities will be revealed later.'' | |||
* [https://l2beat.com/scaling/projects/immutablex/ From] [[L2beat]] (13-10-2022) on zkSync: | ''The ZkSync Security Council will be the third pillar of the initiative. It will consist of cybersecurity professionals, engineers, and auditors. They will provide technical reviews of the upgrades put forth by the Token Assembly. Further, they will have the power to halt the entire protocol or parts of the protocol in order to combat threats arising from critical bugs and exploits. At launch, twelve individuals will be part of this group."'' | ||
=== Admin Keys (has been deprecated) === | |||
* Has [https://x.com/l2beat/status/1730258959695593696 used] (30-11-2023) it's centralized powers to delete tx batches or state roots 8 times (!). | |||
*zkSync Era got [https://l2beat.com/scaling/projects/zksync-era scored] lower than zkSync Lite (the previous version) by L2beat (27-3-2023). There is no mechanism for users to escape censorship if the [[sequencer]] decides to do so. The code can also be changed without notice. According to [[Bankless DAO (BANK)|Bankless]] (3-2023): | |||
''" zkSync Era is set to evolve further. For example, the L2 is currently [[centralized]] in how it is maintained, but it’s set to be “transitioned to a decentralized system shortly” the zkSync team has said."'' | |||
*[https://l2beat.com/scaling/projects/immutablex/ From] [[L2beat]] (13-10-2022) on zkSync: | |||
''"[[Zk-SNARK's|ZK-SNARKs]] require a trusted setup to operate. The system has a [[centralized]] operator. The operator is the only entity that can propose [[Block|blocks]]. A live and trustworthy operator is vital to the health of the system. Force exit allows the users to escape censorship by withdrawing their funds. The system allows users to force the withdrawal of funds by submitting a request directly to the [[Smart Contract (SC)|contract]] [[On Chain|on-chain]]. The request must be served within a defined time period. If this does not happen, the system will halt regular operation and permit trustless withdrawal of funds. If enough time passes and the forced exit is still ignored the user can put the system into [https://zksync.io/dev/payments/basic.html#flow Exodus Mode], disallowing further state updates. In that case everybody can withdraw by submitting a zero knowledge proof of their funds with their [[Layer One|L1]] transaction.'' | ''"[[Zk-SNARK's|ZK-SNARKs]] require a trusted setup to operate. The system has a [[centralized]] operator. The operator is the only entity that can propose [[Block|blocks]]. A live and trustworthy operator is vital to the health of the system. Force exit allows the users to escape censorship by withdrawing their funds. The system allows users to force the withdrawal of funds by submitting a request directly to the [[Smart Contract (SC)|contract]] [[On Chain|on-chain]]. The request must be served within a defined time period. If this does not happen, the system will halt regular operation and permit trustless withdrawal of funds. If enough time passes and the forced exit is still ignored the user can put the system into [https://zksync.io/dev/payments/basic.html#flow Exodus Mode], disallowing further state updates. In that case everybody can withdraw by submitting a zero knowledge proof of their funds with their [[Layer One|L1]] transaction.'' | ||
Line 43: | Line 70: | ||
# ''Security Council0xa260…1769 (EOA), 0x9D5d…f607 (EOA), 0x002A…7346 (EOA), 0x71E8…88c3 (EOA), 0x76C6…cB11 (EOA), 0xFBfF…3190 (EOA), 0xAfC2…c0d6 (EOA), 0x4d1E…38C6 (EOA), 0x19eD…8567 (EOA), 0x3941…e1b6 (EOA), 0x399a…52C2 (EOA), 0xee8A…5eaB (EOA), 0xe7CC…231f (EOA), 0xA093…e33B (EOA), 0x225d…086e (EOA)'' ''By default upgradeable contracts can be upgraded only after 3 weeks period. Security council can vote to cut this period to 0 days making the upgrade possible immediately if at least 9 out of 15 counselors agree on this.'' | # ''Security Council0xa260…1769 (EOA), 0x9D5d…f607 (EOA), 0x002A…7346 (EOA), 0x71E8…88c3 (EOA), 0x76C6…cB11 (EOA), 0xFBfF…3190 (EOA), 0xAfC2…c0d6 (EOA), 0x4d1E…38C6 (EOA), 0x19eD…8567 (EOA), 0x3941…e1b6 (EOA), 0x399a…52C2 (EOA), 0xee8A…5eaB (EOA), 0xe7CC…231f (EOA), 0xA093…e33B (EOA), 0x225d…086e (EOA)'' ''By default upgradeable contracts can be upgraded only after 3 weeks period. Security council can vote to cut this period to 0 days making the upgrade possible immediately if at least 9 out of 15 counselors agree on this.'' | ||
# ''Active validator 0x01c3…F91e (EOA)'' ''This actor is allowed to propose, revert and execute [[Layer Two|L2]] blocks on [[Layer One|L1]].'' | # ''Active validator 0x01c3…F91e (EOA)'' ''This actor is allowed to propose, revert and execute [[Layer Two|L2]] blocks on [[Layer One|L1]].'' | ||
# ''Token listing beneficiary 0x2A0a…d027 (EOA)'' ''Account receiving fees for listing tokens. Can be updated by zkSync MultiSig."'' | # ''Token listing beneficiary 0x2A0a…d027 (EOA)'' ''Account receiving fees for listing tokens. Can be updated by zkSync MultiSig."'' | ||
=== Treasury === | === Treasury === | ||
== Token == | == Token == | ||
=== Launch === | === Launch === | ||
* Token airdrop [https://decrypt.co/234619/zksync-unveils-zk-nation-ahead-of-airdrop scheduled] for mid-June, with governance capabilities (11-6-2024). | |||
* [[Token]] got [https://docs.zksync.io/userdocs/tokenomics.html confirmed] on 3-5-2022. But (16-11-2022): | * [[Token]] got [https://docs.zksync.io/userdocs/tokenomics.html confirmed] on 3-5-2022. But (16-11-2022): | ||
''“We are not in a hurry to do the token,” Newcomb told Decrypt. “There’s a trilemma that exists in [[Decentralized|decentralization]]: the trilemma of decentralizing your organization, decentralizing your technology, and decentralizing your economy. The token is only one part of this. And we want to make sure we handle that trilemma really, really well.”'' | ''“We are not in a hurry to do the token,” Newcomb told Decrypt. “There’s a trilemma that exists in [[Decentralized|decentralization]]: the trilemma of decentralizing your organization, decentralizing your technology, and decentralizing your economy. The token is only one part of this. And we want to make sure we handle that trilemma really, really well.”'' | ||
*zkSync hasn’t launched a native token yet, but the L2’s [[roadmap]] explicitly mentions tokenomics so it’s clear such a token is forthcoming: | |||
''“There is no need for a token at this point. The token will be required once you want to decentralize the [[sequencer]]. Everything has to have its objective and justification. In order to have permissionless participation in the validator set, we don't have anything better than a token right now — like how you make it permissionless. But for now, since we are on this sequencer, it's not yet necessary,''” [https://www.theblock.co/post/222596/zksync-era-first-zkevm-goes-live-in-major-development-for-ethereum said] Gluchowski. He estimated that the sequencer will be decentralized in around a year's time. | |||
=== Token allocation === | === Token allocation === | ||
=== Utility === | === Utility === | ||
Line 60: | Line 90: | ||
=== Token Details === | === Token Details === | ||
== | == Tech of zkSync L2s == | ||
* There will be two distinct zkSync L2s: [https://l2beat.com/scaling/projects/zksync-lite zkSync Lite] and [https://l2beat.com/scaling/projects/zksync-era zkSync Era] (3-2023). | |||
* zkSync docs can be found [https://zksync.io/dev/ here]. | * zkSync docs can be found [https://zksync.io/dev/ here]. | ||
* Code for zkSync can be viewed [https://github.com/matter-labs/zksync here]. The team [https://decrypt.co/114774/matter-labs-raises-200m-scale-ethereum-zksync-solution announced] (16-11-2022) that it would be open-sourcing all of its code, too, as per the MIT Open Source Initiative. | * Code for zkSync can be viewed [https://github.com/matter-labs/zksync here]. The team [https://decrypt.co/114774/matter-labs-raises-200m-scale-ethereum-zksync-solution announced] (16-11-2022) that it would be open-sourcing all of its code, too, as per the MIT Open Source Initiative. | ||
* Built on: [[Layer Two|L2]] on [[Ethereum (ETH)|Ethereum]] | * Built on: [[Layer Two|L2]] on [[Ethereum (ETH)|Ethereum]] | ||
* Programming language used: [[Solidity]], has [[Software Development Kit (SDK)|SDKs]] in [[JavaScript]], [[Python]], [[Go]] and [[Java]] ([https://v2-docs.zksync.io/api/ 31-10-2022]). | * zkSync Era is a zkEVM | ||
*Programming language used in zkSync Lite: [[Solidity]], has [[Software Development Kit (SDK)|SDKs]] in [[JavaScript]], [[Python]], [[Go]] and [[Java]] ([https://v2-docs.zksync.io/api/ 31-10-2022]). | |||
*[https://thedefiant73984.lt.acemlnb.com/Prod/link-tracker?redirectUrl=aHR0cHMlM0ElMkYlMkZ0aGVkZWZpYW50LmlvJTJGZXRoZXJldW0tbGF5ZXItMi1iYXR0bGUtbWF0dGVyLWxhYnMtY2VvLWV4cGxhaW5zLXdoeS1oZS10aGlua3Mtemstcm9sbHVwcy13aWxsLXdpbiUzRnV0bV9zb3VyY2UlM0RBY3RpdmVDYW1wYWlnbiUyNnV0bV9tZWRpdW0lM0RlbWFpbCUyNnV0bV9jb250ZW50JTNERXRoZXJldW0lMkJMYXllciUyQjIlMkJCYXR0bGUlMjUzQSUyQk1hdHRlciUyQkxhYnMlMkJDRU8lMkJFeHBsYWlucyUyQldoeSUyQkhlJTJCVGhpbmtzJTJCemtTeW5jJTJCV2lsbCUyQldpbiUyNnV0bV9jYW1wYWlnbiUzRG5ld3NsZXR0ZXItcG9kY2FzdC1KdW5lJTJCMTIlMjUyQyUyQjIwMjM=&sig=7n1GhQcBkAgBebj3MN67PgyhEDbuLgNaFLZWLvS5Jxfk&iat=1686606280&a=%7C%7C1002396348%7C%7C&account=thedefiant73984%2Eactivehosted%2Ecom&email=coQowHAnjb60tBc%2FASeGbVFemcn5v8zjyU1Msir9tYcvwwhyBXIWYbHHJEpXBP441gtLBM0VHjN3L%2B0P%3AeCh1%2BWfjRW68CM4Vc5pQwaiHP9MhscVC&s=4ed31412413ecedb38f1300cbfe46958&i=691A1140A54A15659 They don’t use] [[Geth]]. Instead, they built a full client from scratch in [[Rust]], which is more performant. | |||
=== Transaction Details === | === Transaction Details === | ||
* | * [https://newsletter.banklesshq.com/p/the-best-comparison-on-zkrollups?token=eyJ1c2VyX2lkIjoxMzk3OTAwLCJwb3N0X2lkIjo0NDE3NjMyOSwiXyI6IjNtM29qIiwiaWF0IjoxNjM4NTAyNjIyLCJleHAiOjE2Mzg1MDYyMjIsImlzcyI6InB1Yi0xNjAxNSIsInN1YiI6InBvc3QtcmVhY3Rpb24ifQ.1T0tTzQkvtLof From] [[Bankless DAO (BANK)|Bankless]] (18-11-2021): | ||
* [[Latency]]: | ''"The highest capacity measured so far was during a [[Gitcoin (GTC)|Gitcoin]] grants round that saw a peak load of 20,000 transactions per hour—5.6 [[Transactions per second (TPS)|TPS]]. Though it is a significant amount less than the 18,000 transfers demonstrated by StarkEx, it was sustained for an entire hour."'' | ||
*[[Latency]]: | |||
=== How it works === | === How it works === | ||
Key Features of the Elastic Chain (from [[Messari]] 8-7-2024): | |||
* [https://l2beat.com/scaling/projects/immutablex/ From] [[L2beat]] (13-10-2022) on zkSync: | # ''"Unification: Users can use one [[address]] across all ZK Chains, transact with a single [[signature]], and pay fees in any token.'' | ||
# ''Security: The ZK Gateway leverages Ethereum's cryptographic verification, eliminating the need for third-party [[bridges]], and ensuring secure transactions between different ZK Chains. '' | |||
# ''Scalability: The chain can grow without increasing transaction costs, allowing for more chains and higher capacity.'' | |||
# ''Elastic Validation: The chain validates transactions within a fixed timeframe, regardless of complexity, mirroring the economic concept of elasticity by scaling supply to meet rising demand.''" | |||
*[https://l2beat.com/scaling/projects/immutablex/ From] [[L2beat]] (13-10-2022) on zkSync: | |||
''"Each update to the system [[state]] must be accompanied by a ZK Proof that ensures that the new state was derived by correctly applying a series of valid user [[Transaction (Tx)|transactions]] to the previous state. Once the proof is processed on the [[Ethereum (ETH)|Ethereum]] blockchain the [[Layer Two|L2]] [[block]] is instantly finalized. All the data that is used to construct the system state is published [[On Chain|on chain]] in the form of cheap calldata. This ensures that it will always be available when needed."'' | ''"Each update to the system [[state]] must be accompanied by a ZK Proof that ensures that the new state was derived by correctly applying a series of valid user [[Transaction (Tx)|transactions]] to the previous state. Once the proof is processed on the [[Ethereum (ETH)|Ethereum]] blockchain the [[Layer Two|L2]] [[block]] is instantly finalized. All the data that is used to construct the system state is published [[On Chain|on chain]] in the form of cheap calldata. This ensures that it will always be available when needed."'' | ||
Line 80: | Line 120: | ||
=== Upgrades === | === Upgrades === | ||
* zkSync v2.0 [https://blog.matter-labs.io/baby-alpha-has-arrived-5b10798bc623 deployed] for the team; apps will be able to deploy later this year, opens to users next year ([https://weekinethereum.substack.com/p/week-in-ethereum-news-october-29 29-10-2022]). | * In February 2023, Matter Labs renamed zkSync 2.0 to “[https://bankless.ghost.io/r/35dd8b8d zkSync Era],” rebranding zkSync 1.0 to “zkSync Lite” in the process, and began the Fair Onboarding period of its Era alpha so that registered projects could start launching on the L2. Finally on March 24, 2023, the zkSync Era mainnet alpha was launched. | ||
*zkSync v2.0 [https://blog.matter-labs.io/baby-alpha-has-arrived-5b10798bc623 deployed] for the team; apps will be able to deploy later this year, opens to users next year ([https://weekinethereum.substack.com/p/week-in-ethereum-news-october-29 29-10-2022]). | |||
* [https://ournetwork.substack.com/p/ournetwork-issue-118?token=eyJ1c2VyX2lkIjoxMzk3OTAwLCJwb3N0X2lkIjo1MjY3MDkwNiwiXyI6InE4L1VrIiwiaWF0IjoxNjUzMDQyNzc0LCJleHAiOjE2NTMwNDYzNzQsImlzcyI6InB1Yi0yMTM2MiIsInN1YiI6InBvc3QtcmVhY3Rpb24ifQ.UE2XSsIgrPortaxRKTLEqwnrGp0my9DJJ10ffQfVPOU&s=r From] [[Our Network]] (23-4-2022): | * [https://ournetwork.substack.com/p/ournetwork-issue-118?token=eyJ1c2VyX2lkIjoxMzk3OTAwLCJwb3N0X2lkIjo1MjY3MDkwNiwiXyI6InE4L1VrIiwiaWF0IjoxNjUzMDQyNzc0LCJleHAiOjE2NTMwNDYzNzQsImlzcyI6InB1Yi0yMTM2MiIsInN1YiI6InBvc3QtcmVhY3Rpb24ifQ.UE2XSsIgrPortaxRKTLEqwnrGp0my9DJJ10ffQfVPOU&s=r From] [[Our Network]] (23-4-2022): | ||
Line 89: | Line 130: | ||
== Oracle Method == | == Oracle Method == | ||
* zkSync will [https://medium.com/matter-labs/chainlink-d12355ce0ce8 integrate] with [[Chainlink (LINK)|Chainlink]] (11-11-2021). | * [[Redstone]] is the first [[Oracle]] on zkSync ([https://open.spotify.com/episode/0Uvr2OgIliuEOgYgsigbWE?si=YpJOijcBQSGgQNcbALJ4Eg&nd=1 22-5-2023]). | ||
*zkSync will [https://medium.com/matter-labs/chainlink-d12355ce0ce8 integrate] with [[Chainlink (LINK)|Chainlink]] (11-11-2021). | |||
== Privacy Method == | == Privacy Method == | ||
== Their | == Their Projects == | ||
=== zkPorter === | === zkPorter === | ||
* Will [https://docs.zksync.io/zkevm/?ref=bankless.ghost.io#what-is-zkporter join] zkSync Era (3-2023): | |||
* | |||
''" | ''"Additionally, in the future the L2 will be extended by zkPorter, a novel volition system that can facilitate up to ~20,000 transactions per second (TPS) and will offer users the ability to switch between a ZK rollup mode and a validium mode at will."'' | ||
* [https://medium.com/matter-labs/zkporter-composable-scalability-in-l2-beyond-zkrollup-2a30c4d69a75 zkPorter] is a new L2 scaling technique combining [[zkRollup]] and [[sharding]] in a highly scalable yet atomically composable [[blockchain]] network. | |||
* [https:// | |||
==== Usage ==== | ==== Usage ==== | ||
Line 123: | Line 158: | ||
== Roadmap == | == Roadmap == | ||
* ZkSync is [https://www.theblock.co/post/181091/zksync-is-working-on-layer-3-blockchain-for-ethereum working on] (29-10-2022) Layer 3 blockchain for Ethereum called Opportunity. The team plans to release a proof of concept in the first quarter of 2023. Opportunity will be an additional [[Off Chain|off-chain]] computation layer on zkSync's Layer 2 main network. | * [[Roadmap]] can be found [https://medium.com/matter-labs/zksync-2-0-roadmap-update-zkevm-testnet-in-may-mainnet-in-august-379c66995021 here] (27-3-2021). | ||
*ZkSync is [https://www.theblock.co/post/181091/zksync-is-working-on-layer-3-blockchain-for-ethereum working on] (29-10-2022) Layer 3 blockchain for Ethereum called Opportunity. The team plans to release a proof of concept in the first quarter of 2023. Opportunity will be an additional [[Off Chain|off-chain]] computation layer on zkSync's Layer 2 main network. | |||
*[https://twitter.com/Coin98Insights/status/1519332277289127936 From] [[Coin98 (C98)|Coin98]] (27-4-2022): | *[https://twitter.com/Coin98Insights/status/1519332277289127936 From] [[Coin98 (C98)|Coin98]] (27-4-2022): | ||
Line 136: | Line 172: | ||
== Usage == | == Usage == | ||
* [https://ournetwork.substack.com/p/ournetwork-issue-118?token=eyJ1c2VyX2lkIjoxMzk3OTAwLCJwb3N0X2lkIjo1MjY3MDkwNiwiXyI6InE4L1VrIiwiaWF0IjoxNjUzMDQyNzc0LCJleHAiOjE2NTMwNDYzNzQsImlzcyI6InB1Yi0yMTM2MiIsInN1YiI6InBvc3QtcmVhY3Rpb24ifQ.UE2XSsIgrPortaxRKTLEqwnrGp0my9DJJ10ffQfVPOU&s=r From] | * [https://ournetwork.substack.com/p/on236-high-performance-blockchains From] [[Our Network]] (24-5-2024): | ||
''"Live on mainnet for now over one year, zkSync Era has amassed nearly $1B in TVL, more than 375M transactions, and nearly 7M unique active addresses. In just the last few months, the TVL contribution from natively minted tokens has grown to more than $75M."'' | |||
* [https://ournetwork.substack.com/p/ournetwork-issue-118?token=eyJ1c2VyX2lkIjoxMzk3OTAwLCJwb3N0X2lkIjo1MjY3MDkwNiwiXyI6InE4L1VrIiwiaWF0IjoxNjUzMDQyNzc0LCJleHAiOjE2NTMwNDYzNzQsImlzcyI6InB1Yi0yMTM2MiIsInN1YiI6InBvc3QtcmVhY3Rpb24ifQ.UE2XSsIgrPortaxRKTLEqwnrGp0my9DJJ10ffQfVPOU&s=r From] Our Network (23-4-2022): | |||
''"zkSync 1.0 has processed over 7.3m [[Transaction (Tx)|transactions]]. Despite the lack of [[Smart Contract (SC)|smart contract]] functionality, zkSync 1.0 continues to see healthy growth. There have been more than 378k transactions from ETH [[Mainnet]] to zkSync by more than 257k unique [[Address|addresses]]. At time of writing, zkSync 1.0 currently has ~$132.4m [[Total Value Locked (TVL)|TVL]]. TVL reached an all-time high in March 2022 of $163m."'' | ''"zkSync 1.0 has processed over 7.3m [[Transaction (Tx)|transactions]]. Despite the lack of [[Smart Contract (SC)|smart contract]] functionality, zkSync 1.0 continues to see healthy growth. There have been more than 378k transactions from ETH [[Mainnet]] to zkSync by more than 257k unique [[Address|addresses]]. At time of writing, zkSync 1.0 currently has ~$132.4m [[Total Value Locked (TVL)|TVL]]. TVL reached an all-time high in March 2022 of $163m."'' | ||
Line 150: | Line 189: | ||
=== Pros === | === Pros === | ||
=== Cons === | === Cons === | ||
* Has [https://x.com/l2beat/status/1730258959695593696 used] (30-11-2023) it's centralized powers to delete tx batches or state roots 8 times (!). | |||
== Competition == | == Competition == | ||
== Team, Funding, Partners == | == Team, Funding, Partners == | ||
=== Team === | === Team === | ||
* Full team can be found [here]. | * Full team can be found [here]. | ||
* Alex Gluchowski; CEO | *Developed by Matter Labs | ||
* [[Alex Gluchowski]]; CEO | |||
*Marco Cora; Head of BD ([https://redstone.finance/ 10-2023]) | |||
*[https://cointelegraph.com/top-people-in-crypto-and-blockchain-2023/alex-gluchowski In August 2022], Gluchowski published a blog post announcing Matter Labs’ new chief product officer, Steve Newcomb. In November, Gluchowski posted about the appointment of Ankur Rakshit as the company’s chief financial officer. | |||
*[[Ryan Sean Adams]] and [[David Hoffman]]; disclosed themselves to be an advisor ([https://docs.google.com/spreadsheets/d/16XcKXcH5e4CDc-Qek4WN4FUBPpnViAhLGgvtXat7NBg/edit?ref=bankless.ghost.io#gid=0 28-4-2023]) | |||
*"We don't wanna grow beyond 150 people" ([https://thedefiant73984.lt.acemlnb.com/Prod/link-tracker?redirectUrl=aHR0cHMlM0ElMkYlMkZ0aGVkZWZpYW50LmlvJTJGZXRoZXJldW0tbGF5ZXItMi1iYXR0bGUtbWF0dGVyLWxhYnMtY2VvLWV4cGxhaW5zLXdoeS1oZS10aGlua3Mtemstcm9sbHVwcy13aWxsLXdpbiUzRnV0bV9zb3VyY2UlM0RBY3RpdmVDYW1wYWlnbiUyNnV0bV9tZWRpdW0lM0RlbWFpbCUyNnV0bV9jb250ZW50JTNERXRoZXJldW0lMkJMYXllciUyQjIlMkJCYXR0bGUlMjUzQSUyQk1hdHRlciUyQkxhYnMlMkJDRU8lMkJFeHBsYWlucyUyQldoeSUyQkhlJTJCVGhpbmtzJTJCemtTeW5jJTJCV2lsbCUyQldpbiUyNnV0bV9jYW1wYWlnbiUzRG5ld3NsZXR0ZXItcG9kY2FzdC1KdW5lJTJCMTIlMjUyQyUyQjIwMjM=&sig=7n1GhQcBkAgBebj3MN67PgyhEDbuLgNaFLZWLvS5Jxfk&iat=1686606280&a=%7C%7C1002396348%7C%7C&account=thedefiant73984%2Eactivehosted%2Ecom&email=coQowHAnjb60tBc%2FASeGbVFemcn5v8zjyU1Msir9tYcvwwhyBXIWYbHHJEpXBP441gtLBM0VHjN3L%2B0P%3AeCh1%2BWfjRW68CM4Vc5pQwaiHP9MhscVC&s=4ed31412413ecedb38f1300cbfe46958&i=691A1140A54A15659 6-2023]) [https://blockworks.co/news/matter-labs-layoffs-incoming Laid off 16%] of their workforce (3-9-2024), 24%, meaning they grew beyond 150 people. | |||
=== Funding === | === Funding === | ||
Latest revision as of 01:22, 18 September 2024
Basics
- Based in:
- Development began in 2019.
- Mainnet release zkSync 1.0: 18-6-2020
- Opened up registrations for developers for it's "mainnet" zero-knowledge rollup platform (17-2-2023).
History
Audits & Exploits
- Bug bounty program can be found [insert here].
- From L2beat (13-10-2022) on zkSync:
"Funds can be stolen if…
- the cryptography is broken or implemented incorrectly,
- a contract receives a malicious code upgrade. There is a 21 days or 0 if overridden by 9/15 MSig delay on code upgrades.
Funds can be lost if…
- the user is unable to generate the non-trivial zk proof for exodus withdraw.
Users can be censored if…
- the operator refuses to include their transactions. They can still exit the system.
MEV can be extracted if…
- the operator exploits their centralized position and frontruns user transactions."
Bugs/Exploits
- Got hit with the Inscription wave. Made its nodes lag, but did not halt the chain (16-12-2023). zkSync Era network issued (26-12-2023) post-mortem: safety procedure caused sequencer to wait for computed state update mismatch to be resolved
- From ChainLight (2-11-2023):
"On September 15th, we discovered and reported a critical bug in @zkSync Era's ZK-Circuits that could have drained all the tokens passing through the bridge. This bug allows a malicious prover to produce "proofs" for invalidly executed blocks, which the verifier smart contracts on L1 would have blindly accepted. Since our bug discovery, $1.9B has passed through the bridge. Matter Labs quickly reacted to the report and deployed a fix for the issue. For disclosing a critical issue, they proactively awarded us with 50K USDC."
- zkSync went down (1-4-2023):
"This incident resulted in over 4 hours of downtime, but the fix for the issue only took 5 minutes. One reason for the slow response time in responding to this issue is that the monitoring for the database that went down failed to work as expected. The protocol tweeted “The database health alert did not trigger because it could not connect to it to collect metrics.” Another reason given for the delay is that all the team was at an off-site, so they did not have engineers in multiple time zones like normal. Downtime started at block 5308 until block 5312."
Governance
ZK Nation
- zkSync governance went live, with the community voting on scheduled upgrades and a security council being able to pause withdrawls, but not do emergency upgrades (12-9-2024).
- From Decrypt (11-6-2024):
"An initiative where the community, security experts, and technical experts will work in tandem to maintain and grow the ZKSync ecosystem.
For now, the privacy-focused network said its ZK Nation will oversee three major divisions, which will be responsible for all network-related activities.
ZkSync Token Assembly will be a community-driven initiative whose primary objective is to participate in the on-chain governance of the protocol. These will include putting forth proposals, voting on proposals, delegating votes, and more.
ZkSync Guardians will embody the principles of ZK Credo. Its members will have the ability to enforce actions to safeguard the protocol such as taking emergency actions, vetoing actions, and more. Initially, five individuals will take on the mantle of being a ZKsync Guardian. Their identities will be revealed later.
The ZkSync Security Council will be the third pillar of the initiative. It will consist of cybersecurity professionals, engineers, and auditors. They will provide technical reviews of the upgrades put forth by the Token Assembly. Further, they will have the power to halt the entire protocol or parts of the protocol in order to combat threats arising from critical bugs and exploits. At launch, twelve individuals will be part of this group."
Admin Keys (has been deprecated)
- Has used (30-11-2023) it's centralized powers to delete tx batches or state roots 8 times (!).
- zkSync Era got scored lower than zkSync Lite (the previous version) by L2beat (27-3-2023). There is no mechanism for users to escape censorship if the sequencer decides to do so. The code can also be changed without notice. According to Bankless (3-2023):
" zkSync Era is set to evolve further. For example, the L2 is currently centralized in how it is maintained, but it’s set to be “transitioned to a decentralized system shortly” the zkSync team has said."
"ZK-SNARKs require a trusted setup to operate. The system has a centralized operator. The operator is the only entity that can propose blocks. A live and trustworthy operator is vital to the health of the system. Force exit allows the users to escape censorship by withdrawing their funds. The system allows users to force the withdrawal of funds by submitting a request directly to the contract on-chain. The request must be served within a defined time period. If this does not happen, the system will halt regular operation and permit trustless withdrawal of funds. If enough time passes and the forced exit is still ignored the user can put the system into Exodus Mode, disallowing further state updates. In that case everybody can withdraw by submitting a zero knowledge proof of their funds with their L1 transaction.
The system uses the following set of permissioned addresses:
- zkSync MultiSig 0xE24f…0d99 (MultiSig) This MultiSig is the master of Upgrade Gatekeeper contract, which is allowed to perform upgrades for Governance, Verifier and ZkSync contracts. It can change the list of active validators.
- MultiSig participants0xA5F3…b0FF (EOA), 0x474D…53D4 (EOA), 0x9D5d…f607 (EOA), 0x9dF8…747A (EOA), 0x3068…d2Bc (EOA), 0xa265…6769 (EOA) These addresses are the participants of the 3/6 zkSync MultiSig.
- Security Council0xa260…1769 (EOA), 0x9D5d…f607 (EOA), 0x002A…7346 (EOA), 0x71E8…88c3 (EOA), 0x76C6…cB11 (EOA), 0xFBfF…3190 (EOA), 0xAfC2…c0d6 (EOA), 0x4d1E…38C6 (EOA), 0x19eD…8567 (EOA), 0x3941…e1b6 (EOA), 0x399a…52C2 (EOA), 0xee8A…5eaB (EOA), 0xe7CC…231f (EOA), 0xA093…e33B (EOA), 0x225d…086e (EOA) By default upgradeable contracts can be upgraded only after 3 weeks period. Security council can vote to cut this period to 0 days making the upgrade possible immediately if at least 9 out of 15 counselors agree on this.
- Active validator 0x01c3…F91e (EOA) This actor is allowed to propose, revert and execute L2 blocks on L1.
- Token listing beneficiary 0x2A0a…d027 (EOA) Account receiving fees for listing tokens. Can be updated by zkSync MultiSig."
Treasury
Token
Launch
- Token airdrop scheduled for mid-June, with governance capabilities (11-6-2024).
- Token got confirmed on 3-5-2022. But (16-11-2022):
“We are not in a hurry to do the token,” Newcomb told Decrypt. “There’s a trilemma that exists in decentralization: the trilemma of decentralizing your organization, decentralizing your technology, and decentralizing your economy. The token is only one part of this. And we want to make sure we handle that trilemma really, really well.”
- zkSync hasn’t launched a native token yet, but the L2’s roadmap explicitly mentions tokenomics so it’s clear such a token is forthcoming:
“There is no need for a token at this point. The token will be required once you want to decentralize the sequencer. Everything has to have its objective and justification. In order to have permissionless participation in the validator set, we don't have anything better than a token right now — like how you make it permissionless. But for now, since we are on this sequencer, it's not yet necessary,” said Gluchowski. He estimated that the sequencer will be decentralized in around a year's time.
Token allocation
Utility
- From their docs (3-5-2022):
"When zkSync becomes fully decentralized, the token will be used for staking in order to become a validator in the zkSync network. More details to come."
Token Details
Tech of zkSync L2s
- There will be two distinct zkSync L2s: zkSync Lite and zkSync Era (3-2023).
- zkSync docs can be found here.
- Code for zkSync can be viewed here. The team announced (16-11-2022) that it would be open-sourcing all of its code, too, as per the MIT Open Source Initiative.
- Built on: L2 on Ethereum
- zkSync Era is a zkEVM
- Programming language used in zkSync Lite: Solidity, has SDKs in JavaScript, Python, Go and Java (31-10-2022).
- They don’t use Geth. Instead, they built a full client from scratch in Rust, which is more performant.
Transaction Details
"The highest capacity measured so far was during a Gitcoin grants round that saw a peak load of 20,000 transactions per hour—5.6 TPS. Though it is a significant amount less than the 18,000 transfers demonstrated by StarkEx, it was sustained for an entire hour."
How it works
Key Features of the Elastic Chain (from Messari 8-7-2024):
- "Unification: Users can use one address across all ZK Chains, transact with a single signature, and pay fees in any token.
- Security: The ZK Gateway leverages Ethereum's cryptographic verification, eliminating the need for third-party bridges, and ensuring secure transactions between different ZK Chains.
- Scalability: The chain can grow without increasing transaction costs, allowing for more chains and higher capacity.
- Elastic Validation: The chain validates transactions within a fixed timeframe, regardless of complexity, mirroring the economic concept of elasticity by scaling supply to meet rising demand."
"Each update to the system state must be accompanied by a ZK Proof that ensures that the new state was derived by correctly applying a series of valid user transactions to the previous state. Once the proof is processed on the Ethereum blockchain the L2 block is instantly finalized. All the data that is used to construct the system state is published on chain in the form of cheap calldata. This ensures that it will always be available when needed."
"Funds move between users inside the smart contract, which is orchestrated by validators and guardians. When a contract is open, validators package transactions into blocks. Elected by guardians, validators have a near-perfect probabilistic guarantee of participating honestly with safety features such as built-in collateral (to disincentivize cheating). Users also decide when a contract closes, sending funds back to the main ethereum chain."
Fees
Upgrades
- In February 2023, Matter Labs renamed zkSync 2.0 to “zkSync Era,” rebranding zkSync 1.0 to “zkSync Lite” in the process, and began the Fair Onboarding period of its Era alpha so that registered projects could start launching on the L2. Finally on March 24, 2023, the zkSync Era mainnet alpha was launched.
- zkSync v2.0 deployed for the team; apps will be able to deploy later this year, opens to users next year (29-10-2022).
- From Our Network (23-4-2022):
"Matter Labs team has been focused on building zkSync 2.0, which has been live on testnet since Feb 2022. Powered by zkEVM, zkSync 2.0 is the first EVM compatible ZK rollup bringing Solidity developers the scaling, security and UX benefits of zero knowledge proofs."
Staking
Other Details
Oracle Method
- Redstone is the first Oracle on zkSync (22-5-2023).
- zkSync will integrate with Chainlink (11-11-2021).
Privacy Method
Their Projects
zkPorter
- Will join zkSync Era (3-2023):
"Additionally, in the future the L2 will be extended by zkPorter, a novel volition system that can facilitate up to ~20,000 transactions per second (TPS) and will offer users the ability to switch between a ZK rollup mode and a validium mode at will."
- zkPorter is a new L2 scaling technique combining zkRollup and sharding in a highly scalable yet atomically composable blockchain network.
Usage
- From Our Network #45 (30-10-2020):
"Live with payment support since June 2020, zkSync has processed over 300,000 transactions in total. The Gitcoin grants round 7 was one big driver in transaction volume, starting on 15th September and ending on 2nd October. It is worth noting that there are no block rewards or delegations on the current zkSync network yet and therefore all 300,000 transactions represent real interactions between users. 1inch’s Mooniswap and Balancer are currently in the process of completing their integrations as well."
Projects that use it / build on top of it:
- Argent; plans to integrate it (16-3-2021).
- Curve implemented (11-10-2020) on zkSync’s Zinc VM, live on testnet.
- Gitcoin. Used by Gitcoin (11-9-2020).
Partners
Roadmap
- Roadmap can be found here (27-3-2021).
- ZkSync is working on (29-10-2022) Layer 3 blockchain for Ethereum called Opportunity. The team plans to release a proof of concept in the first quarter of 2023. Opportunity will be an additional off-chain computation layer on zkSync's Layer 2 main network.
- From Coin98 (27-4-2022):
- "December 2019: ZK Sync v0.1 Testnet
- June 2020: Mainnet version of @zksync
- August 2020: zkSync 1.1
- May 2021: zkSync version 1.x
- June 2021: zkEVM Testnet.
- February 2022: zkSync 2.0 Public Testnet"
- Can be found here (3-5-2022).
Usage
- From Our Network (24-5-2024):
"Live on mainnet for now over one year, zkSync Era has amassed nearly $1B in TVL, more than 375M transactions, and nearly 7M unique active addresses. In just the last few months, the TVL contribution from natively minted tokens has grown to more than $75M."
- From Our Network (23-4-2022):
"zkSync 1.0 has processed over 7.3m transactions. Despite the lack of smart contract functionality, zkSync 1.0 continues to see healthy growth. There have been more than 378k transactions from ETH Mainnet to zkSync by more than 257k unique addresses. At time of writing, zkSync 1.0 currently has ~$132.4m TVL. TVL reached an all-time high in March 2022 of $163m."
Projects that use or built on it
“We have 150 launch partners,” Newcomb said. “We can include in that launch partner list Chainlink, SushiSwap, Uniswap, Maker, 1inch, Gnosis, and Wintermute."
Pros and Cons
Pros
Cons
- Has used (30-11-2023) it's centralized powers to delete tx batches or state roots 8 times (!).
Competition
Team, Funding, Partners
Team
- Full team can be found [here].
- Developed by Matter Labs
- Alex Gluchowski; CEO
- Marco Cora; Head of BD (10-2023)
- In August 2022, Gluchowski published a blog post announcing Matter Labs’ new chief product officer, Steve Newcomb. In November, Gluchowski posted about the appointment of Ankur Rakshit as the company’s chief financial officer.
- Ryan Sean Adams and David Hoffman; disclosed themselves to be an advisor (28-4-2023)
- "We don't wanna grow beyond 150 people" (6-2023) Laid off 16% of their workforce (3-9-2024), 24%, meaning they grew beyond 150 people.
Funding
- Raised $200M in their Series C (16-11-2022):
"Blockchain Capital and Dragonfly co-led the Series C round and was joined by Variant, a16z, and LightSpeed Venture Partners."
- September 2019: $2M from Hashed, Dragonfly Capital, etc.
- February 2021: $6M from Binance, Coinbase Ventures, etc.
- November 2021: $50M from a16z, etc.
- January 2022: a $200M DAO to fund projects on @zksync
- From their blog (8-11-2021):
"Announced US$50M in new funding today (in addition to US$6M raised at Series A in February this year).
The Series B financing was led by Andreessen Horowitz and included existing investors Placeholder, Dragonfly, and 1kx. A second financing was closed with strategic partners such as Blockchain.com, Crypto.com, Consensys, ByBit, OKEx, Alchemy, Covalent and joined by the founders and leadership of AAVE, Paraswap, Lido, Futureswap, Gnosis, Rarible, Aragon, Liquity, Celer, Connext, Perpetual, Euler, Opium, and 70 more."
- From their blog (1-3-2021):
"This [undisclosed amount] round is led by Union Square Ventures, Cloudflare, Firebase, Twilio, MongoDB, and Coinbase. It also includes our existing investors — Placeholder, 1kx, and Dragonfly — who have provided us with incredible support over the last two years."
Partners
- Participated (9-2019) in the Ignition MPC ceremony for PLONK organized by AZTEC Protocol.
(:
Knowledge empowers all and will help us get closer to the decentralized world we all want to live in!
Making these free wiki pages is fun but takes a lot of effort and time.
If you have enjoyed reading, tips are appreciated :) This will help us to keep expanding this archive of information.