@@ -65,10 +65,9 @@ To be able to send proofs to Aligned using the Batcher, the user must fund its t
6565To use it, you can use the ` aligned` CLI, as shown with the following example:
6666
6767` ` ` bash
68- aligned deposit-to-batcher \
69- --payment_service_addr 0x815aeCA64a974297942D2Bbf034ABEe22a38A003 \
68+ aligned deposit-to-batcher \
7069--rpc_url https://ethereum-holesky-rpc.publicnode.com \
71- --chain holesky \
70+ --network holesky \
7271--keystore_path < keystore_path> \
7372--amount 0.1ether
7473` ` `
@@ -77,16 +76,15 @@ These commands allow the usage of the following flags:
7776
7877- ` --payment_service_addr` to specify the address of the Batcher Payment Service smart contract.
7978- ` --rpc_url` to specify the rpc url to be used.
80- - ` --chain ` to specify the chain id to be used. Could be holesky or devnet.
79+ - ` --network ` to specify the chain id to be used. Could be holesky or devnet.
8180- ` --keystore_path` the path to the keystore.
8281- ` --amount` the number of ethers to transfer to the Batcher.
8382- Note: ` --amount` flag parameter must be with the shown format. The amount followed by the ` ether` keyword to specify how many ethers you wish to deposit to the Batcher.
8483
8584After depositing funds, you can verify the Service has correctly received them by executing the following command:
8685
8786` ` ` bash
88- aligned get-user-balance \
89- --payment_service_addr 0x815aeCA64a974297942D2Bbf034ABEe22a38A003 \
87+ aligned get-user-balance \
9088--rpc_url https://ethereum-holesky-rpc.publicnode.com \
9189--user_addr < user_addr>
9290` ` `
@@ -130,9 +128,8 @@ aligned submit \
130128--proof_generator_addr [proof_generator_addr] \
131129--batch_inclusion_data_directory_path [batch_inclusion_data_directory_path] \
132130--keystore_path < path_to_ecdsa_keystore> \
133- --chain holesky \
134- --rpc_url https://ethereum-holesky-rpc.publicnode.com \
135- --payment_service_addr 0x815aeCA64a974297942D2Bbf034ABEe22a38A003
131+ --network holesky \
132+ --rpc_url https://ethereum-holesky-rpc.publicnode.com
136133` ` `
137134
138135** Example**
@@ -145,9 +142,8 @@ aligned submit \
145142--vm_program ./scripts/test_files/sp1/sp1_fibonacci.elf \
146143--batcher_url wss://batcher.alignedlayer.com \
147144--keystore_path ~ /.aligned_keystore/keystore0 \
148- --chain holesky \
149- --rpc_url https://ethereum-holesky-rpc.publicnode.com \
150- --payment_service_addr 0x815aeCA64a974297942D2Bbf034ABEe22a38A003
145+ --network holesky \
146+ --rpc_url https://ethereum-holesky-rpc.publicnode.com
151147` ` `
152148
153149# ## Risc0 proof
@@ -167,9 +163,8 @@ aligned submit \
167163--proof_generator_addr [proof_generator_addr] \
168164--batch_inclusion_data_directory_path [batch_inclusion_data_directory_path] \
169165--keystore_path < path_to_ecdsa_keystore> \
170- --chain holesky \
171- --rpc_url https://ethereum-holesky-rpc.publicnode.com \
172- --payment_service_addr 0x815aeCA64a974297942D2Bbf034ABEe22a38A003
166+ --network holesky \
167+ --rpc_url https://ethereum-holesky-rpc.publicnode.com
173168` ` `
174169
175170** NOTE** : As said above, Aligned currently supports Risc0 proofs from ` risc0-zkvm` version ` v1.0.1` . For generating proofs using ` cargo risc-zero` please ensure you are using ` v1.0.1` or your proof will not be verified.
@@ -194,9 +189,8 @@ aligned submit \
194189--batcher_url wss://batcher.alignedlayer.com \
195190--aligned_verification_data_path ~/.aligned/aligned_verification_data \
196191--keystore_path ~/.aligned_keystore/keystore0 \
197- --chain holesky \
198- --rpc_url https://ethereum-holesky-rpc.publicnode.com \
199- --payment_service_addr 0x815aeCA64a974297942D2Bbf034ABEe22a38A003
192+ --network holesky \
193+ --rpc_url https://ethereum-holesky-rpc.publicnode.com
200194```
201195
202196### GnarkPlonkBn254, GnarkPlonkBls12_381 and Groth16Bn254
@@ -214,9 +208,8 @@ aligned submit \
214208--proof_generator_addr [proof_generator_addr] \
215209--batch_inclusion_data_directory_path [batch_inclusion_data_directory_path] \
216210--keystore_path <path_to_ecdsa_keystore> \
217- --chain holesky \
218- --rpc_url https://ethereum-holesky-rpc.publicnode.com \
219- --payment_service_addr 0x815aeCA64a974297942D2Bbf034ABEe22a38A003
211+ --network holesky \
212+ --rpc_url https://ethereum-holesky-rpc.publicnode.com
220213```
221214
222215**Examples**:
@@ -230,9 +223,8 @@ aligned submit \
230223--vk ./scripts/test_files/gnark_plonk_bn254_script/plonk.vk \
231224--batcher_url wss://batcher.alignedlayer.com \
232225--keystore_path ~/.aligned_keystore/keystore0 \
233- --chain holesky \
234- --rpc_url https://ethereum-holesky-rpc.publicnode.com \
235- --payment_service_addr 0x815aeCA64a974297942D2Bbf034ABEe22a38A003
226+ --network holesky \
227+ --rpc_url https://ethereum-holesky-rpc.publicnode.com
236228```
237229
238230```bash
@@ -244,9 +236,8 @@ aligned submit \
244236--vk ./scripts/test_files/gnark_plonk_bls12_381_script/plonk.vk \
245237--batcher_url wss://batcher.alignedlayer.com \
246238--keystore_path ~/.aligned_keystore/keystore0 \
247- --chain holesky \
248- --rpc_url https://ethereum-holesky-rpc.publicnode.com \
249- --payment_service_addr 0x815aeCA64a974297942D2Bbf034ABEe22a38A003
239+ --network holesky \
240+ --rpc_url https://ethereum-holesky-rpc.publicnode.com
250241```
251242
252243```bash
@@ -258,9 +249,8 @@ aligned submit \
258249--vk ./scripts/test_files/gnark_groth16_bn254_infinite_script/infinite_proofs/ineq_1_groth16.vk \
259250--batcher_url wss://batcher.alignedlayer.com \
260251--keystore_path ~/.aligned_keystore/keystore0 \
261- --chain holesky \
262- --rpc_url https://ethereum-holesky-rpc.publicnode.com \
263- --payment_service_addr 0x815aeCA64a974297942D2Bbf034ABEe22a38A003
252+ --network holesky \
253+ --rpc_url https://ethereum-holesky-rpc.publicnode.com
264254```
265255
266256### Halo2 KZG and Halo2 IPA
@@ -279,7 +269,7 @@ aligned submit \
279269 --batcher_url wss://batcher.alignedlayer.com \
280270 --keystore_path <path_to_ecdsa_keystore> \
281271 --proof_generator_addr <proof_generator_addr> \
282- --chain holesky \
272+ --network holesky \
283273 --rpc_url https://ethereum-holesky-rpc.publicnode.com \
284274 --payment_service_addr 0x815aeCA64a974297942D2Bbf034ABEe22a38A003 \
285275```
@@ -296,7 +286,7 @@ aligned submit \
296286 --batcher_url wss://batcher.alignedlayer.com \
297287 --keystore_path <path_to_ecdsa_keystore> \
298288 --proof_generator_addr <proof_generator_addr> \
299- --chain holesky \
289+ --network holesky \
300290 --rpc_url https://ethereum-holesky-rpc.publicnode.com \
301291 --payment_service_addr 0x815aeCA64a974297942D2Bbf034ABEe22a38A003
302292```
@@ -313,7 +303,7 @@ aligned submit \
313303 --batcher_url wss://batcher.alignedlayer.com \
314304 --keystore_path ~/.aligned_keystore/keystore0 \
315305 --proof_generator_addr 0x66f9664f97F2b50F62D13eA064982f936dE76657 \
316- --chain holesky \
306+ --network holesky \
317307 --rpc_url https://ethereum-holesky-rpc.publicnode.com \
318308 --payment_service_addr 0x815aeCA64a974297942D2Bbf034ABEe22a38A003
319309```
@@ -328,7 +318,7 @@ aligned submit \
328318 --batcher_url wss://batcher.alignedlayer.com \
329319 --keystore_path ~/.aligned_keystore/keystore0 \
330320 --proof_generator_addr 0x66f9664f97F2b50F62D13eA064982f936dE76657 \
331- --chain holesky \
321+ --network holesky \
332322 --rpc_url https://ethereum-holesky-rpc.publicnode.com \
333323 --payment_service_addr 0x815aeCA64a974297942D2Bbf034ABEe22a38A003
334324```
0 commit comments