diff --git a/core-concepts/avs-design.mdx b/core-concepts/avs-design.mdx deleted file mode 100644 index e054c96..0000000 --- a/core-concepts/avs-design.mdx +++ /dev/null @@ -1,32 +0,0 @@ ---- -title: 'Chainbase Network AVS Design' ---- - -## **Overview** -EigenLayer's AVS is a cornerstone of its high-performance execution layer. Details to be specified [here](/core-concepts/data-processing-based-on-avs). - -## **Integration with EigenLayer Core (AVS Directory)** -To integrate with EigenLayer Core, Chainbase Network implements an instance of ECDSAServiceManagerBase or ServiceManagerBase (BLS). This integration allows operators to register by sending transactions to the AvsServiceManager, completing the registration process -![death spiral](../images/avs-design-01.png) - -## **On-Chain Verification Challenges** -Chainbase Network requires a stable and efficient group of operators to form a decentralized and trusted data processing network. The Coordinator component needs a mechanism to measure the operational quality of these operators, ensuring they meet the network's standards. This is achieved through an on-chain consensus game involving slashing for non-compliance. - -The Coordinator periodically generates a challenge task, which involves calculating the block hash of a specific block within the blockchain data integrated into Chainbase Network. This task has a clear answer and expected outcome. The challenge is sent to operators' manuscript-node nodes, where they execute the task and return the signed result along with the recorded task execution time. This information is used to evaluate the operators' efficiency, and the results are verified on the AVS chain. -![death spiral](../images/avs-design-02.png) - -## **Implementation Details** -**Coordinator:** -1. Listens to the on-chain contract `ChainbaseServiceManager` events. -2. Sends tasks to `Manuscript Node` via an RPC interface. -3. Receives task responses from `Manuscript Node` via the RPC interface. -4. Aggregates responses from multiple `Manuscript Nodes` and submits the results to the on-chain contract `ChainbaseServiceManager`. - -**Manuscript Node:** -1. Registers the operator by calling `RegisteryCoordinator`. -2. Receives tasks from the Coordinator via the RPC interface. -3. Executes tasks, signs the task response. -4. Sends the signed task response back to the Coordinator. - -**Contracts:** -1. The `ChainbaseServiceManager` contract includes functions for `createNewTask` and `respondToTask`, facilitating the creation of tasks and the submission of task responses for verification. diff --git a/core-concepts/data-processing-based-on-avs.mdx b/core-concepts/data-processing-based-on-avs.mdx deleted file mode 100644 index 7592711..0000000 --- a/core-concepts/data-processing-based-on-avs.mdx +++ /dev/null @@ -1,23 +0,0 @@ ---- -title: 'Data Processing Based on AVS' ---- - -## **Overview** - -Chainbase Network is an omnichain data network powered by a [dual-chain](/core-concepts/dual-chain) architecture using Cosmos and EigenLayer, enabling trustworthy and transparent on-chain data processing. Through the [Manuscript protocol](/core-concepts/manuscript) on the Chainbase Virtual Machine (CVM), the network ensures seamless data interoperability. By integrating [EigenLayer’s](https://www.eigenlayer.xyz/) staking mechanism, Chainbase leverages Ethereum's economic security to build a high-performance AVS for its [Execution Layer](/core-concepts/architecture/execution_layer). This ensures large-scale data processing while maintaining security, decentralization, and scalability, supporting the growing demands of blockchain applications. - -## Execution layer node based on AVS - -![death spiral](../images/data-processing-based-on-avs.png) - -The execution layer nodes of Chainbase Network are built on EigenLayer, providing users with a node network for on-chain data processing. Developers can submit Manuscript data processing programs and request the final result dataset. EigenLayer operators with computational resources can restake and register as execution layer nodes of Chainbase Network, providing the required computing resources. As Chainbase Network integrates data query fees, restakers will generate income from it. - -As more and more Manuscripts run on Chainbase Network, more high-quality computing resources are needed. To achieve elastic scaling of resources while maintaining high throughput, on-chain computing tasks need to be routed to the best provider according to the running preferences of Manuscript. Key factors include node geographic location (latency), computing hardware, and network environment. EigenLayer will support Chainbase Network through diversified operators and routing strategies to meet these needs. - -### **Summary** - -Chainbase Network is a full-chain data network supported by the dual-chain architecture of Cosmos and EigenLayer, aiming to provide a trustworthy and transparent data processing environment. To achieve interoperability, the Manuscript protocol was developed and runs on the Chainbase Virtual Machine (CVM), designed for large-scale data processing. - -By combining EigenLayer's staking mechanism, Chainbase Network enhances economic and safety guarantees and builds a high-performance execution layer. EigenLayer operators can register as nodes of Chainbase Network, provide computing resources, and profit through integrated data query fees. - -With the increase of Manuscript operations, the system needs more high-quality computing resources, and EigenLayer provides diversified operators and routing strategies to support this demand. \ No newline at end of file diff --git a/core-concepts/data-processing.mdx b/core-concepts/data-processing.mdx new file mode 100644 index 0000000..9f9a51d --- /dev/null +++ b/core-concepts/data-processing.mdx @@ -0,0 +1,63 @@ +--- +title: 'Data Processing (AVS)' +--- + +## Overview + +Chainbase Network is an omnichain data network that leverages [dual-chain](/core-concepts/dual-chain) architecture combining [Cosmos](https://cosmos.network/cometbft/) and [EigenLayer](https://www.eigenlayer.xyz/) to enable trustworthy and transparent on-chain data processing. The network is integrated with EigenLayer's [Actively Validated Services (AVS)](https://docs.eigenlayer.xyz/developers/avs-developer-guide) system, which provides a high-performance execution layer for large-scale data processing operations. + + +## Features + +- Trustless Execution: Leverages Ethereum's security through EigenLayer +- Scalable Resources: Access to diverse operator network +- Transparent Processing: On-chain verification of results +- Economic Security: Staking-based operator incentives +- High Performance: Optimized task routing and execution + + +## Design + +### Data Processing Nodes ### +EigenLayer operators register as nodes of Chainbase Network, provide computing resources, and profit through integrated data query fees. These operators collectively make up the network's [Execution Layer](/core-concepts/architecture/execution_layer), providing users with a node network for on-chain data processing. + +### Manuscript Execution ### + +Operators execute [manuscripts](/core-concepts/manuscript/), submitted by developers. As more and more manuscripts run on Chainbase Network, more operators are needed. To achieve elastic scaling of resources while maintaining high throughput, on-chain computing tasks get routed to the best operator [according to the needs](#manuscript-routing) of each deployed manuscript. + + +### Data Verification Challenges +Operational quality of operators is ensured by the network through an on-chain consensus game involving slashing operator rewards for non-compliance. For details on how the consensus game is played, see [verification challenges](#verification-challenges). + + + + + +## Implementation + +### EigenLayer Core (AVS Directory) +To integrate with EigenLayer Core, Chainbase Network implements an instance of ECDSAServiceManagerBase or ServiceManagerBase (BLS). This integration allows operators to register by sending transactions to the AvsServiceManager, completing the registration process + +![avs-service-manager](../images/avs-design-01.png) + + +### Manuscript Routing + +*Manuscripts* are routed to an operator based upon the following characteristics of said operator: +- geographic location +- computing power +- network conditions + +**Publication** - +When a developer deploys a manuscript, the Chainbase `coordinator` coordinates the distribution of the manuscript to the appropriate operators. The manuscript is then available for other developers to query. + +**Retrieval** - +Whenever a developer queries the network for a dataset defined by a manuscript, the Chainbase `coordinator` fetches a live operator who can answer the query from the list of Eigenlayer Core Contracts registered as operators. +![avs-manuscript-design](../images/data-processing-based-on-avs.png) + + +### Verification Challenges + +The off-chain `coordinator` component periodically generates a challenge task. The `coordinator` calculates the block hash of a specific block from the data sets available on the network. The block hash is deterministic with a clear answer and expected outcome. The challenge is sent to operators' `manuscript-node` nodes, where they execute the task and return the signed result along with the recorded task execution time. This information is used to evaluate the operators' efficiency, and the results are verified on the AVS chain. The steps to completion are outlined in the diagram below: + +![avs-data-challenge](../images/avs-design-02.png) diff --git a/mint.json b/mint.json index 426fade..162c0ff 100644 --- a/mint.json +++ b/mint.json @@ -86,8 +86,7 @@ }, "core-concepts/dual-chain", "core-concepts/dual-staking", - "core-concepts/data-processing-based-on-avs", - "core-concepts/avs-design", + "core-concepts/data-processing", "core-concepts/glossary", { "group": "Architecture",