Skip to content

Latest commit

 

History

History
114 lines (68 loc) · 5.71 KB

README.md

File metadata and controls

114 lines (68 loc) · 5.71 KB

Keeper Network 2.0 AVS

Do not use it in Production, testnet only.

Problem: Decentralized networks struggle with task management inefficiencies and economic trust issues. Delays, higher costs, and lack of financial incentives undermine network integrity.

Solution: Our Keeper Network uses AVS and EigenLayer to ensure efficient task execution and economic trust through restaked assets, making participants financially committed to network reliability.

How We Built It: The Keeper Network automates tasks requested by job creators. Here's the detailed process:

Job Creators list tasks for automation. Registry manages operator registration and credentials. Task Manager handles task lifecycle, dispatching tasks to keepers. Operators (Keepers) schedule, execute tasks, and send signed responses. Aggregator collects and validates responses. Challenger validates responses and handles disputes. Service Manager enforces penalties if malpractices are detected.

Restaking Validation: Transparent protocols reward compliant restakers and penalize non-compliance, ensuring a fair and trustworthy system.

Economic Trust: EigenLayer's restaked assets model enhances economic security, ensuring all participants are financially committed to maintaining network integrity.

Applications

Automating tasks in DeFi. Regular updates for decentralized apps. Any system needing reliable, decentralized task management.

A decentralized keeper network leveraging EigenLayer's infrastructure. Developers can list automation jobs specifying a URL of code to execute and intervals. Tasks are assigned to keepers for execution, enhancing network automation and reliability.

Dependencies

You will need foundry and zap-pretty and docker to run the examples below.

curl -L https://foundry.paradigm.xyz | bash
foundryup
go install github.com/maoueh/zap-pretty@latest

You will also need to install docker, and build the contracts:

make build-contracts

Running via make

This simple session illustrates the basic flow of the AVS. The makefile commands are hardcoded for a single operator, but it's however easy to create new operator config files, and start more operators manually (see the actual commands that the makefile calls).

Start anvil in a separate terminal:

make start-anvil-chain-with-el-and-avs-deployed

The above command starts a local anvil chain from a saved state with eigenlayer and incredible-squaring contracts already deployed (but no operator registered).

Start the task manager:

make start-task-manager

Register the Keeper(operator) with eigenlayer and incredible-squaring, and then start the process:

make start-keeper

Create a Job:

make create-job

Avs Task Description

This architecture outlines a sophisticated decentralized job execution system. At its core, the system separates job creation, task management, execution, and result aggregation into distinct components, allowing for a flexible and scalable workflow.

The process begins with the JobManager, which creates jobs consisting of multiple tasks. These jobs are then passed to the KeeperNetworkTaskManager, responsible for breaking down jobs into individual tasks and managing their lifecycles. The TaskManager acts as an intermediary, listening for new jobs and allocating tasks to available Keepers at scheduled times.

Keepers, the workhorses of the system, execute the assigned tasks and sign their results using BLS signatures for security and authenticity. These signed results are then sent to the Aggregator, which collects, verifies, and processes the responses from multiple Keepers.

The final step involves the Aggregator sending the processed data back to the Task Creation smart contract, which updates the task statuses and forwards the results to the original Job Creator. This completes the cycle of job creation, execution, and result reporting.

Resources

Overview of Keeper Network AVS: The Future is Bright: Keeper Networks 2.0 Paves the Way for Secure and Scalable

For more technical insights, click here!

YouTube: Keeper Network 2.0

To Do

It's important to note that several key features are still in development:

  • Metrics for monitoring operator health: This will provide insights into the performance and reliability of the Keepers.

  • JobURL implementation: This feature will allow the system to retrieve job details directly from the job creator, potentially enhancing flexibility and reducing on-chain data storage.

  • P2P network among operators: This addition will enable direct communication between Keepers, which could improve efficiency and resilience of the system.

These upcoming features will likely enhance the system's robustness, scalability, and decentralization. The metrics will aid in system management, the JobURL will streamline job distribution, and the P2P network will foster a more interconnected and resilient operator ecosystem.

This architecture, with its current features and planned improvements, is well-suited for applications requiring distributed, trustless task execution in blockchain environments, emphasizing security, scalability, and verifiability throughout the process.