Skip to content

Commit c281383

Browse files
authored
Merge branch 'testnet' into staging
2 parents fe21a4a + d78b64c commit c281383

File tree

22 files changed

+1821
-8281
lines changed

22 files changed

+1821
-8281
lines changed

crates/cli/get_proof_test_files.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ fi
4040

4141
echo "Downloading SP1 public inputs file..."
4242

43-
if curl -sSf -L "$SP1_PUBLIC_INPUT_NAME" -o "$ALIGNED_TEST_FILES_DIR/$SP1_PUBLIC_INPUT_NAME"; then
43+
if curl -sSf -L "$SP1_PUBLIC_INPUT_URL" -o "$ALIGNED_TEST_FILES_DIR/$SP1_PUBLIC_INPUT_NAME"; then
4444
echo "SP1 public inputs downloaded successful"
4545
else
46-
echo "Error: Failed to downloaded $SP1_PUBLIC_INPUT_NAME"
46+
echo "Error: Failed to downloaded $SP1_PUBLIC_INPUT_URL"
4747
exit 1
4848
fi
4949

docs/1_introduction/1_try_aligned.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
In this tutorial, you will learn how to send your first SP1 proofs to get verified in Aligned in under 3 minutes.
44

55
{% hint style="warning" %}
6-
This tutorial is for sending proofs on Holesky network.
6+
This tutorial is for sending proofs on Hoodi network.
77
To send proofs on Mainnet, please refer to the [submitting proofs](../3_guides/0_submitting_proofs.md) guide.
88
{% endhint %}
99

1010
## Quickstart
1111

12-
We will download a previously generated SP1 proof, send it to Aligned for verification, and retrieve the results from Ethereum Holesky testnet.
12+
We will download a previously generated SP1 proof, send it to Aligned for verification, and retrieve the results from Ethereum Hoodi testnet.
1313

1414
1. Download and install Aligned to send proofs in the testnet:
1515

@@ -35,8 +35,8 @@ aligned submit \
3535
--vm_program ~/.aligned/test_files/sp1_fibonacci_5_0_0.elf \
3636
--public_input ~/.aligned/test_files/sp1_fibonacci_5_0_0.pub \
3737
--aligned_verification_data_path ~/.aligned/aligned_verification_data \
38-
--network holesky \
39-
--rpc_url https://ethereum-holesky-rpc.publicnode.com
38+
--network hoodi \
39+
--rpc_url https://ethereum-hoodi-rpc.publicnode.com
4040
```
4141

4242
5. You should get a response like this:
@@ -56,8 +56,8 @@ Use the link in the response to check the status of your transaction in the Alig
5656
```bash
5757
aligned verify-proof-onchain \
5858
--aligned-verification-data ~/.aligned/aligned_verification_data/*.cbor \
59-
--rpc_url https://ethereum-holesky-rpc.publicnode.com \
60-
--network holesky
59+
--rpc_url https://ethereum-hoodi-rpc.publicnode.com \
60+
--network hoodi
6161
```
6262
6363
This is reading the result of the proof verification in Ethereum.

docs/3_guides/0_submitting_proofs.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ To use it, you can use the `aligned` CLI, as shown with the following example:
7171

7272
```bash
7373
aligned deposit-to-batcher \
74-
--rpc_url https://ethereum-holesky-rpc.publicnode.com \
75-
--network holesky \
74+
--rpc_url https://ethereum-hoodi-rpc.publicnode.com \
75+
--network hoodi \
7676
--keystore_path <keystore_path> \
7777
--amount 0.1ether
7878
```
@@ -89,8 +89,8 @@ After depositing funds, you can verify the Service has correctly received them b
8989

9090
```bash
9191
aligned get-user-balance \
92-
--rpc_url https://ethereum-holesky-rpc.publicnode.com \
93-
--network holesky \
92+
--rpc_url https://ethereum-hoodi-rpc.publicnode.com \
93+
--network hoodi \
9494
--user_addr <user_addr>
9595
```
9696

@@ -138,8 +138,8 @@ aligned submit \
138138
--proof_generator_addr [proof_generator_addr] \
139139
--batch_inclusion_data_directory_path [batch_inclusion_data_directory_path] \
140140
--keystore_path <path_to_ecdsa_keystore> \
141-
--network holesky \
142-
--rpc_url https://ethereum-holesky-rpc.publicnode.com
141+
--network hoodi \
142+
--rpc_url https://ethereum-hoodi-rpc.publicnode.com
143143
```
144144

145145
**Example**
@@ -152,8 +152,8 @@ aligned submit \
152152
--vm_program ./scripts/test_files/sp1/sp1_fibonacci_5_0_0.elf \
153153
--public_input ./scripts/test_files/sp1/sp1_fibonacci_5_0_0.pub \
154154
--keystore_path ~/.aligned_keystore/keystore0 \
155-
--network holesky \
156-
--rpc_url https://ethereum-holesky-rpc.publicnode.com
155+
--network hoodi \
156+
--rpc_url https://ethereum-hoodi-rpc.publicnode.com
157157
```
158158

159159
### Risc0 proof
@@ -172,8 +172,8 @@ aligned submit \
172172
--proof_generator_addr [proof_generator_addr] \
173173
--batch_inclusion_data_directory_path [batch_inclusion_data_directory_path] \
174174
--keystore_path <path_to_ecdsa_keystore> \
175-
--network holesky \
176-
--rpc_url https://ethereum-holesky-rpc.publicnode.com
175+
--network hoodi \
176+
--rpc_url https://ethereum-hoodi-rpc.publicnode.com
177177
```
178178

179179
**NOTE**: As said above, Aligned currently supports Risc0 proofs from `risc0-zkvm` version `v3.0.3`. For generating proofs using `cargo risc-zero` please ensure you are using `v3.0.3` or your proof will not be verified.
@@ -198,8 +198,8 @@ aligned submit \
198198
--public_input ./scripts/test_files/risc_zero/fibonacci_proof_generator/risc_zero_fibonacci_3_0_3.pub \
199199
--aligned_verification_data_path ~/.aligned/aligned_verification_data \
200200
--keystore_path ~/.aligned_keystore/keystore0 \
201-
--network holesky \
202-
--rpc_url https://ethereum-holesky-rpc.publicnode.com
201+
--network hoodi \
202+
--rpc_url https://ethereum-hoodi-rpc.publicnode.com
203203
```
204204
205205
### GnarkPlonkBn254, GnarkPlonkBls12_381 and GnarkGroth16Bn254
@@ -216,8 +216,8 @@ aligned submit \
216216
--proof_generator_addr [proof_generator_addr] \
217217
--batch_inclusion_data_directory_path [batch_inclusion_data_directory_path] \
218218
--keystore_path <path_to_ecdsa_keystore> \
219-
--network holesky \
220-
--rpc_url https://ethereum-holesky-rpc.publicnode.com
219+
--network hoodi \
220+
--rpc_url https://ethereum-hoodi-rpc.publicnode.com
221221
```
222222
223223
**Examples**:
@@ -230,8 +230,8 @@ aligned submit \
230230
--public_input ./scripts/test_files/gnark_plonk_bn254_script/gnark_plonk_pub_input_0_12_0.pub \
231231
--vk ./scripts/test_files/gnark_plonk_bn254_script/gnark_plonk_0_12_0.vk \
232232
--keystore_path ~/.aligned_keystore/keystore0 \
233-
--network holesky \
234-
--rpc_url https://ethereum-holesky-rpc.publicnode.com
233+
--network hoodi \
234+
--rpc_url https://ethereum-hoodi-rpc.publicnode.com
235235
```
236236
237237
```bash
@@ -242,8 +242,8 @@ aligned submit \
242242
--public_input ./scripts/test_files/gnark_plonk_bls12_381_script/gnark_plonk_pub_input_0_12_0.pub \
243243
--vk ./scripts/test_files/gnark_plonk_bls12_381_script/gnark_plonk_0_12_0.vk \
244244
--keystore_path ~/.aligned_keystore/keystore0 \
245-
--network holesky \
246-
--rpc_url https://ethereum-holesky-rpc.publicnode.com
245+
--network hoodi \
246+
--rpc_url https://ethereum-hoodi-rpc.publicnode.com
247247
```
248248
249249
```bash
@@ -254,8 +254,8 @@ aligned submit \
254254
--public_input ./scripts/test_files/gnark_groth16_bn254_script/gnark_groth16_0_12_0.pub \
255255
--vk ./scripts/test_files/gnark_groth16_bn254_script/gnark_groth16_0_12_0.vk \
256256
--keystore_path ~/.aligned_keystore/keystore0 \
257-
--network holesky \
258-
--rpc_url https://ethereum-holesky-rpc.publicnode.com
257+
--network hoodi \
258+
--rpc_url https://ethereum-hoodi-rpc.publicnode.com
259259
```
260260
261261
### CircomGroth16Bn256
@@ -272,8 +272,8 @@ aligned submit \
272272
--proof_generator_addr [proof_generator_addr] \
273273
--batch_inclusion_data_directory_path [batch_inclusion_data_directory_path] \
274274
--keystore_path <path_to_ecdsa_keystore> \
275-
--network holesky \
276-
--rpc_url https://ethereum-holesky-rpc.publicnode.com
275+
--network hoodi \
276+
--rpc_url https://ethereum-hoodi-rpc.publicnode.com
277277
```
278278
**Example**
279279
@@ -285,6 +285,6 @@ aligned submit \
285285
--public_input ./scripts/test_files/circom_groth16_bn256_script/public.json \
286286
--vk ./scripts/test_files/circom_groth16_bn256_script/verification_key.json \
287287
--keystore_path ~/.aligned_keystore/keystore0 \
288-
--network holesky \
289-
--rpc_url https://ethereum-holesky-rpc.publicnode.com
288+
--network hoodi \
289+
--rpc_url https://ethereum-hoodi-rpc.publicnode.com
290290
```

docs/3_guides/4_generating_proofs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ aligned submit \
4141
--vm_program <vm_program_path> \
4242
--batcher_url wss://batcher.alignedlayer.com \
4343
--proof_generator_addr <proof_generator_addr> \
44-
--rpc_url https://ethereum-holesky-rpc.publicnode.com
44+
--rpc_url https://ethereum-hoodi-rpc.publicnode.com
4545
```
4646

4747
Where `proof_path` is the path to the proof file, `vm_program_path` is the path to the ELF file. `proof_generator_addr` is an optional parameter that works as a helper for some applications where you can be frontrunned.
@@ -90,7 +90,7 @@ aligned submit \
9090
--vk <verification_key_path> \
9191
--batcher_url wss://batcher.alignedlayer.com \
9292
--proof_generator_addr <proof_generator_addr> \
93-
--rpc_url https://ethereum-holesky-rpc.publicnode.com
93+
--rpc_url https://ethereum-hoodi-rpc.publicnode.com
9494
```
9595

9696
Where proof path is the path to the proof file, `public_input_path` is the path to the public input file,
@@ -168,7 +168,7 @@ aligned submit \
168168
--public_input <pub_input_file_path> \
169169
--batcher_url wss://batcher.alignedlayer.com \
170170
--proof_generator_addr <proof_generator_addr> \
171-
--rpc_url https://ethereum-holesky-rpc.publicnode.com \
171+
--rpc_url https://ethereum-hoodi-rpc.publicnode.com \
172172
--payment_service_addr 0x815aeCA64a974297942D2Bbf034ABEe22a38A003
173173
```
174174

docs/3_guides/9_aligned_cli.md

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ aligned submit \
102102
--repetitions <BURST_SIZE> \
103103
--keystore_path <KEYSTORE_PATH> \
104104
--batcher_url wss://batcher.alignedlayer.com \
105-
--network holesky \
106-
--rpc_url https://ethereum-holesky-rpc.publicnode.com \
105+
--network hoodi \
106+
--rpc_url https://ethereum-hoodi-rpc.publicnode.com \
107107
--max_fee 0.0013ether
108108
```
109109

@@ -141,8 +141,8 @@ Check if a proof was verified by Aligned on Ethereum.
141141
```bash
142142
aligned verify-proof-onchain \
143143
--aligned-verification-data ./aligned_verification_data/<VERIFICATION_DATA_FILE> \
144-
--network holesky \
145-
--rpc_url https://ethereum-holesky-rpc.publicnode.com
144+
--network hoodi \
145+
--rpc_url https://ethereum-hoodi-rpc.publicnode.com
146146
```
147147
148148
---
@@ -200,8 +200,8 @@ Deposits Ethereum into the Aligned Layer's `BatcherPaymentService.sol` contract.
200200

201201
```bash
202202
aligned deposit-to-batcher \
203-
--network holesky \
204-
--rpc_url https://ethereum-holesky-rpc.publicnode.com \
203+
--network hoodi \
204+
--rpc_url https://ethereum-hoodi-rpc.publicnode.com \
205205
--amount 0.5ether \
206206
--keystore_path <KEYSTORE_PATH>
207207
```
@@ -242,8 +242,8 @@ Retrieves the user's balance in the Aligned Layer's contract.
242242
```bash
243243
aligned get-user-balance \
244244
--user_addr <WALLET_ADDRESS> \
245-
--network holesky \
246-
--rpc_url https://ethereum-holesky-rpc.publicnode.com
245+
--network hoodi \
246+
--rpc_url https://ethereum-hoodi-rpc.publicnode.com
247247
```
248248

249249
---
@@ -275,7 +275,7 @@ Retrieves the user's current nonce from the Batcher.
275275
```bash
276276
aligned get-user-nonce \
277277
--user_addr <USER_ETH_ADDRESS> \
278-
--network holesky
278+
--network hoodi
279279
```
280280

281281
---
@@ -313,8 +313,8 @@ Retrieves the user's current nonce from the Blockhain, in the Batcher Payment Se
313313
```bash
314314
aligned get-user-nonce-from-ethereum \
315315
--user_addr <USER_ETH_ADDRESS> \
316-
--network holesky \
317-
--rpc_url https://ethereum-holesky-rpc.publicnode.com
316+
--network hoodi \
317+
--rpc_url https://ethereum-hoodi-rpc.publicnode.com
318318
```
319319
320320
---
@@ -323,7 +323,7 @@ aligned get-user-nonce-from-ethereum \
323323
324324
#### Description:
325325
326-
Retrieves the user's amount of queued proofs in the Batcher.
326+
Retrieves the number of proofs currently queued for a given user in the Batcher.
327327
328328
#### Command:
329329
@@ -332,28 +332,28 @@ Retrieves the user's amount of queued proofs in the Batcher.
332332
#### Options:
333333
334334
- `--user_addr <user_address>`: User's Ethereum address.
335-
- `--network <working_network_name>`: Network name to interact with.
336-
- Default: `devnet`
337-
- Possible values: `devnet`, `holesky`, `mainnet`, `hoodi`
338-
- `--rpc_url <RPC_provider_url>`: User's Ethereum RPC provider connection address.
335+
- Specify which network to interact with, using one of the following options:
336+
- `--network <working_network_name>`: Network name to interact with.
337+
- Default: `devnet`
338+
- Possible values: `devnet`, `holesky`, `mainnet`, `hoodi`
339+
- For a custom network, instead of `--network`, provide the following flags:
340+
- `--aligned_service_manager <aligned_service_manager_contract_address>`: Address of the Aligned Service Manager contract.
341+
- `--batcher_payment_service <batcher_payment_service_contract_address>`: Address of the Batcher Payment Service contract.
342+
- `--batcher_url <batcher_websocket_url>`: WebSocket URL for the Aligned batcher.
343+
- `--rpc_url <rpc_provider_url>`: Ethereum RPC provider URL.
339344
- Default: `http://localhost:8545`
340345
- Mainnet: `https://ethereum-rpc.publicnode.com`
341346
- Holesky: `https://ethereum-holesky-rpc.publicnode.com`
342347
- Hoodi: `https://ethereum-hoodi-rpc.publicnode.com`
343-
- Also, you can use your own Ethereum RPC providers.
344-
- `--batcher_url <batcher_connection_address>`: Websocket URL for the Aligned Layer batcher
345-
- Default: `ws://localhost:8080`
346-
- Mainnet: `wss://mainnet.batcher.alignedlayer.com`
347-
- Holesky: `wss://batcher.alignedlayer.com`
348-
- Hoodi: `wss://hoodi.batcher.alignedlayer.com`
348+
- You can also specify your own RPC provider URL
349349

350350
#### Example:
351351

352352
```bash
353353
aligned get-user-amount-of-queued-proofs \
354354
--user_addr <USER_ETH_ADDRESS> \
355-
--network holesky \
356-
--batcher_url wss://batcher.alignedlayer.com
355+
--network hoodi \
356+
--rpc_url https://ethereum-hoodi-rpc.publicnode.com
357357
```
358358

359359

@@ -377,25 +377,23 @@ Verifies if your proof has been verified by the `Aggregation Mode`.
377377
- `--network <working_network_name>`: Network name to interact with.
378378
- Default: `devnet`
379379
- Possible values: `devnet`, `holesky`, `mainnet`, `hoodi`
380-
- `--rpc_url <RPC_provider_url>`: User's Ethereum RPC provider connection address.
380+
- `--rpc_url <RPC_provider_url>`: User's Ethereum RPC provider connection address.
381381
- Default: `http://localhost:8545`
382382
- Mainnet: `https://ethereum-rpc.publicnode.com`
383383
- Holesky: `https://ethereum-holesky-rpc.publicnode.com`
384384
- Hoodi: `https://ethereum-hoodi-rpc.publicnode.com`
385385
- Also, you can use your own Ethereum RPC providers.
386386
- `--beacon_client_url <BEACON_CLIENT_URL>`: User's Ethereum Consensus provider connection address. Public nodes don't support this method.
387387
388-
389-
390388
#### Example:
391389
392390
```bash
393391
aligned verify-agg-proof \
394-
--network holesky \
392+
--network hoodi \
395393
--from-block 3638552 \
396394
--proving_system SP1 \
397395
--public_input ../../scripts/test_files/sp1/sp1_fibonacci_5_0_0.pub \
398396
--vk ./scripts/test_files/sp1/sp1_fibonacci_5_0_0.vk \
399397
--beacon_url <YOUR_BEACON_CLIENT> \
400-
--rpc_url https://ethereum-holesky-rpc.publicnode.com
398+
--rpc_url https://ethereum-hoodi-rpc.publicnode.com
401399
```

examples/circom/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ ETH_RPC_URL=<RPC_URL>
33
PRIVATE_KEY=<PRIVATE_KEY>
44
# Deploy the contract with make deploy_contract_devnet
55
FIBONACCI_CONTRACT_ADDRESS=<FIBONACCI_CONTRACT_ADDRESS>
6-
NETWORK=<devnet|holesky|holeksy-stage|mainnet>
6+
NETWORK=<devnet|holesky|holeksy-stage|mainnet|hoodi>

examples/circom/src/config.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ impl EnvConfig {
3232
"holesky-stage" => Network::HoleskyStage,
3333
"holesky" => Network::Holesky,
3434
"mainnet" => Network::Mainnet,
35+
"hoodi" => Network::Hoodi,
3536
_ => panic!("Unsupported NETWORK value"),
3637
};
3738

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# .env example for holesky network
2-
NETWORK=holesky
3-
ETH_RPC_URL=https://ethereum-holesky-rpc.publicnode.com
4-
WS_ETH_RPC_URL=wss://ethereum-holesky-rpc.publicnode.com
1+
# .env example for hoodi network
2+
NETWORK=hoodi
3+
ETH_RPC_URL=https://ethereum-hoodi-rpc.publicnode.com
4+
WS_ETH_RPC_URL=wss://ethereum-hoodi-rpc.publicnode.com
55
BEACON_CLIENT_URL=<YOUR_BEACON_CLIENT_URL> # This can't be a public one as we need to retrieve blobs and they don't support that method
66
PRIVATE_KEY_STORE_PATH=<PATH_TO_STATE_TRANSITION_OWNER_KEYSTORE>
77
PRIVATE_KEY_STORE_PASSWORD=<STATE_TRANSITION_OWNER_KEYSTORE_PASSWORD>

0 commit comments

Comments
 (0)