Forward the Original Title‘IOSG Weekly Brief|“四问”让你了解如何构建 AVS #218’
In EigenLayer, a task is the smallest unit of work for which an Operator commits to providing services for the AVS. These tasks may be associated with one or more penalization conditions of the AVS.
Here are two example tasks:
EigenLayer provides a more detailed example in the following workflow. The task for this AVS is to calculate the square of a specific number.
Source: EigenLayer, IOSG Ventures
EigenLayer offers three types of programmable trust:
Economic Trust
Economic trust relies on the confidence in staked assets. If the profit from corruption is less than the cost of corruption, economically rational actors would not launch attacks. For instance, if the cost to attack a cross-chain bridge is $1 billion, but the profit is only $500 million, then economically, it would be irrational to attack.
As a widely adopted cryptographic economic primitive, slashing can significantly increase the cost of corruption, thereby strengthening economic security.
Decentralized Trust
The essence of decentralized trust is having a large and widely distributed set of validators, both virtually and geographically. To prevent collusion and Liveness Attacks among nodes in the AVS, it’s best not to let a single service provider run all nodes.
On EigenLayer, different AVS can customize their level of decentralization. For example, they can set geographic location requirements for Operators or allow only individual Operators to provide node services, providing more incentives to attract such Operators.
Here’s an example:
Shutter has proposed a solution to prevent MEV (Miner Extractable Value) using threshold encryption. This process involves a group of nodes called Keypers, who participate in computing a set of shared public and private keys through Distributed Key Generation (DKG). These nodes are elected by the governance of the Shutter DAO.
Clearly, DKG relies on the assumption of an honest majority.
By leveraging node operation services provided by EigenLayer, Shutter can achieve a wider distribution of Keypers. This method not only reduces the risk of collusion among Keypers but also enhances the network’s security and resilience.
Similarly, Lagrange’s Lagrange State Committee (LSC) is composed of restakers. For each state proof, at least 2/3 of the committee members must sign a specific block header before a state proof is generated through SNARK.
Ethereum “Inclusion” Trust
In addition to making a commitment to Ethereum through staking, Ethereum validators can also make a credible commitment to the Adversarial Validity Service (AVS) by further staking on EigenLayer. This enables proposers to offer certain services on Ethereum, such as partial block auctions through MEV-Boost++, without requiring changes at the Ethereum protocol level.
For instance, forward block space auctions allow buyers to secure future block space in advance. Validators participating in re-staking can make credible commitments to block space. If they later fail to include the buyer’s transactions, they will be penalized.
Suppose you are building an oracle; you may need to provide prices over a certain period. Or, suppose you are running a Layer 2 (L2) solution; you might need to post L2 data to Ethereum every few minutes. These are use cases for forward block space auctions.
To inherit the decentralization of Ethereum validators, the tasks for AVS should be designed to be as lightweight as possible. If the tasks consume a lot of computing resources, Solo Operators may not be able to handle them.
By re-staking to a specific service, the re-stakers accept the potential risk of penalties, and these slashing conditions will be specified by AVS. As AVS, it should design slashing conditions that can be verified on-chain, provable, and objectively attributable. For example, signing a block twice in Ethereum, and a node in a light node cross-chain bridge AVS signing an invalid block from another chain. Poorly designed slashing conditions may lead to disputes, thereby posing systemic risks. AVS should also ensure observability, allowing cross-service monitoring, tracking, and recording of requests and responses.
How much trust does your AVS require (in terms of re-staked capital, the number of different distributed validators, and the number of Ethereum validators needed to fulfill Ethereum validator commitments), and how will you incentivize it?
For example, if a cross-chain bridge has a weekly transaction volume of $100 million and rents security worth $100 million, users can trust that they are safe. Even if validators attempt to compromise the system, users are protected because they can be compensated through the forfeiture and redistribution to users.
Given that the TVL of cross-chain bridges, the amount of ETH re-staked, the number of operators who opt-in, and many other parameters will constantly change and may experience significant fluctuations, the AVS needs some way to adjust its security budget and buffer space.
AVS can pay for economic security with a portion of its total token supply.
Absolutely not!
EigenLayer supports Dual Staking, which allows you to protect the network using both ETH and your native tokens simultaneously, adjusting the ratio of each token as needed. In the early stages of the network, ETH might constitute a larger proportion. As the network matures, you might want to play a more significant role with your native tokens. In such cases, AVS can increase the proportion of native tokens through protocol governance.
Furthermore, when AVS’s security needs grow rapidly in the short term, for example, when the Total Value Locked (TVL) of DeFi protocols serviced by AVS oracles increases rapidly, AVS can still fortify its economic security using EigenLayer.
From this perspective, EigenLayer is a programmable trust market that provides “elastic” security.
Here are some notable projects.