Hello-World-AVS Example
Introduction to Hello-World-AVS
Hello-World-AVS represents a demonstration of a minimally viable AVS with comprehensive Exocore Network Integration. This project illustrates the integration of off-chain task execution into the operational commitments of operators, while also explain the relationship between this operational logic and the AVS contracts. The process encompasses off-chain computation, acquisition of signatures from multiple Operators, aggregation of these signatures on the exocore-chain, and culminates in the validation and recording of the resultant value on-chain within the Exocore ecosystem.
Prior to the AVS becoming available for use, the following prerequisite steps must occur:
Registration of Operators is completed
The AVS Smart Contract instance is constructed using our template and subsequently deployed on the Exocore chain
Operators proceed with their registration within the AVS
Hello-World-AVS Lifecycle Flow
Each request for two numbers to be summed undergoes the following process:
AVS Task Execution Details
The Automated Validation Service (AVS) follows a systematic process to ensure accurate task execution and validation:
Task Submission: The Task Generator uses
avsWriter
to submit tasks directly to the AVS contract as outlined in theExoWriter
interface specifications.Event Emission: Once a task is received, the AVS contract emits an event detailing the computation required, such as summing two numbers.
Operator Monitoring: Registered operators actively monitor the AVS contract for emitted events. Upon detecting a task, operators compute the specified result, sign it using a BLS signature, and forward their signatures to the Aggregator.
Signature Aggregation: The Aggregator accumulates all individual signatures into one aggregated BLS signature. If the number of signatures reaches the quorum threshold, the aggregated signature is sent back to the AVS contract.
Verification and Acceptance: The AVS contract evaluates whether the quorum threshold is satisfied and if the aggregated signature is valid. Successfully passing both checks leads to the acceptance of the computed task result.
For more in-depth technical insights, including how to run a local simulation of the AVS process, you can explore the AVS Hello World Repository.
The Task Generator submits the task to be executed to the AVS contract via avsWriter.
The
ExoWriter
interface facilitates the writing communication between the off-chain AVS service and the AVS contract within the Exocore Chain. This interface is structured as followsThe AVS task management process initiates the transmission of a new task to the Exocore chain for execution.
The AVS contract subsequently emits an event signaling the successful creation of the task.
Operators monitor the AVS contract for the
TaskCreated
event through theExoReader
interface. Upon receiving this event, they execute the task, generate a BLS signature for the result, and subsequently transmit their signature to the Aggregator module on Exocore Chain for further processing.The
ExoReader
structure is defined as follows, providing a comprehensive interface for reading data from the Exocore Chain:}
The AVS module on the Exocore Chain consolidates individual operator signatures into a single aggregated signature utilizing BLS signature aggregation techniques. Once the quorum threshold is achieved and the aggregated signature is verified as valid, the Exocore chain's AVS module securely stores the task result signatures provided by participating operators, also stores the submitted task results by operators.
During the challenge period, any external EOA address can call AVS's RaiseAndResolveChallenge precompiled method to challenge any operator's results.
Note the https://github.com/ExocoreNetwork/hello-world-avs includes specific links to source code files for additional information, you can visit it and run the local demo.
Last updated