Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/en/chain/core-module.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Functional Modules

##

DappLink, as a modular blockchain middleware, is dedicated to simplifying the deployment and operation of Layer 2 and Layer 3 networks, while promoting the advancement of chain abstraction technology. Through innovations like Rollup abstraction, cross-chain abstraction, L2 multi-staking protocols, proof system abstraction, fast verification network abstraction, and modular Layer 3 solutions, DappLink provides developers with efficient and flexible foundational components.

- Rollup Abstraction: DappLink supports both transaction data Rollups and transaction proof Rollups, and is compatible with multiple Data Availability (DA) solutions including EIP-4844, EigenDA, Celestia, NearDA, and AnyTrust, allowing developers to choose the optimal solution based on their needs. Furthermore, its Rollup proof system supports both fraud proofs (for Optimistic Rollups) and validity proofs (for ZK Rollups), ensuring transaction security and verifiability.

- Cross-chain Abstraction: DappLink enables a decentralized cross-chain bridge, supporting asset and message transfers between any chains. It utilizes a decentralized relayer network that leverages MPC verification and ZK transaction proofs to ensure cross-chain transactions are secure, censorship-resistant, and efficient. Additionally, a liquidity pool (FundingPool) manages cross-chain capital flows, allowing LPs to participate in staking and rewards distribution.

- L2 Multi-staking Protocol: DappLink offers a BTC- and ETH-equivalent secure staking model, enabling users to restake via EigenLayer and earn multiple yields. The CCIP module synchronizes staking information between Layer 1 and Layer 2, ensuring transparency and enforcement of reward and slashing mechanisms.

- Fast Verification Network: DappLink builds a fast-finality verification network using Babylon and Symbiotic staking mechanisms, reducing the waiting time for fraud proofs, accelerating Layer 2 asset withdrawals, and significantly enhancing the user experience for L2 dApps.

- Modular Layer3 Solution: DappLink is designed with a composable Layer 3 framework, supporting Web3 application chains such as social, gaming, and custodial services, enabling upper-layer applications to rapidly integrate into the Web3 ecosystem.
42 changes: 42 additions & 0 deletions docs/en/chain/cross-chain-abstraction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Cross-chain Abstraction

##

![img.png](images/crosschain.png)

###

This architecture describes a Decentralized Cross-Chain Bridge solution, which relies on the core components of FundingPool (liquidity funding pool) and a decentralized Relayer network to enable secure and efficient transfer of assets and messages between different blockchains. Below is a detailed breakdown of the solution:

## Source Chain

FundingPool:
- Responsible for locking user assets on the source chain to ensure funds are available.
- Allows liquidity providers (LP) to deposit funds to support liquidity needs for cross-chain transactions.
- Sends assets and messages to the decentralized Relayer network.

Users:
- Perform cross-chain transfers on the source chain and deposit assets into the FundingPool.
- Can receive the corresponding assets on the target chain.

Liquidity Providers:
Deposit assets into the FundingPool to support cross-chain transfer needs.

## Decentralized Relayer Network

Relayer nodes (relayer-node-1, 2, 3):
- Listen for cross-chain transaction events from the FundingPool.
- Responsible for relaying assets and messages to the FundingPool on the target chain.
- Maintain a decentralized relay network to enhance transaction reliability and resistance to censorship.

## Target Chain

FundingPool (Liquidity Pool):
- Receives assets and messages transmitted by the Relayer network.
- Releases the corresponding assets to the target users.
- Allows liquidity providers (LPs) to deposit funds to support cross-chain transaction liquidity.

Users: Receive cross-chain funds on the target chain.
Liquidity Providers: Deposit funds on the target chain to support cross-chain transaction needs.

This solution combines FundingPool + decentralized Relayer network to achieve decentralized, efficient, and liquidity-rich cross-chain transactions. Cross-chain fund management is conducted through the liquidity pool, and multiple Relayer nodes are used to transmit cross-chain transaction information, ensuring transaction security, censorship resistance, and efficiency. This is suitable for multi-chain ecosystems and Web3 application scenarios.
26 changes: 26 additions & 0 deletions docs/en/chain/fast-finality.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Fast verification network abstraction

##

![img.png](images/fastfinality.png)

###
The final fast verification network is designed to achieve rapid finality of blocks on the Layer 2 network and quick withdrawals on Layer 1, while also providing security assurance protocols.

While ensuring security, the following two functions are achieved:
- Rapid finalization of Layer 2 blocks
- Reduced fraud proof time and quick confirmation of Layer 1 withdrawals

Dual-protocol staking security model: The security of the final fast verification network is ensured by the Babylon and Symbiotic protocols.

In the fast verification network, there are two types of FP networks:
- FP network based on Babylon staking
- FP network based on Symbiotic staking

On Babylon, BTC stakers will stake BTC to Babylon and delegate their staking weight to the FP (Fast Verification Network Node) network. The FP network nodes will commit signatures for the stateroot on Layer 2. Once a certain number of node signatures are achieved, the Leader node of the FP network will aggregate the signatures and submit them to the Babylon network. These signatures are validated on the Babylon network and then await synchronization with the Relayer network.

On Symbiotic, stakers will stake the project tokens to SymbioticFi and delegate their staking weight to the corresponding FP (Fast Verification Network Node) network. The FP network nodes will commit signatures for the stateroot on Layer 2. Once a certain number of node signatures are achieved, the signed message will be pushed to the Relayer network.

After the Relayer nodes validate the commitment signatures submitted by both parties, and after meeting the required number of Relayer validations:
- The Layer 2 block can be finalized, achieving rapid finality for the Manta network's Layer 2 block.
- The Relayer Manager will submit the commitment signatures, staking information, and stateroot to Ethereum. After Layer 1 validation, the fraud proof time will be proportionally reduced based on the FP staking amount, completing the rapid withdrawal from the Layer 2 network.
Binary file added docs/en/chain/images/crosschain.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/en/chain/images/dapplinklayer3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/en/chain/images/dapplinkrollup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/en/chain/images/dapplinkrollup1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/en/chain/images/datada.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/en/chain/images/fastfinality.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/en/chain/images/staking.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions docs/en/chain/layer3-app-chain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Modular and composable Layer3
##

![img.png](images/dapplinklayer3.png)

###

In the current Web3 ecosystem, many decentralized applications are developing rapidly, such as social products, gaming products, hosting products, and trading products. Based on this development trend, Layer3 protocols that can be launched include: social + gaming Layer3 app chain protocol, hosting Layer3 app chain protocol, and trading Layer3 app chain protocol. From a market perspective, the social + gaming user base is likely to be larger and have the widest audience. Therefore, the best practice is to first launch the social + gaming Layer3 app chain protocol, followed by the Layer3 hosting and Layer3 trading app chains. For Savourlabs, we are first launching the social + gaming Layer3 app chain, then the Layer3 hosting app chain, and finally the Layer3 trading app chain. Savourlabs' vision is to build a universal Layer3 protocol that can run on any Layer 2 chain, such as Ethereum's Layer3, Bitcoin's Layer 2, etc.
16 changes: 16 additions & 0 deletions docs/en/chain/multi-staking-protocol.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Multi Staking Protocol

##

![img.png](images/staking.png)

###

This solution combines EigenLayer, DappLink L1/L2, and CCIP to achieve ETH staking, cross-chain Restaking, operator incentives, and penalty mechanisms, with the following advantages:

- ETH stakers can earn EigenLayer Restaking rewards, improving capital efficiency.
- A decentralized operator mechanism allows L2 operators to register and participate in on-chain operations, earning incentives.
- Cross-chain CCIP transmits L1-L2 staking information to ensure synchronized execution of incentives and penalties.
- Compatible with L2 ecosystems, applicable to Rollup staking, validator economic models, and cross-chain validation mechanisms.

This architecture is suitable for Web3 validator networks, Restaking economic systems, and cross-chain Rollup solutions, effectively enhancing the security, decentralization, and fairness of the economic incentive system in Layer 2.
22 changes: 21 additions & 1 deletion docs/en/chain/overview.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
# 链抽象
# System Architecture

##

DappLink modular blockchain middleware technical solution is dedicated to simplifying the deployment and operation of Layer2 and Layer3 networks, providing developers with out-of-the-box foundational components, and promoting the development of chain abstraction technology; DappLink has already implemented technical solutions such as Rollup abstraction, cross-chain abstraction, L2 multi-staking protocol, proof system abstraction, fast verification network abstraction, and modular composable Layer3.

- Rollup Abstraction: Supports both transaction data and transaction proof Rollups. Any Layer2 and Layer3 can be integrated quickly; supports multi-DA Rollups such as AnyTrust, Celestia, EigenDA, EIP4844, and NearDA. Developers can choose the most suitable data availability solution based on different scenarios.

- Cross-chain Abstraction: Enables asset and message transfers between any chains; uses a decentralized Relayer network composed of MPC (multi-signature node) validators for verification, and adopts ZK-Proof for transaction validation.

- L2 Multi-staking Protocol: A secure staking model equivalent to BTC and ETH, allowing stakers to earn multiple layers of rewards.

- Proof System Abstraction: DappLink is exploring the implementation of both fraud proofs and validity proofs

- Fraud Proof: Mainly used in OP Rollups. It assumes the sequencer is honest, but optimistically acknowledges the risk of malicious behavior. Fraud proofs are designed to prevent sequencers and related components from acting maliciously.

- Validity Proof: Mainly used in ZK (zero-knowledge proof) Rollups. Each transaction is proven via a ZK proof generated off-chain and submitted on-chain for verification.

- Currently, DappLink is building fraud proof abstractions based on OP and Arbitrum, and validity proof abstractions based on Scroll, ZkSync, Polygon, and Linea.

- Fast Verification Network Abstraction: A fast-finality verification network for Rollup state, reducing the waiting time for fraud proofs, enabling fast Layer1 asset exits; Layer2 blocks achieve quick finality, greatly improving the user experience of Dapps running on Layer2.

- Modular and Composable Layer3: Designs chain implementation models derived from upper-layer business requirements, enabling large-scale Web3 adoption. Currently supports Layer3 business chain modules in social, gaming, and custodial services.
103 changes: 103 additions & 0 deletions docs/en/chain/rollup-and-proof-system-abstraction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
# Rollup and Proof System Abstraction

## 1.Rollup of Transaction Data

![img.png](images/datada.png)

The solution above constructs a Rollup Node network that handles Layer2 or Layer3 transaction data and submits it to different Data Availability (DA) layers. Data producers and consumers interact with the Rollup Node through an API proxy layer to ensure the integrity and availability of Rollup transaction data.

The Data Availability (DA) layer, this solution supports multiple data availability schemes, including:
- EIP-4844 (Ethereum native DA scheme, using Blob transactions to store Rollup data)
- EigenDA (DA scheme within the EigenLayer ecosystem)
- Celestia (Modular DA solution in the Cosmos ecosystem)
- NearDA (Data availability layer from Near Inc.)
- AnyTrust (Arbi DAC Committee data availability layer project)
Rollup data can be submitted to these DA schemes, with some DA projects' data commitments still being submitted to Ethereum to ensure security and verifiability.

Rollup Node Network
- Composed of multiple Rollup nodes (e.g., rollup-node-1, rollup-node-2, etc.).
- These nodes receive data through the API proxy layer and process Rollup transactions.
- The network is responsible for aggregating and ordering Rollup data, and submitting it to the DA layer.

API Proxy Layer: This layer serves as the entry point for the Rollup network, connecting data producers and data consumers.

Data Producers (Submit Data):
- Layer2 Sequencer
- Layer3 Sequencer
- Other applications (e.g., decentralized social platforms, DeFi exchanges)

Data Consumers (Fetch Data):
- Verifier (Used for Rollup state validation)
- RPC Nodes (Provide blockchain data query services)
- Other Third-Party Applications (Possibly including block explorers, analytics tools, etc.)

Data Flow
- Data Submission: Layer2 / Layer3 Sequencers and other applications submit transaction data through the API proxy layer
- Rollup Processing: The Rollup Node network receives data, packages Rollup transactions, and submits them to DA schemes (EIP-4844, EigenDA, Celestia)
- Data Consumption: Verifiers, RPC nodes, and other third-party applications can fetch Rollup transaction data from the API proxy layer.


Features and Advantages
- Supports multiple DA schemes, compatible with Ethereum's EIP-4844 and third-party DA solutions (EigenDA, Celestia).
- Decentralized Rollup network, with multiple Rollup nodes collaborating to process transactions, enhancing network reliability.
- Flexible API layer, allowing different types of applications to submit and consume data, improving Rollup data accessibility and ecosystem compatibility.

This technical solution is designed around the storage, submission, and consumption of Rollup data, integrating EIP-4844, EigenDA, Celestia, NearDA, and AnyTrust as Data Availability layers to build a scalable Rollup Node network. Through the API proxy layer, it interacts with external applications. This architecture enhances the security, availability, and scalability of Rollup transactions and is suitable for Layer2, Layer3, and other Web3 application scenarios.

## 2.Transaction Proof Rollup

- Fraud Proof: Primarily used in optimistic rollups, where the assumption is that the sequencer is not malicious, but we optimistically acknowledge that the sequencer may have a risk of malicious behavior. Fraud proofs are used to prevent the sequencer and its related components from acting maliciously.
- Validity Proof: Primarily used in zk (Zero-Knowledge Proof) rollups, where a zk proof is generated for each transaction. The zk proof is generated off-chain and then submitted to the chain for verification.

### 2.1.Fraud Proof Module Abstraction

![img.png](images/dapplinkrollup.png)

This architecture diagram describes a Fraud Proof mechanism, combined with DappLinkLayer and Ethereum, to ensure the correctness of transaction execution and allow challengers to verify and challenge inconsistent transaction execution results. Below is a detailed breakdown of the solution:

Ethereum (Mainnet):
- Runs the FraudProof Contracts Set, which is used to receive and validate challenge requests.
- DappLinkLayer handles the reward/slashing mechanism.
- Interacts with DappLinkLayer (the availability layer).

Sequencer:
- Operated by the project team, responsible for processing and ordering transactions.
- Submits transaction data to the data availability layer for storage.

Verifier:
- Monitors transaction data; if errors are found, challenges can be submitted.
- Successful challenges can lead to transaction rollbacks.

DappLink-VM (Execution Environment):
- Responsible for executing transactions.
- If inconsistencies are found in the op-code results during transaction execution, it notifies DappLink-Challenger to initiate a challenge.

DappLink-Challenger (Challenger):
- Responsible for receiving anomalous transactions discovered by DappLink-VM and submitting challenge verification requests.
- Interacts with the fraud proof contract.

This solution builds an expandable fraud proof mechanism, suitable for Layer2 / Layer3 Rollup ecosystems. Through staking, challenge validation, transaction rollbacks, and reward/slashing mechanisms, it ensures decentralized transaction security, ensuring the trustworthiness of transaction data submitted by the sequencer. At the same time, it allows challengers to identify errors and initiate challenges, making the entire system more secure, transparent, and trustworthy.

### 2.2.Validity Proof Module Abstraction

![img.png](images/dapplinkrollup1.png)

This solution is centered around the Zero-Knowledge Proofs (ZK Proofs) mechanism, ensuring that the transaction data submitted by the Sequencer is correct and generates verifiable proofs through the ZK Proof Component, which are then submitted to the Verifier Contract Set on Ethereum for validation. The core components include:

Ethereum (Mainnet):
- Runs the Verifier Contract Set (ZK Proof Verification Smart Contracts), used to receive and validate ZK proofs.
- DappLinkLayer handles the reward/slashing mechanism.

Sequencer:
- Operated by the project team, responsible for processing and ordering transactions.
- Generates transaction data and submits it to the ZK proof component for execution and verification.

ZK Proof Component Network:
- zk-prover (ZK Proof Generator): Based on transaction execution results, generates ZK proofs to ensure the transaction data is correct and immutable.
- zk-executor (ZK Executor): Executes the transactions and provides execution results to the zk-prover.

Rollup-Node Network:
- Responsible for collecting ZK proofs and submitting them to the Verifier Contract Set for validation.
- Ensures node behavior correctness through the staking mechanism and maintains network security through the reward/slashing mechanism.

This solution adopts the ZK Rollup approach, forming a complete ZK transaction processing architecture through the Sequencer, ZK Proof Component, Rollup-Node, and Ethereum Validation. It ensures the correctness of transactions, data availability, and economic security. This solution not only enhances the security and privacy of Rollup transactions but also maintains the economic incentive balance of the entire system through staking and slashing mechanisms, making it an efficient and secure Layer2 and Layer3 solution.
Loading