Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Quickstart

In this tutorial you will submit an SP1 proof to Aligned's Proof Aggregation Service and check that it was verified on Ethereum.

Quickstart

We will use a previously generated SP1 proof that ships with the repository, submit it for aggregation, and then read the result from Ethereum.

1. Install the Aggregation Mode CLI

git clone https://github.com/yetanotherco/aligned_layer.git
cd aligned_layer
make agg_mode_install_cli

Check the installation:

agg_mode_cli --help

2. Create a keystore

If you do not already have one, create a local keystore with cast and import it:

cast wallet new-mnemonic
cast wallet import --interactive <path_to_keystore.json>

Fund the account with Hoodi ETH from this faucet. You need funds both for gas and for your proof submission quota.

3. Fund your submission quota

Deposit into the Aggregation Mode payment service:

Each call deposits a fixed 0.0035 ether.

4. Submit the proof

From the root of the repository:

On success the CLI prints a task ID:

5. Wait for aggregation

Your proof is batched with others and aggregated into a single recursive proof, which is then verified on Ethereum. This happens within the aggregation window — 24 hours by default — so this step is not instant.

You can follow aggregated proofs as they land in the Hoodi explorer.

6. Check that your proof was verified

This reads the result of the aggregated proof verification from Ethereum and checks your proof's inclusion in it.

If your proof is not found, pass an earlier --from-block to search further back. The default only looks at roughly the last 25 hours, and the blob carrying the proof commitments expires after 18 days.

Next steps

Last updated

Was this helpful?