Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 1.7 KB

README.md

File metadata and controls

49 lines (38 loc) · 1.7 KB

Lumina-Othentic-Attester

an external verifier for Eigenlayer AVS lightnode bridge using Othentic stack

attester-overview

The othentic CLI can be used to create any AVS with just a few lines of code in any language you prefer. Let's look at an example for a psuedo random number generator. We provide a sample docker-compose configuration which sets up the following services:

  • Aggregator node
  • 3 Attester nodes
  • AVS WebAPI endpoint

Run the demo

To run the Lumina Othentic Attester AVS demo, you must first deploy an instance of the IntentSender contract.

cd contracts/
forge install

Run the install script:

forge script IntentSenderDeploy --rpc-url $L2_RPC --private-key $PRIVATE_KEY --broadcast -vvvv --verify --etherscan-api-key $L2_ETHERSCAN_API_KEY --chain $L2_CHAIN --verifier-url $L2_VERIFIER_URL --sig="run(address)" $ATTESTATION_CENTER_ADDRESS

Now go back to the root of the repository and run the docker compose configuraion:

docker-compose up --build

Note

Building the images might take a few minutes

Updating the Othentic node version

To update the othentic-cli inside the docker images to the latest version, you need to rebuild the images using the following command:

docker-compose build --no-cache

🏗️ Architecture

The Othentic Attester nodes communicate with an AVS WebAPI endpoint which validates tasks on behalf of the nodes. The attesters then sign the tasks based on the AVS WebAPI response.

Attester nodes can either all communicate with a centralized endpoint or each implement their own validation logic.

AVS WebAPI

POST task/validate returns (bool) {"proofOfTask": "{proofOfTask}"};