

Using a zoo as a metaphor, hard-core science popularization of the working principle of zkSync circuit
Many people were confused after seeing @zkSync’s new zoo science pictures and texts. They compared the zoo to a circuit circuit and regarded animals with special skills as "logic gates." ", think of the happy group photo of the animals as "proof". In this way, the data input to the circuit will go through a series of complex calculations without revealing the specific content, and a proof will be generated, completing a zero-knowledge proof process. Come on, let me try to popularize some hard-core science:
1) Zoo corresponds to "circuit". A circuit is actually an aggregation of a series of logic gate constraints (addition, subtraction, multiplication, division, etc. formulas), which is equivalent to A concentrated expression of all animal abilities, it is also the basic element of computers. Therefore, the "data" passed into the circuit must be incorporated into various formulas and performed calculations.
In the layer2 network, the stored data is usually transaction hash value, account information, data balance, etc. These data can be converted into mathematical formulas for calculation, but if they cannot be directly formulated, other coding transformations are required to convert the raw data into computable formulas. This step is the basis for the circuit to perform processing and ensures that the data can be effectively processed and utilized.
In the zoo mode, various animals symbolize logic gates in the circuit. For example, wooden boxes represent numbers that are not publicly displayed, called "variables"; glass boxes represent publicly displayed numbers, which are "Open input"; and the stone symbolizes an unchangeable number, regarded as a "constant".
The zebra has the ability to compare whether two numbers are "equal". If the result is equal, the zebra will be happy; the crocodile means "less than". The crocodile will be happy only if the number on the right is less than the number on the left; the spider represents more complexity The multi-selection gate will return true if you input 0, and false if you input 1. In addition, you can also let beavers represent division, squirrels represent percentages, caterpillars represent addition, and so on. Different animals represent different formulas for addition, subtraction, multiplication and division. The happy or sad animals represent the structure of formula operations.
Many boxes of different types of animals are combined into a circuit. For example: to calculate a formula 2 x 3 = Y, x represents the wooden box, Y represents the stone, 2 wooden boxes and caterpillars, zebras, etc. Come to work and finally verify whether the formula holds. Note that there is no need to worry about why different animals have different abilities. This is the basic principle of working of circuit elements and the basic rules for computers to perform calculations.
A complex circuit is constructed from a variety of animals (logic gates) and boxes (rules).
3) Assume that the formula 2x 3 =Y just entered is established, which is equivalent to zebra caterpillars and other animals being happy, and then a "Proof" will be generated for the formula, and a character needs to be able to recognize this It only matters if the Proof is accurate. Therefore, in order to ensure the credibility of the proof, the zookeeper, who is the builder of the circuit, simulated a special animal called Zeek. Zeek can see whether other animals are happy and is equivalent to Verifier in the layer2 system.
The process of Zeek observing whether animals are happy is actually the verification process of the Prover system. If they are all happy, the verification is passed. Only then will the Proof be uploaded to the main network and finally confirmed. Of course, thousands of animals in the zoo produce a large number of proofs, and it is impossible for Zeek to look at them one by one. Therefore, Zeek can also observe whether the status of thousands of Zeek's own clones is happy. This process is called Recursive Proof.
4) The process of taking pictures is equivalent to the process of generating SNARK certificates or KZG commitments, and the printed negatives are equivalent to the STARK\SNARK certificate itself. Visitors to the zoo are equivalent to the Transaction transactions that enter one by one. Only the animals are happy The photo will be completed and the proof will be generated. Finally, the visitor will leave the zoo with the photo and leave a proof before it can be uploaded to the chain and finalized.
There are many animals in a zoo, and it is impossible for them all to be happy at the same time and work according to predetermined rules. There are many logic gates, and it is inevitable that there will be disconnections and other situations. In this way, there will be some congestion, lags and error reports, which will result in invalid state transitions, Under-Constrained, and will not pass the final verification.
The above is the detailed content of Using a zoo as a metaphor, hard-core science popularization of the working principle of zkSync circuit. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



The announcement, made on September 3, 2024, by Matter Labs’ co-founder and CEO Alex Gluchowski, marks a significant shift for the company

Recently, after the Starknet super airdrop came to an end, almost the entire world's attention fell on @zksync. As half of ZK-Rollup, zkSync still dominates all data indicators, and it is reasonable for the market to have high expectations for zkSync. However, zkSync did not express its airdrop plan, but mentioned ZKistheEndgame many times. Is ZK technology really the endgame for layer 2? Next, let me talk about my opinion: In the past year or two, the technical dispute between OP-Rollup and ZK-Rollup has attracted much attention. It is generally believed that the advantage of ZK-Rollup is that it does not require a 7-day challenge period. This is because ZK technology can quickly

Hybrid cryptocurrency exchange GRVT, ZKsync's first official Validium ZK Chain, will launch its Open Beta testnet on August 5.

What other potential airdrop projects are worthy of attention after zkSync? Attached is a tutorial on how to play the project! After the zkSync airdrop incident, the first-level project airdrop seems to have lost its meaning. This is a new era. The airdrop cost of secondary projects is small, the airdrop is fast, and the scalability is strong. Crypto KOL zucl1ck counts the airdrop data received by individuals. Data proves that it is second- and third-tier projects that bring the most revenue, and large sums of money are not invested in these projects. Today, the editor of this site will share with you a detailed introduction to what potential airdrop projects are worthy of attention after zkSync. Friends who need it should not miss it! Projects worthy of attention after zkSync BerachainBerachain is a project that is related to the Ethereum Virtual Machine (

Matter Labs, the company behind Ethereum Layer-2 protocol zkSync, has announced its plans to restructure the organization. Unfortunately, this involves a couple of staff reduction that impacted about 16% of the Matter Labs' team.

Many people were confused after seeing @zkSync’s new zoo science pictures and texts. They compared the zoo to a circuit, regarded animals with special skills as “logic gates”, and regarded the group photo of all the happy animals as “proof” Proof", in this way, the data input into the circuit will go through a series of complex calculations to generate a Proof without revealing the specific content, thus completing a zero-knowledge proof process. Come on, let me try to popularize some hard-core science: 1) The zoo corresponds to "circuit". A circuit is actually an aggregation of a series of logic gate constraints (addition, subtraction, multiplication, division, etc. formulas), which is equivalent to the ability of all animals. Concentrated performance, it is also the basic element that constitutes a computer. Therefore, the "data" passed into the circuit must be fit into various formulas

According to news on October 16, as competition in the domestic automobile industry becomes increasingly fierce, various car companies have begun to work hard on model naming in order to stand out in the market. After Great Wall Motor's "Dog Series", "Cat Series" and "Dragon Series", Chery Automobile has also joined the ranks and seems to be building its own "zoo". According to the editor's understanding, Chery Automobile Co., Ltd. has recently applied to register a series of trademarks related to beasts, including "North China Leopard", "Javan Tiger", "Bali Tiger", "Chery Golden Tiger" and "West African Lion". The international classification of these trademarks is means of transportation, and the current trademark status is awaiting substantive examination. Chery seems to have a certain preference for naming beasts, and considering Chery Automobile’s classic model Chery Tiggo, it may hint at Chery’s future plans.

Detailed explanation of ZKSync airdrop rules: How are ZK tokens distributed? Who is eligible? The much-anticipated ZKsync airdrop distribution plan has been finalized. The ZKsync Association will conduct a one-time airdrop of 3.6 billion ZK tokens to early ZKsync users and adopters next week, with 695,232 eligible wallets. The snapshot is on March 24, and community members can check airdrop eligibility on the Claim.zknation.io website and claim airdrops starting next week until January 3, 2025. This airdrop represents 17.5% of the total supply of ZK tokens. Users will be able to claim their tokens starting next week until January 3, 2025. Contributors can claim it starting from June 24th. Who is eligible for