💧Overview and Framework
Last updated
Last updated
DuckChain is the first TON Consumer layer to connect TON with EVM, BTC and more ecosystems, aiming to bring billions of telegram users from off-chain to on-chain. DuckChain provides a unified gas experience for web2 users with telegram star payment and offers EVM-Compatible infrastructure for developers to build on TON and telegram.
DuckChain will bring Liquidity and users from EVM and Bitcoin ecosystem into TON. DuckChain's full compatibility with the EVM lays the foundation for seamless integration between the TON and Ethereum ecosystems. This compatibility not only promotes interoperability between technologies but also brings broader application prospects and convenience for developers and users.
The overall architecture consists of three core components that together provide a foundation of efficiency, security, and interoperability for the TON ecosystem:
Aggregation Layer:
Decentralized Oracle Layer: Serving as a bridge for data and information, this layer ensures that the state of the DuckChain Execution Layer can be verified and confirmed by the TON blockchain, thereby enhancing the transparency and credibility of the entire system.
Decentralized Asset Verify Layer: This layer verifies the flow of assets between the TON network and DuckChain. Through mechanisms such as multi-signature wallets, proposals, and review processes, it enhances the security and liquidity of transactions.
Intent Collaboration Layer: This layer provides a framework for expressing and transforming user intents, ensuring secure authorization and transmission of data while aggregating on-chain and off-chain data liquidity. By utilizing Domain-Specific Languages (DSL), it defines the input and output constraints of intents and facilitates interoperability and standardization among smart contracts. Ultimately, it monitors the execution of intent to ensure compliance and effectiveness.
Requirements Mining Layer: This layer is responsible for identifying and collecting user requirements and analyzing user behavior to uncover potential needs.
DuckChain Execution Layer: A blockchain built on Arbitrum Orbit technology, it achieves high throughput and rapid finality while maintaining compatibility and security with the TON blockchain.
DuckChain Data Layer: The DuckChain Data Layer is responsible for efficiently and securely storing all data on the blockchain. This layer ensures data integrity and traceability, utilizing distributed storage technology to enhance data access speed and reliability.
In the DuckChain ecosystem, inter-chain communication is a key process:
Activation of Demand: Users initiate requests, which can be for asset transfers or other transaction needs. The Decentralized Oracle Layer receives these requests and forwards them to the Intent Collaboration Layer for processing.
Message Parsing and Indexing: In the Intent Collaboration Layer, the received demand messages are parsed and deeply indexed, stored in the DuckChain Data Layer to ensure efficient management and retrieval of information. After parsing, the messages are handed over to the DuckChain Execution Layer for execution.
Root Hash and Message Synchronization: The Decentralized Oracle Layer and Decentralized Asset Verify Layer work together to ensure the transmission of the root hash and synchronization of messages. This allows the TON blockchain to verify the execution status of messages in real time.
Consensus Building: In collaboration between the Decentralized Asset Verify Layer and DuckChain Execution Layer, a consensus tree is constructed and root hash values are generated, ensuring the security and accuracy of cross-chain communication. Validators interact through smart contracts to ensure the consistency of data uploaded by all participants.
Transaction Execution: Once the cross-chain messages and state root are validated, the smart contracts execute the corresponding operations to complete the transaction. This involves calling the receiving methods of smart contracts and passing the necessary parameters for the transaction.
Root Hash Transmission: The Decentralized Oracle Layer is responsible for transmitting the state root of the DuckChain Execution Layer, which is the hash value of the global state, to the TON blockchain. This step ensures the integrity and consistency of the state, allowing the TON blockchain to verify and confirm the state of the DuckChain Execution Layer.
Transaction Monitoring and Rollback: The Aggregation Layer and DuckChain Execution Layer collaboratively monitor the transaction status. If a transaction fails, the system automatically collects the list of unexecuted transactions and performs resend or rollback operations as needed, ensuring the robustness of the system and the security of user assets.
Through this architecture, DuckChain has built an efficient, secure, and highly interoperable TON Layer 2 ecosystem, providing users with powerful cross-chain communication and management capabilities.