bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 37쪽 중 25쪽
ts validity. This back and forth introduces a new level of complexity in the protocol, and can be harder to design safely. But it has the advantage of not placing any limitations on L1, due to a much smaller volume of actual on-chain execution.
## Improved Fraud Proofs on Mantle Network
{% hint style="warning" %}
For Mainnet Alpha, fraud proofs are currently not enabled and are currently **in development**. Refer to our Testnet or Github for the latest progress.
{% endhint %}
In the currently popular model for fraud proofs, the contract that settles disputes — the **on-chain verifier** — can only execute instructions in a lower-level virtual machine such as MIPS or WASM. This forces an Ethereum Virtual Machine (EVM) client to re-compile their fraud proof into the lower-level language to be interpretable to the on-chain verifier. This means that the content of a fraud proof is generated *outside the scope of the EVM*. 
The implication here is that because of the low-level transpiling, there is no way to guarantee that a fraud proof's contents are derived directly from a compliant EVM client. In other words, the on-chain verifier is blind to the producer of the fraud proof! This blind spot interferes with the trust-minimization that is imbued into the Ethereum client to begin with. It would be far better for a fraud proof to be evaluated using EVM instructions directly. 
This is precisely the sort of system that Mantle network implements. Mantle network establishes transaction validity using the interactive fraud proof mechanism, and by compiling and verifying fraud proofs with EVM-level instructions we register a number of benefits:
1. Allow all Ethereum clients to interact with a common proof system, permissionlessly.
2. Reduce trust assumptions across verifiers, clients, and compilers.
The particular fraud proof model that is employed by Mantle network (testnet) is akin to the one deployed by Specular Network. You can learn more about it [here](https://medium.com/@SpecularL2/towards-secure-trust-minimized-optimistic-rollups-18f32a767aed).
# Bridging
Enabling interactions and token transfers between chains
{% hint style="danger" %}
Mantle v2 Tectonic has been released, please move to the new [documentation](https://docs-v2.mantle.xyz/)!
{% endhint %}
### What is a "Bridge"?
App developers and users commonly need to move data and assets between Layer 1 (L1) and Layer 2 (L2). We call the process of moving data and assets between the two networks "bridging". 
Here is a good explanation of bridging from [Ethereum Documentation](https://ethereum.org/en/bridges/):
`"Bridges work just like the bridges we know in the physical world. Just as a physical bridge connects two physical locations, a blockchain bridge connects two blockchain ecosystems. Bridges facilitate communication between blockchains through the transfer of information and assets.`
`Let's consider an example:`
`You're from the USA and are planning a trip to Europe. You have USD, but you need EUR to spend. To exchange your USD for EUR you can use a currency exchange for a small fee."`
### **Why Do We Need a Bridge?** 
Mantle (L2) is a separate blockchain system from Ethereum (L1). Similar to exchanging USD for EUR, we need a way to move **$ETH** and other tokens from Ethereum to Mantle so the blockchain system will recognize and accept it in a verifiable and secure way. 
In order to move assets into or out of Mantle network you can use the Mantle Bridge. 
**For deeper explanations on bridging we encourage you to explore the following resources (external links):**
* [Blockchain Bridges](https://ethereum.org/en/bridges/) 
* [Ethereum Developer Docs - Bridges](https://ethereum.org/en/developers/docs/bridges/) 
# Architecture and Roadmap
Components and modules part of Mantle Network
{% hint style="danger" %}
Mantle v2 Tectonic has been released, please move to the new [documentation](https://docs-v2.mantle.xyz/)!
{% endhint %}
## Network Architecture
<figure><img src="https://3701411312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNHXgeqhgrznnRobzznxl%2Fuploads%2FFy6C3ovnOVcv0QvxrUsb%2Fupdated%20architecture(1).jpg?alt=media&token=2a8c7381-f513-4df8-a500-f24d90dd9734" alt=""><figcaption></figcaption></figure>
This diagram illustrates how different network modules and components interact with each other going through transaction execution and eventually published updated state data to Ethereum L1, and storing the rollup data on the Mantle Data Availability (DA) powered by EigenDA technology. Let's go over the process of transaction handling to better understand how each module works.
1. Users send signed transactions via an available RPC node.
2. The Sequencer receives transactions and pack them into blocks. The DTL (Data Transport Layer) service syncs this block data. Verifiers sync the L2 block data from the DTL.
3. The batch submitter fetches updated state roots and sends them to the Threshold Signature Scheme (TSS) module to be verified and signed. Verifiers can also fetch the state root data and confirm their validity.
4. Once TSS nodes establish the validity of the updated state roots and sign off on the rollup batches, the batch submitter publishes the state root data to the State Commitment Chain (SCC) contract on L1 Ethereum.
5. The rollup transaction data is stored on Mantle DA. Verifiers can fetch this data at any point and verify its validity. This action is performed when issuing fraud proof challenges.
6. Mantle DA nodes also post the validity certificates to L1 guaranteeing liveness and availability with each new batch.
7. In case the state root validity is challenged with a fraud proof, L2 data is posted to the contract on L1 to perform the execution and check state transition validity.
{% hint style="info" %}
For more details on the role played by each network component, check out the [Network Roles](/network/network/for-validators/network-roles) page.
{% endhint %}
## Roadmap
The following table tentatively summarizes our current approach to different network components and actions on L2 and L1 for our initial mainnet version, and other potential implementations that we're considering for future mainnet upgrades.
<figure><img src="https://3701411312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNHXgeqhgrznnRobzznxl%2Fuploads%2FgzjikNwNgXcIczY5LQID%2Fimage.png?alt=media&token=8a2d4f63-c650-4fd3-b35d-07168668ef1f" alt=""><figcaption></figcaption></figure>
## Failure Handling
### L2 Sequencer Failure
In the event of L2 Sequencing issues, common industry approaches to remain "secured by Ethereum" are:
* **Enqueue via L1\*\*:** Users can submit transactions to an L1 queue, but can't force them. The sequencer can selectively skip transactions, but cannot stop processing the queue entirely. In other words, if the sequencer censors or is down, it affects everyone.
* **Force via L1:** Users can force sequencer to include a trade or a withdrawal transaction by submitting a request through L1. If the sequencer censors or is down for X period, users can use the exit hatch to withdraw their funds.
* **Self Sequence:** In the event of sequencer failure, users can force transactions to be included on L2 by sending them to L1.
*\*\* denotes approach of the initial Mantle Network Mainnet version*
### **L2 Batch Submitter / Proposer Failure**
The Batch Submitter, or Proposer, is responsible for submitting the L2 state and necessary transaction data to L1. In the event it is offline, common industry approaches to remain "secured by Ethereum" are:
* **Propose blocks:** Anyone can become a Proposer after X period of inactivity from currently whitelisted Proposers.
* **Escape hatch:** Users have the ability to withdraw their funds on L1 by submitting a Merkle proof or ZK proof of funds.
* **No automated mechanism\*\*:** If whitelisted Proposers are offline, withdrawals cannot be processed. In such cases, a new Proposer has to be whitelisted by the L2 core contributor team, potentially involving a DAO governance process. The transition is controlled by the DevOps team with measures in place to minimize downtime.
*\*\* denotes approach of the initial Mantle Network Mainnet version*
# Security Model and Roles
{% hint style="danger" %}
Mantle v2 Tectonic has been released, please move to the new [documentation](https://docs-v2.mantle.xyz/)!
{% endhint %}
## Background
Mantle Network is a work in progress. During the Mainnet Alpha phase, the protocol operates with a high level of centralization and relies on a trusted core contributor team to ensure optimal performance and security. There are two key points to note:
* **Fraudproofs** are currently in development. We are working in collaboration with [Specular Network](https://medium.com/@SpecularL2/towards-secure-trust-minimized-optimistic-rollups-18f32a767aed) with the latest progress available on Testnet and GitHub.
* **Data availability** through Mantle DA (powered by Eigen DA technology) is currently a permissioned node network, with all nodes selected and approved by the core team. We plan to migrate to EigenDA after EigenDA mainnet launches.
The development roadmap for the protocol includes several stages aimed at enhancing the user experience and transitioning various protocol components to decentralized and trustless systems, and simplified architecture. The team intends to discuss the decentralization pathway with Mantle Governance, involving the community in decision-making processes.<br>
## Purpose
This article serves as a guide for semi-technical readers and users of Mantle Network to help them make informed decisions about the **security model, potential risks and mitigations** associated with using the product. The information provided here is presented in a succinct manner to aid understanding. For more comprehensive and technical details, interested parties are encouraged to refer to the project's [GitHub repository](https://github.com/mantlenetworkio) and [available audit reports](https://docs.mantle.xyz/network/additional-documents/audits).<br>
## Architecture
<figure><img src="https://3701411312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNHXgeqhgrznnRobzznxl%2Fuploads%2FiGjYh5jT36hfJfqFQ3pD%2FUML%20diagram.jpg?alt=media&token=cb35d017-d347-4582-8191-b6a6758256df" alt=""><figcaption><p>Mantle Network Architecture</p></figcaption></figure>
## System Components
### Permission Management
#### Lib Address Manager
* This component is used to manage permissions and addresses for important L1 smart contracts.
* The Lib Address Manager can **reset** the following addresses: Sequencer, Proposer, Mt-batcher, L1StandardBridge, L1Crossdomainmanager, SCC, CTC, Mantle DA contracts, and various TSS Stake related addresses.
* Lib Address Manager **can not reset** the following addresses: Mantle DA, Fraud Proof
\
Lib\_AddressManager: [`0x6968f3F16C3e64003F02E121cf0D5CCBf5625a42`](https://etherscan.io/address/0x6968f3F16C3e64003F02E121cf0D5CCBf5625a42#writeContract)\
Type: Smartcontract, non-upgradable\
Owner Role: Mantle Security Msig<br>
### Offchain Systems
Note: The term "Sequencer" often refers to the aggregated sequencer, proposer, mt-batcher components in our diagram. These are offchain systems administered by the core team. These services need to have their private key online (Hot Wallet) for the required system performance. The private key is protected by industry standard cloudHSM.<br>
#### Proposer
* The **proposer** submits new state roots to the SCC (L1).
* State roots are used for state validation, and determine the ability to withdraw from the L1 Bridge.
\
Proposer: [`0x6667961f5e9C98A76a48767522150889703Ed77D`](https://etherscan.io/address/0x6667961f5e9C98A76a48767522150889703Ed77D)\
Key manager: Mantle Engineering HSM\
\
In the event of a compromise of the Proposer component:
* Roles with write permissions for the SCC can deleteStateBatch (see SCC section below).
* The owner of the LibAddress Manager can reset the address of the proposer.
* Note that as withdrawals are configured to a 7 day challenge period, as long as those fixes can be completed within that time, the effect of the compromise can be minimized.
#### Sequencer, mt-batcher
* The **sequencer** submits a small portion of rollup transaction data to the CTC (L1) such as a count of transactions, batches, and elements for the purposes of enqueuing via L1. More details in the CTC section below.
* The **mt-batcher** submits all rollup transaction data to the DA solution.
* Rollup transaction data is relied upon for L2 State Validation by various components including the Fraud Proof component and Verifier Node component.
\
Sequencer: [`0x2F6AFE2E3feA041b892a6e240Fd1A0E5b51e8376`](https://etherscan.io/address/0x2F6AFE2E3feA041b892a6e240Fd1A0E5b51e8376)\
Key manager: Mantle Engineering HSM
Mt-Batcher: [`0x2f40D796917ffB642bD2e2bdD2C762A5e40fd749`](https://etherscan.io/address/0x2f40D796917ffB642bD2e2bdD2C762A5e40fd749)\
Key manager: Mantle Engineering HSM
\
In the event of a compromise of the Sequencer component:
* The owner of the CTC can correct the data.
* The owner of the LibAddress Manager can reset the address of the Sequencer.
#### DTL Service
* The **DTL Service** is a critical system which provides L1 data, L1 enqueued tx, and DA data to the various L2 systems (Replica Nodes, L2geth, verifier nodes). It can be considered a source of truth relay service.
* The current DTL does not relay messages accompanied by L1 signatures, which is an area of risk, especially as fraud proofs are still in development. This issue has been addressed in <https://community.optimism.io/docs/developers/bedrock/> which we are assessing for the next upgrade.
In the event of a compromise of the DTL Service component:
* The DTL Service is an offchain system which feeds data to other offchain systems. If the DTL Service is compromised, all data receiving systems such as Replica Nodes, Verifier Nodes, and L2geth can update their nodes to connect to a backup DTL Service.<br>
### Rollup Smart Contracts
#### (SCC) StateCommitmentChain
* The SCC stores the L2 state roots on L1. State roots are submitted using the `appendStateBatch` method, by the Proposer via the FraudProofRollup contract.
* The SCC manages the length of time before user withdrawals are permitted on L1, also known as the 'Challenge Period', via the `setFraudProofWindow` method.
* The state roots determine the ability for users to withdraw to L1, after waiting for the fraud proof window.
* The SCC `deleteStateBatch` method can be called in an emergency where L2 and SCC state are no longer in sync, such as a 64+ block L1 reorganization, or a compromise of the Proposer component.
\
**SCC:** [`0x89E9D387555AF0cDE22cb98833Bae40d640AD7fa`](https://etherscan.io/address/0x89E9D387555AF0cDE22cb98833Bae40d640AD7fa#writeContract)
* smart contract, non-upgradable, with the following write permissions:
* `appendStateBatch` - via 'FraudProof.Rollup' by the Proposer
* `deleteStateBatch` - via 'BVM\_FraudVerifier' by the Mantle Engineering Msig
* `rollBackL2Chain` - via 'FraudProof.Rollup' by the Proposer
* `setFraudProofWindow` - Mantle Security Msig
\
If the SCC is compromised:
* The LibAddressManager owner (Mantle Security Msig) can reset the SCC address.
* If the component is recovered within the setFraudProofWindow (currently 7 days), the risk of invalid L1 asset withdrawals is minimized.
#### (CTC) CanonicalTransactionChain
* The CTC stores a small portion of rollup transaction data, whereas Mantle DA stores all rollup transaction data.
* The CTC is required to facilitate L1-->L2 transactions. The CTC is the only way to enqueue transactions to L2. It can not be done through Mantle DA.
* The CTC manages L1 to L2 transactions through the `enqueue` method, including deposit requests. For example, the call path for an ERC20 deposit is L1StandardBridge.\_initiateERC20Deposit -> L1CrossDomainMessenger.sendMessage -> CanonicalTransactionChain.enqueue.
* The CTC needs to store some L2 transaction data such as a count of elements, batches, and transactions. These provide reference indexes for the purposes of enqueue transactions.
* Enqueued transactions via CTC are sent to the DTL Service after \~30 seconds, and the DTL Service waits for 64 L1 block confirmations before relaying to other L2 nodes.
\
**CTC:** [`0x291dc3819b863e19b0a9b9809F8025d2EB4aaE93`](https://etherscan.io/address/0x291dc3819b863e19b0a9b9809F8025d2EB4aaE93#writeContract)
* smart contract, non-upgradable, with the following [write](https://etherscan.io/address/0x291dc3819b863e19b0a9b9809f8025d2eb4aae93#writeContract) permissions:
* appendSequencerBatch() - via 'BVM\_Sequencer', namely Sequencer (Mantle Engineering HSM)
* enqueue() - anyone can call
* resetIndex() - owner of [Lib\_AddressManager](https://etherscan.io/address/0x6968f3F16C3e64003F02E121cf0D5CCBf5625a42#readContract), namely Mantle Security Msig
* setGasParams() - owner of [Lib\_AddressManager](https://etherscan.io/address/0x6968f3F16C3e64003F02E121cf0D5CCBf5625a42#readContract), namely Mantle Security Msig
\
If the CTC is compromised:
* The LibAddressManager owner (Mantle Security Msig) can reset the CTC address.
* The DTL Service can reject CTC data or pause itself.
### Fraud Proof
{% hint style="danger" %}
[Fraudproofs](https://docs.mantle.xyz/network/introduction/concepts/fraud-proofs) are currently in development. While placeholder smart contracts are deployed, there are no whitelisted challengers, subverifiers registries which handle one-step-proofs and outcomes are currently empty. Most write permission roles are effectively managed by the core team systems and msigs. Some OP code related challenge assertions are not yet available.
{% endhint %}
#### **FP.Rollup**
* The FP.Rollup component stores state batches to facilitate fraud proof challenges. In our current setup, this data is submitted regularly by the Proposer via the `createAssertionWithStateBatch` method in sync with state root submissions to the SCC.
* Note there are some overlaps with the `SCC.appendStateBatch` method which is also triggered by Proposer submissions: 1) both methods are related to the same event and so there is limited gas cost duplication, 2) the FP.Rollup only stores the final block's stateroot whereas the SCC stores all blocks' state roots, 3) FP.Rollup stores additional information to facilitate fraud proof challenges such as the L2 blockheight. One benefit of storing state information across within the SCC and FP.Rollup components is that the SCC can continue to operate without the FP component (if we decide to not use FP type state validation mechanisms in the future).
* The FP.Rollup `createAssertion` method facilitates future fraud proof challenges, and is an independent channel from the regular submissions by the Proposer via createAssertionWithStateBatch.
* The FP.Rollup components contain various permission and parameter control such as operator (challenger, defender) `whitelists` and `stake handling`. These functions can be considered placeholders for now as fraud proof challenges have not been enabled.
* The `rollbackL2Chain` method, although callable, is not intended to be used in the current Mainet Alpha version. Even if called, the full execution of this rollback on L2 requires manual processing by the core contributor team. One risk is deep reorganizations occurring on L1. To compensate for this, our L1 to L2 messaging effectively waits for 64 L1 block confirmations.
\
FP.Rollup
* Proxy: [`0xD1328C9167e0693B689b5aa5a024379d4e437858`](https://etherscan.io/address/0xD1328C9167e0693B689b5aa5a024379d4e437858)
* Implementation: [`0x242a33ca49c564cafc9c83c700b79f1074c42a0d`](https://etherscan.io/address/0x242a33ca49c564cafc9c83c700b79f1074c42a0d)
* Upgradable Admin: Mantle Security Msig
* Key 프로젝트로 돌아가기