bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 41쪽 중 2쪽
original technical architecture, please refer to our original Whitepaper v1.0
here
.
In aelf's Whitepaper 2.0, the mission is to leverage artificial intelligence (AI) to enhance its operational efficiency. AI-driven machine learning models optimise smart contract execution and gas usage, predict network congestion, and dynamically adjust resources to ensure high performance. Additionally, AI enables intelligent load balancing and predictive scaling, ensuring efficient traffic distribution and resource utilisation throughout the network. For aelf's AI Oracle, it's aim is to implement a credible Web3 AI framework that enhances on-chain smart contracts with AI features, promoting the creation of AI-centric decentralized applications(AI-dApps).
For developers, aelf provides an AI-enhanced environment that simplifies smart contract creation with Natural Language Processing (NLP) and offers real-time support through AI-powered chatbots. These tools make blockchain technology more accessible to non-technical users and streamline the development process for experienced developers. In aelf's AI-based smart contract auditing, smart contract code is input into aelf's pre-trained model to analyse syntax and logical structure, identifying security vulnerabilities and errors, and generating a detailed audit report with remediation suggestions for aelf developers before deploying their smart contracts on the aelf chain. By incorporating AI, aelf not only improves the user experience but also expands its user base, fostering adoption and innovation in the blockchain space.
Beyond AI, aelf will be introducing a new modular blockchain technology that would significantly enhance aelf's performance, scalability, and EVM compatibility. This approach will reduce gas storage costs, lower transaction costs for users, and ultimately improves privacy and the user experience.
Ultimately, aelf is a versatile multi-chain blockchain framework that enhances efficiency and scalability through a multi-layered architecture, AI integration, and modular structure, making it highly efficient, secure, and developer-friendly.
## /resources/whitepaper-2/background-on-aelf
The story of aelf began on 10 December 2017, when aelf's vision and plans were introduced to global investors at a Coindesk conference. aelf successfully completed its fund-raising significantly ahead of schedule, having secured investments from notable institutions such as
Binance
,
Arrington Capital
,
Draper Dragon
,
Galaxy Digital
etc. In the same month, the ELF token was listed on six major exchanges, including
Binance
and
OKEX
. aelf Testnet was successfully launched in 2018, followed by another successful launch of the Mainnet in 2020.
aelf is primarily a multi-chain parallel computing blockchain framework which was created to address several of the limitations of traditional blockchain systems, such as performance bottlenecks and data complexity. aelf's vision is to be a "Linux Ecosystem" equivalent for a blockchain that incorporates state of the art IT design principles, which in particular allows developers to customise Chains to meet their own needs. At its core, aelf contains the following main features:
MainChain and multi-layer dAppChains to handle various user driven scenarios. One chain is designed for one use case, distributing different tasks on multiple chains, which improves processing efficiency.
Communication with external blockchain networks, such as Bitcoin and Ethereum, via cross chain messaging protocols.
Parallel processing for non-competing transactions in a cloud-based environment.
Basic components for a minimum viable Block and Genesis Smart Contract Collection for each Chain, which reduces data complexity and allows for high customisation at the same time.
Permission for stakeholders to approve amendments to the protocol, including redefining the Consensus Protocol; Permission for dAppChains to join or exit from MainChain dynamically based on the Consensus Protocol.
aelf's primary strength lies in its architecture, which utilises a multi-layered structure comprising a MainChain and multiple dAppChains. This differs from a traditional Single Chain system in that aelf is a "Branched Ecosystem", where the MainChain works as the backbone of the system and connects to multiple dAppChains. Compared with the traditional "one Chain to any type of Contract", aelf's "One Chain to one type of Contract" design allows aelf to distribute tasks efficiently and process transactions in parallel, significantly enhancing scalability and reducing congestion. At the same time, the dAppChains are easier to manage and can be tailored for specific applications, enabling aelf to support a wide range of use cases without compromising performance.
For aelf's consensus mechanism, it utilises the Delegated Proof of Stake (DPoS) to manage overall network efficiency. DPoS is known for its speed and energy efficiency compared to other consensus mechanisms like Proof of Work (PoW). By allowing token holders to vote for delegates who validate transactions and maintain the network, aelf ensures a high level of security and decentralisation while keeping transaction times low. Additionally, aelf's dynamic indexing and comprehensive token system offer robust support for various applications, from digital asset management to DeFi platforms, making it a versatile and powerful blockchain solution for all types of developers.
Last but not least, the
C# programming language
forms the foundation of the entire aelf blockchain. C# is a robust, object-oriented language with strong type-checking, which enhances code reliability and reduces runtime errors and are crucial for the immutable and secure nature of blockchain applications. Its performance characteristics, including efficient memory management and speed, are beneficial for blockchain's demanding requirements. Further, C#'s support for asynchronous programming and parallel processing helps optimise the performance of blockchain nodes, ensuring they can handle multiple transactions simultaneously without significant latency. This strong technical foundation underpins aelf's ability to handle high transaction volumes and complex operations with ease.
For further details on aelf's original design and architecture, please kindly refer to our
original whitepaper
.
## /resources/whitepaper-2/the-evolving-blockchain-landscape
The blockchain landscape continues to evolve rapidly, with significant trends shaping the industry in 2024. DeFi remains at the forefront, characterised by its ability to eliminate intermediaries and offer direct, trustless transactions. The integration of AI-driven risk management systems enhances the security of DeFi platforms, ensuring safer transactions and compliance with regulatory requirements through automated AML and KYC processes. Additionally, cross-chain interoperability is becoming increasingly important, allowing seamless transactions and asset transfers across different blockchain networks. For instance,
Chainlink's CCIP
allows for cross-chain liquidity pools and interoperable DeFi protocols to leverage unique features of multiple blockchains, such as utilising Ethereum's high liquidity while benefiting from the low transaction fees of Layer 2 solutions. This interoperability is crucial for expanding DeFi services beyond the limitations of a single blockchain, thus enhancing liquidity and optimising returns for users across various protocols.
NFTs also continue to gain traction, with mainstream adoption by brands and the integration of NFTs into various sectors like gaming and real estate. The tokenisation of real-world assets (RWAs) using NFTs offers investors new opportunities by providing digital representations of physical assets, thus unlocking liquidity in traditionally illiquid markets.
Ondo Finance
for instance is a significant player in the tokenised treasury market, bringing institutional-grade financial products to the crypto space. They focus on tokenising U.S. Treasury Bills, offering a stable yield through their USDY stablecoin. This trend is expected to democratise access to valuable assets and promote global market participation.
Moreover, the demand for scalable and sustainable blockchain solutions is driving the adoption of energy-efficient consensus mechanisms, such as PoS, aligning with broader global sustainability initiatives. Ethereum's upgrade to
Ethereum 2.0
aims to significantly enhance its scalability through the implementation of shard chains and the transition from PoW to PoS. Sharding allows the Ethereum network to be divided into smaller, more manageable pieces, which can process transactions in parallel, thus increasing overall throughput. Innovative approaches are being employed to tackle scalability issues in blockchain technology, ensuring that networks can meet growing demand without compromising on performance or security.
As blockchain technology continues to evolve and mature, its application across diverse use cases highlights its potential to enhance transparency, security, and efficiency in various sectors closer to home.
## /resources/whitepaper-2/the-ai-revolution-and-its-impact-on-blockchain
AI's influence is often subtle but profoundly transformative, reshaping our daily lives and work in remarkable ways. In healthcare, AI is making significant strides where physicians are now leveraging AI to enhance
diagnostic accuracy
and develop tailored treatment plans, leading to improved patient care and faster recovery times. AI is also accelerating
drug discovery
by analysing vast datasets to identify potential new medications, substantially reducing the time and resources typically required for extensive clinical trials. In the financial sector, financial institutions employ AI to bolster security measures such as detecting
fraudulent activities
by identifying unusual patterns that might elude human observation. AI is revolutionising personal finance by offering customised financial advice, helping individuals better manage their assets through analysis of their financial behaviours and providing tailored recommendations. Think
Robo-advisors
.
Within the blockchain sector in particular, AI offers interesting solutions to enhance security and boost efficiency. AI can predict and prevent security breaches, optimise transaction verification processes, and provide in-depth insights into on-chain activities. In smart contract development, AI can assist with code generation, optimisation, and bug detection. A blockchain's scalability and performance can be improved by AI through optimised transaction routing and network congestion prediction, resulting in transactions being processed more quickly and with fewer errors, making blockchain technology more practical for everyday use.
The blockchain's decentralised infrastructure is also opening new avenues for AI development. It offers a transparent and immutable platform for storing and sharing AI models, ensuring their integrity and facilitating collaborative development. The concept of decentralised AI marketplaces such as
SingularityNet
, enabled by smart contracts, could allow for the buying, selling, and execution of AI services in a trustless environment. Furthermore, native cryptocurrencies on blockchains can be utilised to incentivise AI training, potentially democratising access to advanced AI capabilities. In terms of user experience in blockchain applications, AI can offer personalised recommendations on DeFi platforms, aiding users in making more informed investment decisions, or assist in managing digital identities, ensuring data security while simplifying user access.
As we continue to find synergy between AI and blockchain, we earnestly embrace further innovative developments here at aelf and anticipate broader adoption of blockchain technology into our daily lives. This collaboration is not just advancing both technologies but is also delivering tangible benefits to users in the form of security, scalability and user experience of the entire Web3 ecosystem.
## /resources/whitepaper-2/aelf-ai-enchanced-architecture
As mentioned earlier, aelf's underlying architecture is fundamentally written in C#. C# offers a powerful foundation for AI integration in blockchain development, primarily due to its alignment with the
.NET ecosystem
, which provides a wide range of libraries and tools that facilitate the development of sophisticated AI models, including the integration of machine learning algorithms, natural language processing (NLP), and data analytics. These capabilities are crucial for enhancing the functionality and intelligence of blockchain platforms. C#’s strong typing and object-oriented features ensure that code is reliable and maintainable, reducing the likelihood of errors that could compromise security. Furthermore, the seamless integration with cloud computing platforms such as
Google Cloud featuring AI
and machine learning services allows aelf developers to easily implement AI functionalities within the aelf blockchain. This includes capabilities such as automated smart contract execution, fraud detection, and enhanced data privacy through advanced encryption techniques.
By leveraging C# and
.NET's extensive libraries
, aelf developers can incorporate AI models that predict network congestion and dynamically adjust the consensus process to maintain high performance. This not only ensures efficient network management but also enhances user experience by reducing transaction latency and costs.
For developers looking to build on aelf, they can also leverage AI for various functionalities with the extensive support from popular professional development tools, which further streamlines the development process, allowing for rapid prototyping and deployment of AI-enhanced blockchain solutions such as financial dApps and decentralised marketplaces. Overall, C# provides a robust base for AI integration in blockchain platforms like aelf by leveraging the strengths of the .NET ecosystem including extensive libraries, seamless integration with best-in-class cloud computing AI services, and powerful development tools, all of which contribute to creating secure, scalable, and intelligent blockchain applications.
## /resources/whitepaper-2/ai-integration-points-in-the-aelf-ecosystem
The integration of AI into the aelf ecosystem marks a significant advancement in the blockchain’s operational capabilities which not only optimises performance and security, but also plays a crucial role in transitioning mass Web2 users to Web3 by significantly improving the overall user and developer experience.
The integration of AI into the aelf ecosystem can be broadly categorised into two main areas, which we will detail below:
Operational Excellence
Developer and user experience
## /resources/whitepaper-2/modular-blockchain
On this page
aelf as a modular blockchain
A
modular blockchain
is a design approach that focuses on handling a limited set of responsibilities while outsourcing the rest to one or more independent layers. It decomposes the various tasks or functions of a blockchain into distinct layers or modules. This segregation allows for improved performance, scalability, and customisation.
Execution Layer:
This layer is where transactions and state changes occur, such as modifying wallet balances. Users interact with this layer through transaction operations, currency transfers, and smart contract deployments.
Settlement Layer:
An optional layer in Modular Blockchain, it is responsible for verifying and settling rollup transactions. Rollup transactions are a technique that bundles multiple transactions into a single one for improved efficiency.
Consensus Layer:
This layer provides ordering and finality through a network of full nodes. These full nodes download and execute block contents, reaching a consensus on the validity of state transitions.
Data Availability Layer:
This layer contains data that has already been confirmed as valid. It ensures that the data required for verifying state transitions is available and easily verifiable.
By separating these tasks, a modular blockchain enables independent optimisation of each layer, leading to significant improvements across layers. This results in a more scalable, composable, and decentralised system. This is why Modular Blockchain is often considered the future of blockchain technology.
The present status of aelf
As elaborated before, aelf operates on a mainchain-dAppChain architecture. Its dAppChains resemble the consumer chains of Cosmos or the parachains of Polkadot. Similar to these platforms, aelf decouples functionality at the code level — a modular or deconstructed approach rooted in software engineering principles. The primary objectives of this architecture are to facilitate the development of modular plugins within the aelf ecosystem and to enable the loading of various modules in a pluggable manner, thereby enhancing aelf's scalability and flexibility. For instance, the consensus functionality can be treated as a pluggable/replaceable code package, making it convenient for developers to customise.
Notwithstanding the aforementioned points, the current mainchain-dAppChain architecture of aelf experiences performance bottlenecks, particularly in terms of its TPS capacity. aelf will be introducing a modular chain structure that would considerably enhance aelf's performance, scalability, and compatibility with the other blockchain Virtual Machines (VMs).
Consequently, we have initiated the
Modular Blockchain project
to address these challenges.
The aelf solution
We are building a ZK-rollup on aelf, based on the
Polygon CDK
, operating in the validium mode. Its primary components include:
Executor/Verifier
:
zkEVM / ZKProver
Data Availability
:
External DA + Data Availability Committee (DAC)
Consensus
:
On-chain Smart Contracts
Sequencer
Bridge
Verification Process
The aelf ZK-rollup utilises Polygon CDK, an advanced open-source framework designed for rapidly deploying ZK-powered Layer 2 (L2) blockchains on Ethereum, with significant adaptation and optimisation efforts.
Operating in the validium mode while maintaining seamless interoperability with all other EVM chains, aelf ZK-rollup offers a high-performance Layer 2 scaling solution. As transaction data is not stored on the aelf mainnet but executed and stored off-chain, this significantly enhances scalability. Validium, under the premise of ensuring security, reduces L1 gas storage costs, thereby lowering transaction costs for users on Layer 2 while significantly improving user privacy and experience.
Unlike traditional rollups and dAppChains, aelf ZK-rollup only shares proofs of validity, which are used to confirm transaction outcomes with Layer 1, rather than the actual executed transaction data. Its operation works as follows: A verifier smart contract is deployed on aelf Layer 1, and validium submits proofs of validity to this contract. These proofs, inherently zero-knowledge, contain transaction results without revealing specific transaction data.
The verifier smart contract assesses the validity of the proofs. Should any batch submitted by validium be found invalid, it will be rejected and not stored on the aelf Layer 1.
Consensus Contract
ZkEVM.cs is the underlying protocol that ensures the correctness of state changes by using validity proofs. To confirm adherence to specific predefined rules for state transitions, the consensus contract (ZkEVM.cs, deployed on aelf Layer 1) comes into play.
ZkEVM.cs is responsible for verifying validity proofs to confirm that each transaction has been executed correctly, using ZK-SNARK circuits for validation. For the system to function properly, two key processes are involved:
transaction batching
and
transaction verification
. To carry out these processes, aelf ZK-rollup i프로젝트로 돌아가기