bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 13쪽 중 11쪽
```
estimatedSizeScaled = max(minTransactionSize * 1e6, intercept + fastlzCoef*fastlzSize)
```
<pre><code><strong>1FeeScaled = baseFeeScalar * l1BaseFee * 16 + blobFeeScalar * l1BlobBaseFee
</strong></code></pre>
```
l1Cost = estimatedSizeScaled * l1FeeScaled / 1e12
```
# L1 Data Fee Calculation (Ecotone)
This page describes how to calculate the L1 data fee for a specific transaction on a Zircuit network post Ecotone upgrade.
#### Retrieve the parameters
To perform the calculation the following parameters are needed:
* L1 base fee
* L1 base fee scalar
* L1 blob base fee
* L1 blob base fee scalar
They are available by calling the Gas Price Oracle smart contract predeployed on every Zircuit network on this address: `0x420000000000000000000000000000000000000F`
To retrieve them we can use Foundry's cast. You will need the block number in which the transaction was included to retrieve the parameters from the right point in time. You will also need a valid RPC url. For example you'll find the RPC urls on this page:
{% content-ref url="/pages/fEv1Wrfl0hPzbT380Xlr" %}
[RPCs](/infra/rpcs)
{% endcontent-ref %}
L1 base fee:
```sh
cast call 0x420000000000000000000000000000000000000F "l1BaseFee()(uint256)" --rpc-url $RPC_URL --block $BLOCK_NUMBER
```
L1 base fee scalar:
```sh
cast call 0x420000000000000000000000000000000000000F "baseFeeScalar()(uint256)" --rpc-url $RPC_URL --block $BLOCK_NUMBER
```
L1 blob base fee:
```sh
cast call 0x420000000000000000000000000000000000000F "blobBaseFee()(uint256)" --rpc-url $RPC_URL --block $BLOCK_NUMBER
```
L1 blob base fee scalar:
```sh
cast call 0x420000000000000000000000000000000000000F "blobBaseFeeScalar()(uint256)" --rpc-url $RPC_URL --block $BLOCK_NUMBER
```
Get the raw RLP-encoded signed transaction:
```sh
cast tx $TX_HASH --rpc-url $RPC_URL --raw
```
Zero-bytes and non zero-bytes are accounted differently, so the next step is to count all the zero bytes and all the non-zero bytes in the tx. Here is a shell script that does it. Remember to remove the "0x" at the beginning when you provide it the raw tx.
```sh
#!/usr/bin/env bash
# Usage: ./count_zero_bytes_hex.sh <hex string>
# Example: ./count_zero_bytes_hex.sh 00A1FF0033
hex="$1"
# Ensure we got a parameter
if [ -z "$hex" ]; then
echo "Usage: $0 <hex string>"
exit 1
fi
# Normalize to uppercase to keep comparison simple
hex_upper=$(echo "$hex" | tr '[:lower:]' '[:upper:]')
# The hex string length must be an even number for whole bytes (2 hex chars = 1 byte)
len=${#hex_upper}
if (( len % 2 != 0 )); then
echo "Error: Hex string must have an even number of characters."
exit 1
fi
zero_bytes=0
other_bytes=0
# Process two hex characters at a time
for ((i=0; i<len; i+=2)); do
byte="${hex_upper:$i:2}" # Extract 2-hex-character chunk
if [ "$byte" == "00" ]; then
((zero_bytes++))
else
((other_bytes++))
fi
done
echo "Hex string: $hex"
echo "Zero bytes: $zero_bytes"
echo "Other bytes: $other_bytes"
```
In the [Gas Pricing & Transaction Fees](/info/architecture/gas-pricing-and-transaction-fees) it's specified the cost of zero bytes is 4 and the cost of non-zero bytes is 16. So your `calldatagas` will be zero-bytes\*4 + non-zero-bytes\*16.
Now that you have all the info you need, you can just apply the following formula:
```
(calldataGas/16)*(l1BaseFee*16*l1BaseFeeScalar + l1BlobBaseFee*l1BlobBaseFeeScalar)/1e6
```
That is equivalent to the following formula better fitted for precision under integer arithmetic:
```
calldataGas*(l1BaseFee*16*l1BaseFeeScalar + l1BlobBaseFee*l1BlobBaseFeeScalar)/16e6
```
# Supported Transaction Types
[EIP-155](https://eips.ethereum.org/EIPS/eip-155) introduced a simple replay attack protection mechanism for Ethereum transactions. It was implemented to prevent transactions on one Ethereum-based chain from being valid on another chain. Zircuit does support standard legacy transactions, which comply with EIP-155 (including chain ID).
At the moment, Zircuit does **not** support pre-EIP-155 transactions (without a chain ID). Attempting to submit such transactions will result in rejection.
Zircuit supports [EIP-2930](https://eips.ethereum.org/EIPS/eip-2930) transactions. EIP-2930 further extends this functionality by introducing "Access List" transactions, which allow for explicit inclusion of accounts and storage keys that a transaction will access. This addition helps in optimizing gas fees and improving the predictability of transaction costs.
[EIP-1559](https://eips.ethereum.org/EIPS/eip-1559) transactions are also supported on Zircuit. EIP-1559 introduces a new transaction pricing mechanism aimed at improving fee market efficiency. It includes a base fee, which is a minimum amount of gas that must be paid for a transaction to be included in a block, and adjusts dynamically based on network congestion. Along with the base fee, users can include a "priority fee" to incentivize the sequencer to prioritize their transactions
[EIP-7702](https://eips.ethereum.org/EIPS/eip-7702) transactions type are supported on Zircuit. EIP-7702 is part of Ethereum's Pectra upgrade and allows Externally Owned Accounts (EOAs) to temporarily have code associated with them. It enables account abstraction capabilities for EOAs, allowing features like batched transactions and sponsored gas fees.
# Research
## Intro
Zircuit started from the desire to explore new ideas, technologies, and approaches to securely scale Ethereum. Founded by a team of experienced researchers in the web3 space, Zircuit arose from the desire to take new ideas and build them into a novel solution to make the space more accessible and secure for everyone.
Zircuit’s research is wide-reaching but focuses on a two areas:
* **Security:** Zircuit is built with advanced security protocols and is always looking for ways to bring additional security to web3 users on and off of our network. See the [Sequencer Level Security page ](/info/architecture/sls-deep-dive)for more on our first innovation.
* **Performance:** To truly scale the Ethereum ecosystem, the zero-knowledge technology we use must be as cheap and fast as possible to maximize chain interoperability and minimize user costs.
Zircuit researchers are also interested in other related to rollups, blockchain adoption, and web3 in general. We’re interested in providing the best user experience, exploring and developing web3 standards, proper software engineering, and education.
## Highlights & Recognition
Zircuit researchers have been fortunate to receive recognition from their peers through grants and paper publications. In this section, we highlight some concrete research projects that the team members have contributed to.
* **Sequencer Level Security.** Zircuit pioneered the novel concept of [Sequencer Level Security (SLS)](/info/architecture/sls-deep-dive) for rollups. An SLS-enabled sequencer considers the effect that transactions have on-chain, and if it is undesirable, it temporarily prevents transactions from being executed. This provides the smart contract operators and users with an opportunity to take mitigation steps before suffering harm.
* **Correctness of Halo2 Circuits.** Zircuit researchers leveraged lightweight formal methods to catch large classes of bugs and errors that can present themselves during development with the Halo2 library. Such methods can help detect unused gates, unconstrained cells, unused columns, and under-constrained circuits, among other potential vulnerabilities. This work presents a pioneering approach to PLONKish arithmetization and Halo2 circuit analysis, combining abstract interpretation, bounded-model checking, and more. Zcash awarded a grant for Improvements to this work.
* **Rollup Security.** This project explored security issues that are closely related to rollups. Researchers explored unique features of these systems, like fraud proof validation, escape hatches, and approaches to data availability. As rollups and these features mature, the time to review and understand these features -- both at a high level and at the code level -- is now. This work is influencing planned features for Zircuit and was funded by the Ethereum Foundation.
* **Improved Mathematical Primitives.** Our research has looked at optimizing Multi-Scalar Multiplication (MSM) operations used within Halo2 (and other proof systems). This work looked at optimal window sizing, parallelism techniques (including for CPU, GPU, FPGA, and ASIC), pre-computation methods, elliptic curve point representations, and more. This work is being incorporated into Zircuit and will be shared in the future.
For more details, see our [selected publications](/info/research/publications-and-grants) as well as our [talks and presentations](/info/research/talks-and-panels).\\
# Publications & Grants
On this page we list blockchain-related academic papers that the Zircuit researchers have authored and grants that teammembers have been awarded.
## Selected Publications
1. **Attacking Poseidon via Graeffe-Based Root-Finding over NTT-Friendly Fields**
* Antonio Sanso, Giuseppe Vitto
* IACR Cryptology ePrint Archive, 2025
* [ePrint 2025/937](https://eprint.iacr.org/2025/937)
2. **A Practical Rollup Escape Hatch Design**
* Francisco G. Figueira, Martin Derka, Ching Lun Chiu, Jan Gorzny
* IEEE International Conference on Blockchain and Cryptocurrency (ICBC), Pisa, Italy, June 2-6, 2025
* DOI: *coming soon*
* Preprint: [arXiv:2503.23986](https://arxiv.org/abs/2503.23986)
3. **Instrumenting transaction trace properties in smart contracts:**\
**Extending the EVM for real-time security**
* Zhiyang Chen, Jan Gorzny, Martin Derka
* International Workshop on Blockchain Oriented Software Engineering (IWBOSE), co-located with the IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER), Montreal, Quebec, Canada, March 4-7, 2025
* DOI: *coming soon*
* Preprint: [arXiv:2408.14621](https://arxiv.org/abs/2408.14621)
4. **A Methodology for Replicating Historical Exploits on EVM-Compatible Blockchains**
* Zhiyang Chen, Phillip Kemper, Yi Liu, Jan Gorzny, Diego Siqueira, Yuekang Li, Donato Pellegrino and Martin Derka.
* International Workshop on Emerging Trends in Software Engineering for Blockchain (WETSEB) co-located with the IEEE/ACM International Conference on Software Engineering (ICSE), Ottawa, Ontario, Canada, April 27-May 3, 2025
* DOI: *coming soon*
5. **Temporarily Restricting Solidity Smart Contract Interactions**
* Valerian Callens, Zeeshan Meghji, Jan Gorzny
* IEEE International Conference on Decentralized Applications and\
Infrastructures (DAPPS), Shanghai, China, July 15-18, 2024
* [DOI: 10.1109/DAPPS61106.2024.00008](https://doi.org/10.1109/DAPPS61106.2024.00008)
* Preprint: [arXiv:2405.09084](https://arxiv.org/abs/2405.09084)
6. **Requirements Engineering Challenges for Blockchain Rollups**
* Jan Gorzny, Martin Derka
* International Workshop on Requirements Engineering and Web3 systems (RE4WEB3), co-located with the IEEE International Requirements Engineering Conference (RE), Reykjavik, Iceland, June 24-25, 2024
* [DOI: 10.1109/REW61692.2024.00052](https://doi.org/10.1109/REW61692.2024.00052)
7. **A Rollup Comparison Framework**
* Jan Gorzny, Martin Derka
* ChainScience 2024, Zurich, Switzerland, April 5-6, 2024
* [arXiv:2404.16150](https://arxiv.org/abs/2404.16150)
8. **SoK: A Review of Cross-Chain Bridge Hacks in 2023**
* Nikita Belenkov, Valerian Callens, Alexandr Murashkin, Kacper Bak, Jan Gorzny, Martin Derka, Sung-Shine Lee
* Preprint: [arXiv:2501.03423](https://arxiv.org/abs/2501.03423)
9. **SoK: Compression in Rollups**
* Roshan Palakkal, Jan Gorzny, Martin Derka
* IEEE International Conference on Blockchain and Cryptocurrency (ICBC), Dublin, Ireland, May 27-31, 2024
* [DOI: 10.1109/ICBC59979.2024.10634469](https://doi.org/10.1109/ICBC59979.2024.10634469)
10. **Attacks on Rollups**
* Adrian Koegl, Zeeshan Meghji, Donato Pellegrino, Kacper Bak, Jan Gorzny, Martin Derka
* International Workshop on Distributed Infrastructure for the Common Good (DICG), Bologna, Italy, December 12, 2023
* [DOI: 10.1145/3631310.3633493](https://dl.acm.org/doi/10.1145/3631310.3633493)
11. **Ideal Properties of Rollup Escape Hatches**
* Jan Gorzny, Po-An Lin, Martin Derka
* International Workshop on Distributed Infrastructure for the Common Good (DICG), Quebec, QC, Canada, November 7, 2022
* [DOI: 10.1145/3565383.3566107](https://doi.org/10.1145/3565383.3566107)
12. **Automated Analysis of Halo2 Circuits**
* Fatemeh Heidari Soureshjani, Mathias Hall-Andersen, MohammadMahdi Jahanara, Jeffrey Kam, Jan Gorzny, Mohsen Ahmadvand
* International Workshop on Satisfiability Modulo Theories (SMT), co-located with the International Conference on Automated Deduction (CADE), Rome, Italy, July 5-6, 2023
* [CEUR-WS Vol-3429](https://ceur-ws.org/Vol-3429/paper3.pdf)
* Preprint: [ePrint 2023/1051](https://eprint.iacr.org/2023/1051)
13. **SoK: Not Quite Water Under the Bridge: Review of Cross-Chain Bridge Hacks**
* Sung-Shine Lee, Alexandr Murashkin, Martin Derka, Jan Gorzny
* IEEE International Conference on Blockchain and Cryptocurrency (ICBC), Dubai, United Arab Emirates, May 1-5, 2023
* [DOI: 10.1109/ICBC56567.2023.10174993](https://doi.org/10.1109/ICBC56567.2023.10174993)
* Preprint: [arXiv:2210.16209](https://arxiv.org/abs/2210.16209)
14. **Constant-Time Updates Using Token Mechanics**
* Sebastian Banescu, Martin Derka, Jan Gorzny, Sung-Shine Lee, Alex Murashkin
* IEEE International Conference on Blockchain (BLOCKCHAIN), Rhodes, Greece, November 2-6, 2020
* [DOI: 10.1109/Blockchain50366.2020.00044](https://doi.org/10.1109/Blockchain50366.2020.00044)
## Grants
Zircuit researchers have been awarded four grants: three from the Ethereum Foundation and one from the ZCash Foundation.
* **G1**: Improved Lightweight Formal Verification of Halo2 Proof Systems. ZCash Foundation - ZCash Minor Grants Program, 2023.
* **G2**: Evaluating Rollup Compression. Ethereum Foundation - Ethereum Ecosystem Support Program, 2023. Grant No. FY23-0922.
* **G3**: Rollup Security Framework. Ethereum Foundation - Ethereum Ecosystem Support Program, 2023. Grant No. FY23-0898.
* **G4**: Back-End API Standard for L2 Block Explorers. Ethereum Foundation - Ethereum Ecosystem Support Program, 2023. Grant No. FY23-0882.
# Talks & Panels
Zircuit researchers have given over fifty talks on rollups, bridges, and security. This page lists them including links to recordings when they are available.
1. **Optimizing ZK-Rollups: Unlocking Cost-Effective Proving Infrastructure**
* [EthCC\[8\]](https://youtu.be/ClrgV6WLiis?feature=shared), *Cannes, France,* 2025.
2. **Designing for Change: The Modular Architecture of Zircuit Prover**
* [EthCC\[8\]](https://www.youtube.com/live/boG_5zYWWW0?feature=shared), *Cannes, France,* 2025.
3. **Challenges of Replicating Historical Exploits**
* [EthCC\[8\]](https://www.youtube.com/live/uicp15MoF1I?feature=shared), *Cannes, France,* 2025.
4. **Smart Contract Families in Solidity**
* [EthCC\[8\]](https://www.youtube.com/live/8i0jmvkWqQw?feature=shared), *Cannes, France,* 2025.
5. **EIP-7702: Programmable Accounts and the Future of UX on Ethereum and Rollups**
* [EthCC\[8\]](https://www.youtube.com/live/lBEpmGy-ojk?feature=shared), *Cannes, France,* 2025.
6. **An Introduction to EIP-7702**
* [ETHDenver](https://www.youtube.com/watch?feature=shared\&v=WG_0EiHtKlc), *Denver, Colorado, USA,* 2025.
7. **Challenges of Bringing a zkTrie to the OP Stack**
* [ETHDenver](https://www.youtube.com/watch?feature=shared\&v=HydzerzxNHA), *Denver, Colorado, USA,* 2025.
8. **Rollups Unfiltered: What We Wish We Knew While Building Zircuit**
* [ETHDenver](https://www.youtube.com/watch?feature=shared\&v=oGVHPWnYwtM), *Denver, Colorado, USA*, 2025.
9. **Using AI to Secure Dapps and Users**
* [L2con at DevCon 7](https://www.youtube.com/watch?v=8wsCwqdDTec), *Bangkok, Thailand, 2024.*
* [ETHGlobal Pragma](https://www.youtube.com/watch?v=lRAb0_T6Ml8\&list=PLXzKMXK2aHh4LcwDpGf_itZrAu7XRNb07\&index=4\&t=58s), *San Francisco, CA, USA, 2024.*
10. **Panel: Will All Optimistic Rollups become zkRollups?**
* ZK Hub at DevCon 7, *Bangkok, Thailand, 2024.*
11. **Panel: Modularity - Along with Avail, Swell**
* AltLayer Rollup Day at DevCon 7, *Bangkok, Thailand, 2024.*
12. **Enhancing L2 Security with Sequencer-Level Protection: Insights from the Zircuit Network**
* DeFi Security Summit, *Bangkok, Thailand, 2024.*
13. **Panel: Integrating L2 Innovations: Cross-Chain Collaborations and Hybrid Models**
* [L2con at DevCon 7](https://www.youtube.com/watch?v=oY425x0e2M8), *Bangkok, Thailand, 2024.*
14. **Workshop: Getting Started with Zircuit: Building a Secure & Scalable DApp on Layer 2**
* ZK Hub at DevCon 7, *Bangkok, Thailand, 2024.*
15. **Accelerating Zero-Knowledge Proofs Computations with GPUs**
* ZKAccelerate at DevCon 7, *Bangkok, Thailand, 2024.*
16. **Polynomial Commitment Schemes for Zero-Knowledge Proof Systems**
* DevCon 7, *Bangkok, Thailand, 2024.*
17. **Robust, Distributed, and Prover-Agnostic Proof Orchestration**
* Invisible Garden - Antalpha Hacker House, *Bangkok, Thailand, 2024.*
18. **Designing for Change: The Modular Architecture of Zircuit Prover**
* [Aggregation Summit at DevCon 7,](https://www.youtube.com/watch?v=9jWyxNElCxc) *Bangkok, Thailand, 2024.*
19. **Abstract Interpretation for PLONKish Circuits**
* 34th International Conference on Collaborative Advances in Software and COmputiNg (CASCON), *Toronto, ON, Canada, 2024.*
20. **Smart Contract Families in Solidity**
* 34th International Conference on Collaborative Advances in Software and COmputiNg (CASCON), *Toronto, ON, Canada, 2024.*
21. **State of the Art EVM: Techniques and Benchmarks Building L2s**
* Google Zero Knowledge (ZK) Summit, *Sunnyvale, CA, USA, 2024.*
22. **Panel: Interoperability and Cross-Chain Solutions: Enhancing Web3 Ecosystem in APAC**
* Aggregation Cave at EDCON 2024, *Tokyo, Japan, 2024.*
23. **Introduction to Layer Three Networks**
* Aggregation Cave at EDCON 2024, *Tokyo, Japan, 2024.*
24. **Panel: ZK Proofs: Pioneering Privacy, Efficiency and Transformative Applications**
* Proof of Talk, *Paris, France, 2024.*
* Panelists: Kurt Hemecker (CEO, MINA), Diego Fernandez (Innovation & Digital Department, QuarkID), Anthony Day (Head of Strategy & Marketing - Midnight, IOHK), Martin Derka (Co-Founder, Zircuit).
25. **Panel: ZK Proof Generation Infrastructure: Overhyped or Underutilized?**
* [ETH Prague](https://www.youtube.com/watch?v=fNaVJhmBiNo), *Prague, Czech Republic, 2024.*
* Panelists: Martin Derka (Co-Founder, Zircuit), Tomas Eminger (Head of Staking Infrastructure, RockawayX), zpedro (Aztek Network), Tibor Tribus (Co-Founder, Maya-ZK).
26. **Panel: L2 Panel @ ETH Taipei**
* [ETH Taipei](https://www.youtube.com/watch?v=9RlyWo2fDPI), *Taipei, Taiwan, 2024.*
* *Panelists:* Jordi Baylina (Co-founder, Polygon-Hermez*),* Vitalik Buterin (Ethereum Foundation), Martin Derka (Co-Founder, Zircuit), Karl Floersch (CEO, OP Labs), Queenie Wu.
27. **Sequencer Level Security**
* [ETH Prague](https://www.youtube.com/watch?v=xpwhTC2G1WI), *Prague, Czech Republic, 2024.*
28. **SoK: Compression in Rollups**
* IEEE International Conference on Blockchain and Cryptocurrency (ICBC), *Dublin, Ireland, 2024.*
29. **Panel: ZK Season in 2024 : Hype VS. Reality**
* L3 Summit at Token 2049, *Dubai, UAE, 2024.*
30. **Panel: Unlocking Scalability: Founders' Perspectives on ZK**
* Google Web3 Roadshow Dubai, *Dubai, UAE, 2024.*
31. **Panel: EVM Equivalence in Rollups**
* Ethereum Zurich, *Zurich, Switzerland, 2024.*
32. **A Rollup Comparison Framework**
* ChainScience 2024, *Zurich, Switzerland, 2024.*
33. **Sequencer Level Security**
* [Ethereum Zurich](https://youtu.be/IhmtmXuAFO8?si=b6pAZiglw9rAgqO3), *Zurich, Switzerland, 2024.*
* ETH Denver, *Denver, CO, USA, 2024.*
34. **Zircuit: A Security-Focused ZK Rollup Built on the OP Stack**
* ETH De프로젝트로 돌아가기