Table of Contents
Q1: What defines a Task in your AVS?
Q2: What kind of trust does your AVS want to inherit?
Q3: Is the work to be done by the operator lightweight or heavyweight?
Q4: What are the slashing conditions?
How to quantify?
What external tools can I use?
Home web3.0 IOSG: 'Four Questions' let you understand how to build AVS on EigenLayer

IOSG: 'Four Questions' let you understand how to build AVS on EigenLayer

Mar 28, 2024 am 09:51 AM
Blockchain Ethereum geographical location iosg

IOSG: Four Questions let you understand how to build AVS on EigenLayer

<img src="/static/imghw/default1.png" data-src="https://img.php.cn/upload/article/000/000/164/171159066812979.png" class="lazy" alt="IOSG: Four Questions let you understand how to build AVS on EigenLayer">Source: EigenLayer, IOSG
Copy after login

最近,使用 EigenLayer 来构建基础设施项目在开发者社区中已经变得非常流行。这些项目被称为主动验证服务(AVS),指的是任何需要自己的分布式验证语义以进行验证的系统。这些系统可以包括 DA 层、新的 VM、预言机、桥等等。

但是我们到底如何构建一个 AVS?

为了设置 AVS 的基本规则,您需要回答四个主要问题。

IOSG: Four Questions let you understand how to build AVS on EigenLayer

Q1: What defines a Task in your AVS?

在 EigenLayer 中,任务是 Operator 承诺为 AVS 提供服务的最小工作单位。这些任务可能与AVS 的一个或多个罚没条件相关联。

以下是两个示例任务:

  • 在 EigenDA 的中托管和提供 “DataStore”
  • 为跨链桥发布另一个区块链的状态根

EigenLayer 在以下工作流程中提供了一个更详细的示例。这个 AVS 的任务是计算特定数字的平方。

IOSG: Four Questions let you understand how to build AVS on EigenLayer

Task Generator 以固定时间间隔发布任务。每个任务指定了需要计算平方的数字。它还包括法定人数和法定人数的阈值百分比,规定每个列出的法定人数至少需要一定比例的 Operator 签名才能通过此任务。

当前加入 AVS 的 Operator 需要从任务合约中读取任务编号,计算其平方,对计算结果进行签名,并将计算结果和签名发送给 Aggregator。

Aggregator 收集来自 Operator 的签名并进行聚合。如果任何来自 Operator 的响应通过 了 Task Generator 在发布任务时设置的阈值百分比,聚合器将这些响应聚合起来并发布到任务合约中。

在争议解决期间,任何人都可以提出争议。DisputeResolution 合约会处理特定 Operator 的错误响应。(或者该 Operator 在这个时间窗口内没有做出响应)

如果争议被最终验证并处理, Operator 将被冻结在 Registration 合约中,由 EigenLayer 的否决委员决定是否否决冻结请求。

IOSG: Four Questions let you understand how to build AVS on EigenLayer

Q2: What kind of trust does your AVS want to inherit?

<img src="/static/imghw/default1.png" data-src="https://img.php.cn/upload/article/000/000/164/171159066870472.png" class="lazy" alt="IOSG: Four Questions let you understand how to build AVS on EigenLayer">Source: EigenLayer, IOSG Ventures
Copy after login

EigenLayer 提供了三种可编程信任。

经济信任

经济信任依赖于人们对质押资产的信心。如果腐败带来的利润低于腐败成本,经济上理性的行为者就不会发起攻击。例如,如果对跨链桥发起攻击的成本为 10 亿美元,但利润仅为 5 亿美元,则从经济上来看,进行攻击是显然不理性的。

作为广泛采用的加密经济学原语,罚没可以大大提高腐败成本,从而强化经济安全。

去中心化信任

去中心化信任的本质是拥有一个庞大且广泛分布的验证者集合,无论是在虚拟上还是在地理上。为了防止在 AVS 中各个节点之间发生串通和 Liveness Attack,最好不要让单一服务提供商运行所有节点。

在 EigenLayer 上,不同的 AVS 可以定制它们的去中心化程度。例如,它们可以为 Operator 设置地理位置要求,或者只允许个人 Operator 提供节点服务,并相应地提供更多的激励来吸引这类Operator。

以下是一个示例:

IOSG: Four Questions let you understand how to build AVS on EigenLayer

Shutter 提出了一种通过使用阈值加密来防止 MEV 的解决方案。该过程涉及一组节点,称为Keypers,他们通过分布式密钥生成(DKG)参与计算一组共享的公钥和私钥。这些节点由Shutter DAO 的治理选举产生。

显然,DKG 依赖于诚实多数的假设。

通过借助 EigenLayer 提供的节点运营服务,Shutter 可以获得更广泛的 Kepers 分布。这种方法不仅降低了 Keypers 之间串通的风险,还增强了网络的安全性和弹性。

同样,Lagrange 的 Lagrange State Committee(LSC)由再质押者组成。对于每个状态证明,至少有 2/3 的委员会成员必须签署一个特定的区块头,之后才通过 SNARK 生成一个状态证明。

以太坊“包含”(Inclusion)信任

IOSG: Four Questions let you understand how to build AVS on EigenLayer

In addition to making commitments to Ethereum through staking, Ethereum validators can also make credible commitments to AVS if they further stake on EigenLayer. This allows proposers to provide some services on Ethereum (e.g. partial block auctions via MEV-Boost) without requiring changes at the protocol level of Ethereum.

For example, forward block space auctions allow buyers to secure future block space in advance. Validators participating in the re-staking can make a credible commitment to the block space, and if they later do not include the buyer's transaction, they will be slashed.

Suppose you are building an oracle, and you may need to provide prices within a certain period of time. Or let's say you're running an L2, and you might need to publish L2 data to Ethereum every few minutes. These are all use cases for forward block space auctions.

IOSG: Four Questions let you understand how to build AVS on EigenLayer

Q3: Is the work to be done by the operator lightweight or heavyweight?

If you want to inherit the decentralization of Ethereum validators, AVS tasks should be designed to be as lightweight as possible.

If tasks consume significant computing resources, the Solo Operator may not be able to process them.

IOSG: Four Questions let you understand how to build AVS on EigenLayer

Q4: What are the slashing conditions?

By re-staking to a specific service, the re-stakeholder accepts the possible risk of slashing, And this slashing condition will be specified by AVS.

As AVS, we should design slashing conditions that are verifiable, provable, and objectively attributable on the chain. For example, double signing a block in Ethereum, and a node in a light node cross-chain bridge AVS signing an invalid block from another chain.

Improperly designed slashing conditions may lead to disagreements, which may lead to systemic risks.

AVS ​​should also ensure observability, allowing requests and responses to be monitored, tracked, and logged across services.

IOSG: Four Questions let you understand how to build AVS on EigenLayer

How to quantify?

How much trust will your AVS require (re-staking capital, different distributed validator numbers, and the number of Ethereum validators needed to fulfill the Ethereum validator promise), and how will you incentivize it?

For example, if a cross-chain bridge has a weekly transaction volume of $100 million and rents $100 million worth of security, users can trust that they are safe. Even if validators try to break the system, users are protected because they can compensate users through slashing redistributions.

Given that the TVL across chain bridges, the amount of ETH remortgaged, the number of Operators opting in, and many other parameters will continue to change and may fluctuate significantly, 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.

But, do I compromise my token utility by using EigenLayer?

IOSG: Four Questions let you understand how to build AVS on EigenLayer

Absolutely not!

EigenLayer supports dual pledge (Dual Staking). This allows you to secure the network with both ETH and your native token, adjusting the ratio of each token as needed. In the early stages of the network, ETH may account for a larger proportion. As the network matures, you may want the native token to play a more prominent role. In this case, AVS can increase the proportion of native tokens through protocol governance.

In addition, when the security needs of AVS increase rapidly in the short term, for example, when the TVL of the DeFi protocol served by the AVS oracle increases rapidly, AVS can still use EigenLayer to strengthen its economic security.

From this perspective, EigenLayer is a programmable trust market that provides "resilient" security.

What external tools can I use?

Here are some noteworthy items.

In EigenLayer's three-party market, Operators rely on AVS developers to correctly code AVS software and set reasonable slashing conditions. However, considering the diversity of AVS, the interaction logic between each AVS and Operator may be different, which creates a whole new field. To prevent accidental slashing events, AVS can audit the codebase prior to release. In addition, EigenLayer has a veto committee that can veto incorrect slashing decisions through multi-signatures.

Meanwhile, Cubist is working with EigenLabs to develop an open anti-slashing framework that leverages secure hardware and uses custom policies to sign transactions and verify messages within the key manager. For example, signing two block headers of different heights at the same time will never be approved by the policy engine within the key manager.

Re-stakeholders/Operators with a higher risk appetite may wish to participate in early AVS for higher returns. In this case, Cubist's Anti-slasher may be useful.

Many people know that EigenLayer can help AVS build a trust network, but how much does AVS need to pay for economic security, and how does it defend against economic attacks?

Anzen Protocol developed the Safety Factor (SF), a universal standard measure of the economic safety of AVS. SF is based on the concepts of corruption costs and corruption profits.

Anzen helps AVS maintain a minimum level of financial security without overpaying for financial security.

EigenLabs is developing EigenSDK to help AVS code its node software. The SDK includes signature aggregation, interaction logic with EigenLayer contracts, networking, cryptography, and event monitoring client modules.

Meanwhile, Othentic is building a development tool to help AVS release products faster.

References:

https://medium.com/@lagrangelabs/state-committees-on-eigenlayer-via-lagrange-7752f1916db4

https://www. blog.eigenlayer.xyz/ycie/

https://www.blog.eigenlayer.xyz/eigenlayer-universe-15-unicorn-ideas/

https://github.com/ Layr-Labs

https://docs.eigenlayer.xyz/eigenlayer/overview/

The above is the detailed content of IOSG: 'Four Questions' let you understand how to build AVS on EigenLayer. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What is Ouyi for? What is Ouyi What is Ouyi for? What is Ouyi Apr 01, 2025 pm 03:18 PM

OKX is a global digital asset trading platform. Its main functions include: 1. Buying and selling digital assets (spot trading), 2. Trading between digital assets, 3. Providing market conditions and data, 4. Providing diversified trading products (such as derivatives), 5. Providing asset value-added services, 6. Convenient asset management.

What are the recommended websites for virtual currency app software? What are the recommended websites for virtual currency app software? Mar 31, 2025 pm 09:06 PM

This article recommends ten well-known virtual currency-related APP recommendation websites, including Binance Academy, OKX Learn, CoinGecko, CryptoSlate, CoinDesk, Investopedia, CoinMarketCap, Huobi University, Coinbase Learn and CryptoCompare. These websites not only provide information such as virtual currency market data, price trend analysis, etc., but also provide rich learning resources, including basic blockchain knowledge, trading strategies, and tutorials and reviews of various trading platform APPs, helping users better understand and make use of them

How to roll positions in digital currency? What are the digital currency rolling platforms? How to roll positions in digital currency? What are the digital currency rolling platforms? Mar 31, 2025 pm 07:36 PM

Digital currency rolling positions is an investment strategy that uses lending to amplify trading leverage to increase returns. This article explains the digital currency rolling process in detail, including key steps such as selecting trading platforms that support rolling (such as Binance, OKEx, gate.io, Huobi, Bybit, etc.), opening a leverage account, setting a leverage multiple, borrowing funds for trading, and real-time monitoring of the market and adjusting positions or adding margin to avoid liquidation. However, rolling position trading is extremely risky, and investors need to operate with caution and formulate complete risk management strategies. To learn more about digital currency rolling tips, please continue reading.

On which platform is web3 transaction? On which platform is web3 transaction? Mar 31, 2025 pm 07:54 PM

This article lists the top ten well-known Web3 trading platforms, including Binance, OKX, Gate.io, Kraken, Bybit, Coinbase, KuCoin, Bitget, Gemini and Bitstamp. The article compares the characteristics of each platform in detail, such as the number of currencies, trading types (spot, futures, options, NFT, etc.), handling fees, security, compliance, user groups, etc., aiming to help investors choose the most suitable trading platform. Whether it is high-frequency traders, contract trading enthusiasts, or investors who focus on compliance and security, they can find reference information from it.

Tutorial on how to register, use and cancel Ouyi okex account Tutorial on how to register, use and cancel Ouyi okex account Mar 31, 2025 pm 04:21 PM

This article introduces in detail the registration, use and cancellation procedures of Ouyi OKEx account. To register, you need to download the APP, enter your mobile phone number or email address to register, and complete real-name authentication. The usage covers the operation steps such as login, recharge and withdrawal, transaction and security settings. To cancel an account, you need to contact Ouyi OKEx customer service, provide necessary information and wait for processing, and finally obtain the account cancellation confirmation. Through this article, users can easily master the complete life cycle management of Ouyi OKEx account and conduct digital asset transactions safely and conveniently.

How to calculate the transaction fee of gate.io trading platform? How to calculate the transaction fee of gate.io trading platform? Mar 31, 2025 pm 09:15 PM

The handling fees of the Gate.io trading platform vary according to factors such as transaction type, transaction pair, and user VIP level. The default fee rate for spot trading is 0.15% (VIP0 level, Maker and Taker), but the VIP level will be adjusted based on the user's 30-day trading volume and GT position. The higher the level, the lower the fee rate will be. It supports GT platform coin deduction, and you can enjoy a minimum discount of 55% off. The default rate for contract transactions is Maker 0.02%, Taker 0.05% (VIP0 level), which is also affected by VIP level, and different contract types and leverages

Binance binance computer version entrance Binance binance computer version PC official website login entrance Binance binance computer version entrance Binance binance computer version PC official website login entrance Mar 31, 2025 pm 04:36 PM

This article provides a complete guide to login and registration on Binance PC version. First, we explained in detail the steps for logging in Binance PC version: search for "Binance Official Website" in the browser, click the login button, enter the email and password (enable 2FA to enter the verification code) to log in. Secondly, the article explains the registration process: click the "Register" button, fill in the email address, set a strong password, and verify the email address to complete the registration. Finally, the article also emphasizes account security, reminding users to pay attention to the official domain name, network environment, and regularly updating passwords to ensure account security and better use of various functions provided by Binance PC version, such as viewing market conditions, conducting transactions and managing assets.

Sesame Exchange gate web version enters Sesame Exchange official web version click to enter Sesame Exchange gate web version enters Sesame Exchange official web version click to enter Mar 31, 2025 pm 06:18 PM

Sesame Exchange Gate.io web version is convenient to log in. Just enter "gate.io" in the browser address bar and press Enter to access the official website. The concise homepage provides clear "Login" and "Register" options, and users can choose to log in to a registered account or register a new account according to their own situation. After registering or logging in, you can enter the main trading interface to conduct cryptocurrency trading, check market conditions and account management. Gate.io has a friendly interface and is easy to operate, suitable for beginners and professional traders.