Message Handlers
Last updated
Last updated
The and contracts represent an abstraction for cross-chain message communication used within the Othentic Stack. Each AVS deploys its own message handlers to facilitate message-passing between Layer 1 and Layer 2 blockchains. These handlers play a critical role in ensuring seamless and secure communication across different layers.
Leveraging messaging protocol, L1MessageHandler
, and L2MessageHandler
in conjunction with , the Othentic Stack enables message-passing interactions between different layers such as L1 and L2.
By executing othentic-cli network deploy
command, the L1 and L2 Message Handlers are deployed. The contract addresses can be obtained from the L1MessageHandlerDeployed
and L2MessageHandlerDeployed
events, emitted in the respective L1 and L2 transactions.
The primary goal of the handler contracts is to communicate infrequent operations such as the registration and deregistration of Operators, slashing events, and the distribution of rewards payments.
Functionality:
AVS governance contract calls the L1 messageHandler to notify L2 about processed payments and Operator status updates.
Payment request
Batch Payment request
Functionality:
The Attestation Center contract calls the L2MessageHandler to forward payment or slashing requests to L1.
Operator registration
Operator de-registration
Payment success
Batch payment success
Access Control: Only the AVS governance contract can messages from L1.
Message Processing: Implements method to handle incoming messages from L2, including:
Access Control: Only the Attestation Center contract can messages from L2.
Message Processing: Implements method to handle incoming messages from L1, including: