Pages:
Author

Topic: AELF BLOCKCHAIN ($ELF) | Aelf Will Launch Mainnet on 10th (Read 963 times)

jr. member
Activity: 159
Merit: 1
aelf Will Launch Mainnet on 10th December



On June 30, 2018, the aelf testnet was launched. Now it has been running smoothly for more than two years. During this period, aelf has hosted various initiatives to encourage users to participate in product testing and share with us their valuable opinions. At the same time, the aelf team has been constantly improving and enriching the technology, aiming to provide users with a high-performance, user-friendly, and reliable large-scale commercial blockchain infrastructure.

Since the release of the aelf mainnet launch roadmap, much progress has been made. Now, the aelf public testnet has achieved all the features required for the mainnet launch. The official release of aelf Enterprise 1.0.0 RC 1 and the successful conclusion of the aelf Public Testnet Code Audit Bounty Program also mean we are one step closer to the mainnet launch.

To advance the mainnet launch process, we have updated the aelf mainnet launch roadmap. According to the roadmap, our next major milestone is: launching the aelf mainnet on December 10!

Overall Roadmap



Phase I



Phase II



Phase III



Phase IV



Phase V



aelf will launch the mainnet following the steps in the above roadmap. The realization of each stage would not be possible without the strong support of the community. Let’s work together to ensure the successful launch of the aelf mainnet.
jr. member
Activity: 159
Merit: 1
aelf Enterprise v1.0.0 RC 1 Officially Released



On October 16th, aelf Enterprise v1.0.0 RC 1 has been launched. It is an upgraded version of aelf Enterprise V1.0.0 Preview 3, including a complete blockchain ecosystem, development suite, and developer documents for basic applications and services. aelf Enterprise v1.0.0 RC 1 has been optimized in node management, contract implementation, configuration contract, performance, scalability, and user experience. With a more comprehensive commercial blockchain solution, this version can provide a safe, stable, and efficient development environment for developers.

In addition, aelf Enterprise v1.0.0 RC 1 focuses on the user experience of developers, by making it easier to get started with. It has also added new access interfaces for developers, making it easier to use and offering a more user-friendly experience on DApp development.

aelf Enterprise v1.0.0 RC 1 is an enterprise-ready integrated blockchain solution. The ‘main chain + multi-side chain structure’, ‘cluster’ data center, parallel computing system, AEDPoS consensus, and multi-governance model can facilitate the deep integration of various applications with blockchain technology. The Public Testnet Code has been upgraded to aelf Enterprise v1.0.0 RC 1 and all functions required for Mainnet launch have been deployed. Supporting features, such as the test wallet for Android, iOS, and Testnet, in addition to the Testnet Blockchain Explorer will be upgraded at the same time.

The aelf Public Testnet has achieved all the functions planned for the Mainnet launch. Based on aelf Enterprise v1.0.0 RC 1, community users can try out the functional modules of aelf’s Mainnet right now. It is worth mentioning that the aelf Public Testnet has been running smoothly. aelf Enterprise 1.0.0 RC 1 will be the version for code auditing in near future. After the code audit is completed and the vulnerabilities found are fixed, the Mainnet will be gradually launched with this version according to Mainnet launch roadmap.

▋ aelf Enterprise v1.0.0 RC 1 System Integration

1. aelf Enterprise
- aelf v1.0.0 RC 1
- DevKit v1.0.0 RC 1

2. aelf External Applications
- aelf Blockchain Scanner v0.4.1
- aelf Scanner Mysql plugin v1.0.0 RC 1
- aelf Explorer v1.0.0 RC 1
- aelf Wallet v1.0.0 RC 1
- aelf JS SDK v3.2.34
- aelf-Bridge v0.0.9
- aelf CLI in Nodejs v0.1.43

3. aelf Browser Extension v1.1.3

▋ What’s New

1.What’s new about aelf Enterprise

1.1 aelf v1.0.0 RC 1
https://github.com/AElfProject/AElf
- Optimised node management and discovery in network layer.
- Optimized contract execution step plan.
- Configuration contract is decoupled and optimized.
- Added contract execution restriction management.
- Simplified transaction result error information of Web API.

1.2 Devkit v1.0.0 RC 1
- aelf-boilerplate: https://github.com/AElfProject/aelf-boilerplate
- Developer documentation: https://docs.aelf.io/

2.aelf External Applications Update

2.1 aelf Scanner Mysql plugin v1.0.0 RC 1
- Adjusted compatibility

2.2 aelf explorer v1.0.0 RC 1
- Fixed some bugs
- Adjusted the logic of extension login

2.3 aelf wallet v1.0.0 RC 1
- Fixed some bugs

3.aelf Browser Extension v1.1.3
- Removed redundant permission operation to make it easier for developers to get started.
- Added new unlock pop-up window to offer a more user-friendly experience on Extensions’ DApp development.
- Added new interface for developers to get new versions.

From now on, aelf will focus on analyzing exception cases based on the running of aelf Enterprise v1.0.0 RC 1. At the same time, aelf will carry out deep and systematic research on system stability, performance and security. The team will continue to explore the heterogeneous cross-chain communication and economic system designs.

aelf Enterprise v1.0.0 RC 1 is a full display of aelf’s latest technical updates and the R&D achievements of the mainnet. Mainnet preparation has been going on in accordance with the Mainnet launch Roadmap. More details will be published in the near future! Aelf will continue to strive for excellence, providing users with high-performance, stable, and reliable blockchain infrastructure.
jr. member
Activity: 159
Merit: 1
💥Good news! #Binance has opened BEP20 (Binance Smart Chain) deposits and withdrawals for $ELF! Check out more 👉
https://www.binance.com/en/support/announcement/ca94b7a6751b4b2b9451f7a3ceb8dbce
jr. member
Activity: 159
Merit: 1
#aelf101 Click the image to check out:

1️⃣ What is multi-signature address?

2️⃣ What is Oracle?


jr. member
Activity: 159
Merit: 1
Introducing Sashimi, a Fair Version of Sushi, with No Team Shares, No Pre-mine and a Cross Chain Swap Ecosystem!




Following the release of AESwap, a decentralized trading platform and the first DeFi project on aelf network on August 28, aelf is launching SashimiSwap, its version of SushiSwap today!

What is SashimiSwap?

SashimiSwap is a new SushiSwap project developed by aelf. Like other types of swap products, it adopts the model of automatic market maker(AMM). However, SashimiSwap is not a fork of Sushiswap, thus the two do not share liquidity. Once launched, anyone can participate in staking and mining on SashimiSwap! As an “upgraded & simplified SUSHI”, SashimiSwap is very easy to get started with and offers a smooth mining experience and high yield.

SashimiSwap gives liquidity providers on UniSwap an opportunity to earn SASHIMI tokens. UniSwap’s liquidity providers can stake some of their LP tokens and start earning SASHIMI tokens at block height 10,833,000 (around 10:00 am on September 10, SGT). We use the same token allocation mechanism as Sushi, with a 10x bonus (end height 10,933,000) for the first 100,000 blocks, which means we’ll release 1,000 SASHIMI tokens in each of the first 100,000 blocks. After 100,000 blocks, each block will release 100 SASHIMI tokens.

And the most important part is…

In the early stage, the 10 liquidity pools that can participate in mining are: ETH-USDT, USDC-ETH, DAI-ETH, YFI-ETH, LEND-ETH, LINK-ETH, SNX-ETH, ELF-ETH, WBTC-ETH, SASHIMI-ETH.

Unlike SushiSwap, which distributes 10% of its funding each time to the founding team for development, future iterations, audits, etc. SashimiSwap did away with such “development funds”. SashimiSwap charges a 0.3% transaction fee, of which 0.25% will be used to reward users for adding liquidity. After the aelf mainnet is launched, the remaining 0.05% will be sent to SASHIMI DAO contract, which will all be used for community governance.

SashimiSwap is committed to creating a fairer and more transparent DEX platform. It is already connected to Uniswap and will be connected to AESwap soon. The aelf team will continue to focus on R & D, achieve asset swap between SashimiSwap and AESwap via CCTP and other ways, thus creating a permissionless and decentralized cross-chain DEX.

Aelf is committed to making SashimiSwap a fairer and more transparent DEX platform. Now we are connected to Uniswap, and we will connect it to AESwap soon. The aelf team will continue to focus on R & D, achieve asset swap between SashimiSwap and AESwap via CCTP and other ways, thus creating a permissionless and decentralized cross-chain DEX.

The mobile version of AESwap (Closed Beta) has completed phase 1 of feature development, and the internal testing is ongoing within the saelf governed community. The public testing will be available starting September 11.

What features does AESwap provide?

1. Market makers can make profit by adding liquidity to trading pairs.
2. Allow market makers to create trading pairs.
3. Users can swap one token for another.
4. Users can withdraw their shares from the liquidity pool any time.
5. Users do not need to register an account. They can log in using the account of aelf Wallet, web wallet and aelf Explorer Extensions.
Learn how to use AESwap in this video: https://youtu.be/lVM5p1YTyig

After the mainnet launch, SashimiSwap and AESwap will be integrated. Users can swap and stake tokens on the aelf network, which can reduce gas fees and ease the issue of network congestion on Ethereum and prevent unexpected losses.

It’s pretty exciting to see decentralized and community-governed products like SashimiSwap which require no pre-mining, no investors, and no funds for the dev team. Various new fair launch products are considered as the future trend of DAO, as well as a new form of financing.

Missed Sushi? No worries, you are in for a Sashimi treat! Try out SashimiSwap now and give us your feedback!
SashimiSwap Website: https://sashimi.cool/farms
SashimiSwap Community (Telegram): https://t.me/SashimiSwap
SashimiSwap Community (Discord): https://discord.gg/zTdmUkb
jr. member
Activity: 159
Merit: 1
jr. member
Activity: 159
Merit: 1
📢We are thrilled to announce that AESwap Internal Testing goes live today!

The internal testing is only open to members of the saelf governed community.

⏰ 4th September - 10th September

Download AESwap🔗:
iOS: https://testflight.apple.com/join/tpHwB5t9
Android: http://d.firim.info/anaelfMarketMaker

Rules:
1️⃣Only available for members of the saelf governed community.

2️⃣Please fill in the form to collect test tokens. Apply for AESwap Test Token (https://docs.google.com/forms/d/e/1FAIpQLSfbQd1KEJQqxGXZ01dvQirN4rAg4mQ7HHl62-lSjPEkMhAlPQ/viewform?usp=sf_link)

3️⃣Share your feedback in the saelf governed community.

Once we optimise the app, the public testing will start soon.🤟

☑️AESwap does not charge any transaction fees (Gas fees). Only 0.3% commission is used for token swap. Currently, the protocol does not charge commission.

☑️Anyone can become a liquidity provider in AESwap, whoever adds liquidity to the pool can get profits from the transaction.


jr. member
Activity: 159
Merit: 1
jr. member
Activity: 159
Merit: 1
aelf is Testing AESwap Internally



In 2020, Ethereum’s DeFi ecosystem saw exponential growth and DEX (decentralized exchange) boomed. Against this backdrop, aelf officially launched AESwap, a decentralized trading platform.
AESwap is a smart contract protocol based on the aelf network, which adopts the constant product market maker (CPMM) model. No need for pre-mining and financing is a distinct feature of the project. Once it goes live, the product will offer free access to users around the world and help all people to participate in the open financial market. The follow-up funds will be managed by the aelf DAO Management Committee to ensure the project runs securely and efficiently.

AESwap is the first DeFi project based on the aelf network, with complete DeFi supporting infrastructure, including cross-chain assets, interoperability solutions, stablecoin, etc. AWSwap aims to be the world’s leading automatic trading platform and offer a more efficient, convenient and secure DeFi product than Uniswap. The mobile version of AESwap integrates the templates of aelf account management, which makes it easier to learn and get started and is more user-friendly.

The mobile version of AESwap (Closed Beta) has completed phase 1 of feature development and will be available for public testing soon. The desktop version is still under development. AESwap Phase 1 mainly provides two major features, one is that market makers make money by adding liquidity to trading pairs and they can also create trading pairs. The other is that token holders can exchange one token for another token by paying a 0.3% transaction fee, which will be used as the market makers’ commission. The protocol does not charge any commission.

AESwap Highlights:

Performance: Low transaction fee, fast trading without delay
Security: Self-developed based on the aelf network, High Security
User-friendly: Ease of use, available on both mobile and desktop
Profit: Achieve asset interoperability with adequate liquidity

At present, compared with many DEX, the biggest advantage of AESwap is “Transaction Speed”. Although Ethereum currently has the most popular DeFi ecosystem, it cannot handle high transaction throughput and fully support the expanding DeFi ecosystem until the Ethereum network adds layer 2 or upgrades to 2.0.
The underlying public chain of AESwap is the aelf network, so there will be no network congestion. Aelf adopts the main-side chain structure, which uses one chain for one specific scenario and thus can truly realize resource isolation, ensure transaction efficiency and avoid high gas fees. At the same time, under the premise of the main chain security, the side-chain and the main-chain can share security. Moreover, AESwap is independently developed by the aelf team, and its security is guaranteed. Recently, YAM’s collapse due to the existence of loopholes in the smart contract has caused a great stir, so contract security is also very important.

Aeswap liquidity pool uses a constant product market maker model to execute transactions, abandons the concept of limit order book, and can automatically adjust the exchange rate according to the available liquidity. Therefore, it can achieve fast trading and ensure the persistence of capital flow. Constant product can be regarded as an inverse proportional function x * y = K. No matter how x and y change, K is always a constant value. In AESwap transactions, the product of the tokens’ number in the liquidity pool is constant before and after a transaction, that is, the product before the purchase = the product after the purchase.

Because Ethereum platform has issued the largest number of cryptocurrency assets, the exchange’s value would be significantly reduced if it could not access these assets and the original ETH. aelf also takes this into account, so it will provide a set of interoperability solutions with other public chains’ tokens. AESwap will support the migration of Ethereum token. By reducing the cost of user migration, users can easily migrate to the aelf platform by using Ethereum token instead of purchasing or exchanging other aelf tokens to ensure sufficient liquidity and reduce the risk.

As the infrastructure of aelf ecosystem, AESwap is the basic tool to realize token trading. In the future, aelf will lay out other derivatives applications based on AESwap, form a stable financial system, and promote the prosperity of other APP and related token. In addition, AESwap can also be connected with other APP on aelf DeFi ecosystem to promote each other. In the future, the aelf will launch the AESwap public testing. Please stay tuned!


jr. member
Activity: 159
Merit: 1
What is AMM (automated market maker)?

AMM, short for automated market maker, is an innovative trading model derived from Defi projects. Unlike the traditional order book transaction model, AMM decentralized market makers and automated trading process.

Everyone can put token into the liquidity pool, become a small market maker, and then enjoy the profits from trading pair service fees. Funds in the liquidity pool are controlled by decentralized open source contracts, and AMM transaction data are all on the chain.


jr. member
Activity: 159
Merit: 1
📢AMA Announcement 🔥

 ❗️Dear community members, aelf will hold a Live AMA with aelf COO @czhuling on Telegram https://t.me/aelfblockchain!  Come and talk about DeFi with @czhuling!

Time: August 28, 5pm - 6pm (GMT + Cool

Research the aelf project and prepare some good questions!
(Users who do not follow the rules below will not be able to share out the prize pool.)
1️⃣Twitter Session (15 Questions)
2️⃣Live Session (10 Questions)

Rules :
1️⃣Join the aelf community on Telegram https://t.me/aelfblockchain
2️⃣Follow us on Twitter @aelfblockchain https://twitter.com/aelfblockchain
3️⃣Like, Retweet & Tag 3 Friends and Comment With Your Questions  https://twitter.com/aelfblockchain/status/1298199934781411328

jr. member
Activity: 159
Merit: 1
A breakdown of the aelf blockchain whitepaper — Part 2



Breaking down the aelf side-chain

Cloud computing, parallel processing, and AEDPoS have greatly improved the execution performance of any kind of smart contract, but when they are applied to enterprise-level scenarios, new problems crop up. To begin with, in software design, it is a rather bad idea to program all the methods in the same class. We always write a series of classes to inherit a base class, in order to decouple the functionalities and make the class extensible whenever needed. The same also applies to blockchain design. Second, since all the data and transactions are accessible to anyone through a blockchain explorer, if we put the smart contract and data of different enterprises or government sectors on a single blockchain, then everyone can see them, which means there will be no data privacy. Although there are encryption techniques which can mask data, such as zero knowledge proof, it is always better to put the data of different enterprises on different blockchains.

Based on these considerations, long before other projects even realized it, aelf proposed that side-chain technology should be applied to this scenario. Unfortunately, for someone who is new to blockchain, it is almost impossible to understand how side-chain works. Side-chain is not what it literally means, it is not subordinate to the main chain. On the contrary, a side chain is a blockchain distributed system with the same functions and nodes as a main chain (say, the aelf blockchain). As mentioned above, we can put the data of different enterprises on different blockchains. This means we can build many blockchains, and work magic (of course not magic in its literal sense) to make these chains connect to the aelf main chain (in fact, we can call any of these blockchains a main chain and the rest side chains). Currently, the most popular method of connecting any two blockchains, which we also call cross-chain, is using a middle-man. When we want to use bitcoin to play a decentralized game on Ethereum, we need to send a transaction with some amount of bitcoin to a locking bitcoin address, then the middle-man will exchange the locked BTC for ETH at a certain exchange rate and allocate to you the equivalent amount of ETH on Ethereum, which you can use for playing games.

But in aelf, we use a metadata indexing method, which is more straightforward. Unlike other projects who built on the blockchains of those already successful projects (such as Ethereum or the HyperLedger fabric framework for consortium blockchains), the aelf team has writen all the code and build the infrastructure from scratch. From the beginning, the aelf team has defined how the data structure of a blockchain, a block, a transaction etc. should look like in C#. In an aelf blockchain data structure, there is an attribute called blockchain ID, which is a unique hash; and in block data structure, there are several attributes called blockchain ID , Merkle tree root and related side chain block list. There is also one more important thing: all of aelf’s data structures are serialized and stored in Redis (a popular key-value pair database system), so is the side chain information. As a result, as the aelf main chain is growing with block production by BPs, other side chains can send transactions to cross-chain contracts, which then execute the related code to connect to the main chain’s network port and request the main chain to index the side chain block and pay the indexing fee.
The core issue here is how to index a side chain: when a main chain (the block data structure on the main chain, or the data records with main chain ID in Redis), receives a request from a side chain, it adds the side chain’s block head data structure to the related side chain block list, which means theoretically we have indexed or related a side chain. We have mentioned that there is also a blockchain ID in each block, this attribute allows a main chain to index blocks from different side chains. When a user on a main chain wants to access data on a side chain or vise versa, they just need to find the target block on the main chain and its related side chain block list, and then find the target block on the side chain via key indexing.

As we will explain later, blockchains for different application scenarios generate blocks at different speeds. Under such circumstances, a chain with slower speed might index many blocks from a chain that produces blocks faster. This method can be applied to scenarios such as forking.

In practice, we can build any number of blockchains, and relate it via indexing to the aelf main chain, with a specific category of smart contracts running on each of them. For example, we can allow only banking-related smart contracts deployed on a specific blockchain, and e-commerce smart contracts on another. Our whitepaper summarizes it best:
One chain, one contract.

Moreover, the indexing method can make many blockchains into a hierarchical tree structure, the root being the so-called main chain. That’s because a related blockchain can then again index another blockchain as its side chain, and the process can keep going on. Logically, this is in perfect accordance with hierarchical taxonomy, for example, the financial sector has many subcategories, such as banking, lending, investment and insurance, and under investment banking, there are venture capital, investment bank etc… Each subcategory is supported by an indexed blockchain.

So how do these blockchains collaborate in a distributed system? First we need to be know that any node in a distributed system is just a software instance running on your computer, or a process. In TCP/IP, a node is allocated a port number, so we can run any number of this type of instances on a computer. However, each instance has its own port number: we can run several blockchain nodes, one IPFS node, one bit-torrent node and etc. simultaneously. In aelf, you should first start a main chain instance, and then you can build and run a side chain instance. Transactions broadcast on the side chain are collected by the BP nodes (block production nodes) on the main chain. When smart contracts deployed on the side chain is triggered, the BP and full nodes on the main chain will run them.

Aelf — a blockchain based operating system

To perfect the design of our software system, aelf made the system extensible, flexible and pluggable. Just as there are thousands of Linux OS with only one Linux kernel. As Ethereum Founder Vitalik Buterin has explained, Ethereum can be seen as a world computer because there are lots of smart contracts running on it, and the contract execution results are consistent in all the distributed systems around the world. This idea is also embedded in aelf’s system and we call it a “blockchain infrastructure operating system”, or a distributed operating system.

Just like any OS, aelf has a kernel and a shell. In fact, aelf’s kernel is not something like a Linux kernel, it is just an analogy. There is a special concept in aelf’s kernel called the minimum viable blockchain system, which defines the most fundamental aspect of a blockchain. If a developer wants to create a new blockchain system or a new blockchain project, he does’t have to start from scratch, instead, he can directly extend and customize using the aelf blockchain open-source code. The technologies described above are all included in the minimum viable blockchain system. With these, anyone can customize:

- Block property: block data structure, block packaging speed, transaction data structure, etc.

- Consensus type: AEDPoS is used by default, but you can also use incentive consensus, like PoW and PoS. And you can also use the consensus of traditional distributed systems, like PoS and Practical Byzantine Fault Tolerance, or PBFT. In fact, the f evil nodes of 3f+1 nodes are the upper limit for any distributed system to reach a consensus, which is called the Byzantine Fault Tolerance, or BFT. In order to do this, there is a specific algorithm, but in 1999, a much more efficient algorithm to reach this consensus came along, that is the PBFT. In scenarios like private blockchain or consortium blockchain where there is no need for a incentive model, PBFT will be a good option.

- Smart contract collection: In aelf, there are many predefined smart contracts that can be used directly by other contracts, such as token contract, cross-chain contract (also called CCTP, or cross chain transfer protocol), consensus contract, organization voting contracts, etc. Of course, you can also create your own contract with a brand new implementation logic.

- Others.

Summary

So this is our breakdown of the aelf blockchain whitepaper. In previous articles, we first introduced two basic concepts which are often misinterpreted by other articles. After helping you get these two concepts straight, we then introduced aelf’s vast arsenal of powerful technology. If these articles helped you understand the aelf blockchain better, then I have reached my goal. But I must advise you to read the whitepaper for a more detailed explanation. With all this knowledge at your disposal, I believe you will be much more comfortable developing DApps on aelf.

jr. member
Activity: 159
Merit: 1
jr. member
Activity: 159
Merit: 1
jr. member
Activity: 159
Merit: 1
📢🔥 ATTENTION, please!

aelf Wallet is now available on Android and iOS!

Click the link 🔗 to download and try it out!

Android: http://d.alphaqr.com/aelfwalletandroid

 IOS: https://testflight.apple.com/join/TclFysmO




jr. member
Activity: 159
Merit: 1
A breakdown of the aelf blockchain whitepaper — Part 1



Why cloud computing is a must

We have already mentioned that cloud computing is a key feature. For Bingo Game, the aelf team only deployed 2 simple smart contracts (compile a C# file into intermediate code and upload it onto the aelf blockchain by creating a transaction with a special contract). Anyone can compile C# contracts and deploy them on the blockchain so that other people can invoke the contract to do whatever they want, say, developing a DApp. If only a few people are using the aelf blockchain, then it does not really matter. However, for any enterprise-level scenarios, this blockchain architecture is a recipe for disaster, just think of the torrent of data flowing in a supply chain. Under such circumstances, the number of deployed contracts will be in the MILLIONS, and if they are invoked by a lot of people, the transactions and contract code executions can easily soar to BILLIONS! As mentioned, a full node or mining node (also “block producer”) executes contract opcode under the dotnet framework, if we give millions of contracts for this node to execute, it will take so long a time that no application can handle. Try to imagine if there are 2,500,000 contracts queuing up to be executed by a single computer before your contract is executed, it would be so frustrating! For a common blockchain, this is called “network congestion”.
It is therefore easy to see why a cloud computing solution comes in handy. Instead of using a run-of-the-mill computer as a full node, why not use a super-computer?

Why not run in parallel?

In addition to cloud computing, nodes can also run smart contract code in parallel on the aelf blockchain. Before aelf, smart contracts on all blockchains are executed in a single-threaded way, like the event loop of the Javascript engine. But the aelf team, excelling at C#, found that the C# infrastructure can support parallel execution, so they applied this feature to the design of the aelf blockchain architecture. Combined with some designing patterns, the aelf team finally designed this mechanism, ushering in a new era of blockchain nodes with parallel execution.

For example, suppose there are 1,000 tasks to be executed (transactions or contracts), the aelf system will first check if these tasks change the same value simultaneously, if they do, then they will be executed in sequence because we don’t want these tasks to conflict with one another during parallel execution. If they don’t, then these non-conflicting tasks can be executed in parallel where they are divided into several groups according to whether they conflict with each other. So the result will be, say, 4 groups: [200 tasks, 300 tasks, 250 tasks, 250 tasks], and the overall execution speed will roughly be 4 times faster.

Just like Marvel superheroes assembled together to fight Thanos, aelf combined cloud computing and parallel processing to make sure any enterprise-level use cases have a seamless experience. Now let’s dive deeper into the technical stuff..

Delegated Proof of Stake (DPoS) and aelf Delegated Proof of Stake (AEDPoS)

As mentioned in “What is a blockchain” in the last article, in a distributed system, it always takes time for a transaction or a block to be broadcast to every node when there is a large number of nodes involved. We know that in the Bitcoin system, only mining nodes are responsible for producing new blocks, so why not reduce the number of mining nodes as much as possible? As a result, the Delegate Proof of Stake(DPoS) consensus mechanism came along. Proof of Stake is a variety of consensus algorithms that use something (for example, the token amount) as stake to package new blocks, the higher the stake, the likelier this new block will be confirmed. In DPoS, there aren’t so many mining nodes (strictly speaking, there is no mining concept in PoS, rather, they are called validating nodes), because we simply delegate a very few validation nodes to produce blocks and broadcast them to other delegated nodes. Clearly, DPoS solved the problem of long broadcast time in the blockchain distributed system. However, since there are only a few validating nodes at play, how can we prevent these nodes from plotting with each other to manipulate the whole chain and undermine the decentralized principle? That’s why all types of DPoS have a strict voting mechanism to ensure these elected delegates act fairly and transparently.

In fact, DPoS stems from the EOS blockchain project. In DPoS’s design, there are at least three types of nodes: block producer (BP, or less strictly, mining node), candidate node and common node. The candidate node is a block producer (BP) candidate who applies for the role via a smart contract. Theoretically, any common node with sufficient computing power (in aelf, we recommend a computer with at least a 8-core CPU, 8GB of RAM and 500GB SSD) can be a candidate node. In practice, only a small fraction of them can be real BP through voting by other common nodes. On the financial side, a typical blockchain project which chose DPoS as its consensus mechanism always rewards nodes with some tokens if they vote for candidates, thus encouraging participation. The voting mechanism is essentially a smart contract with voting methods that request voting node’s address, who it votes for and how many tokens they want to stake (the higher the stake, the greater the vote weight). In aelf, we don’t know how many common nodes can become candidate nodes, but only the 17 candidate nodes with the most votes can become a BP.

With some special techniques, aelf has upgraded DPoS to the unique AEDPoS (aelf DPoS). The creators have drafted a specific suite of round-based block production mechanism. If you look this up in the whitepaper you’ll see lots of mathematical expressions, but don’t worry, the core concept behind it is quite simple and straightforward.

Before explaining, let me remind you of two things: First, the real random number generation method (we’ll talk about this in details in the next articles). This method can not only generate a random number, but also shuffle a collection (say, a list), which makes the process impossible to be predicted, manipulated and plotted. Second, the Byzantine General Problem. Let’s have a quick recap of this problem: formally proposed by Lamport et. al in 1982, the Byzantine General Problem imagines a three-generals scenario, as was mentioned in the last article, if anyone of the three is a traitor who wants to alter the message, it is impossible for the three of them (the whole system) to reach consensus. Based on this observation, Lamport deduced that in the case of 3n nodes (n is a countable number) in the system, if there are at least n nodes who are traitors, the whole system can never reach a consensus. So in many other articles, you can always see the following statement:

If there are f evil nodes, there should be at least 3f+1 nodes for the distributed system to be useful.

In aelf’s DPoS, if the aelf main/test net is launched, the default setting is 2N+1 BPs, in the first year N=8, and N increases by 1 every year. There are 17 BPs at the very beginning. If 13 (no more than 5 BPs corrupt the network) of them behave normally, all the BPs will finally reach a consensus. Under this condition, aelf defines a round in which every BP packages blocks sequentially, and after that, aelf randomly picks a BP to package blocks. After this round, we shuffle the BP list, and repeat this process. The key is that the block production sequence is random enough to prevent BPs from plotting with each other. Of course, there are other designs involved, but we don’t need to know them to understand how AEDPoS works.

Like common DPoS, the BP list is always changing based on their votes. A common node can vote for BPs and candidates at any time (the aelf blockchain now supports this feature), and the aelf system will check the ranking every month, those who are at the bottom will be replaced by candidate nodes with higher rankings.
jr. member
Activity: 159
Merit: 1
jr. member
Activity: 159
Merit: 1
jr. member
Activity: 159
Merit: 1
The launch of BancorV2 has generated lots of buzz in the last few days.

aelf Resource Token is based on Bancor, which ensures the instant exchange between resource token and ELF.

In the future, aelf will also launch its own DEX and build a decentralized lending platform.

jr. member
Activity: 159
Merit: 1
Pages:
Jump to: