Skip to content

Commit 8e397d3

Browse files
PatStilesMarcosNicolauJuArceuri-99
authored
feat(batcher): Update SP1 and Risc0 version in batcher, examples, and docs (#1329)
Co-authored-by: Marcos Nicolau <[email protected]> Co-authored-by: Julian Arce <[email protected]> Co-authored-by: Urix <[email protected]>
1 parent 8f3c68d commit 8e397d3

File tree

37 files changed

+2093
-2073
lines changed

37 files changed

+2093
-2073
lines changed

batcher/Cargo.lock

Lines changed: 581 additions & 362 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

batcher/aligned-batcher/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ ethers = { tag = "v2.0.15-fix-reconnections", features = [
2525
], git = "https://github.com/yetanotherco/ethers-rs.git" }
2626
lambdaworks-crypto = { git = "https://github.com/lambdaclass/lambdaworks.git", rev = "efd46f0b0aea3aa95d94bba7de86cb96611b40d3", features = ["serde"] }
2727
serde_yaml = "0.9.34"
28-
sp1-sdk = { git = "https://github.com/succinctlabs/sp1.git", rev = "v1.0.1" }
29-
risc0-zkvm = { git = "https://github.com/risc0/risc0", tag = "v1.0.1" }
28+
sp1-sdk = { git = "https://github.com/succinctlabs/sp1.git", rev = "v3.0.0" }
29+
risc0-zkvm = { git = "https://github.com/risc0/risc0", tag = "v1.1.2" }
3030
bincode = "1.3.3"
3131
aligned-sdk = { path = "../aligned-sdk" }
3232
ciborium = "=0.2.2"

docs/2_architecture/0_supported_verifiers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ The following is the list of the verifiers currently supported by Aligned:
66

77
- :white_check_mark: gnark - Groth16 (with BN254) [(v0.10.0)](https://github.com/Consensys/gnark/releases/tag/v0.10.0)
88
- :white_check_mark: gnark - Plonk (with BN254 and BLS12-381) [(v0.10.0)](https://github.com/Consensys/gnark/releases/tag/v0.10.0)
9-
- :white_check_mark: SP1 [(v1.0.1)](https://github.com/succinctlabs/sp1/releases/tag/v1.0.1)
10-
- :white_check_mark: Risc0 [(v1.0.1)](https://github.com/risc0/risc0/releases/tag/v1.0.1)
9+
- :white_check_mark: SP1 [(v3.0.0)](https://github.com/succinctlabs/sp1/releases/tag/v3.0.0)
10+
- :white_check_mark: Risc0 [(v1.1.2)](https://github.com/risc0/risc0/releases/tag/v1.1.2)
1111
- 🏗️ Circom
1212
- 🏗️ Lambdaworks
1313
- 🏗️ Kimchi

docs/3_guides/0_submitting_proofs.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ The following is the list of the verifiers currently supported by Aligned:
1010

1111
- :white_check_mark: gnark - Groth16 (with BN254)
1212
- :white_check_mark: gnark - Plonk (with BN254 and BLS12-381)
13-
- :white_check_mark: SP1 [(v1.0.1)](https://github.com/succinctlabs/sp1/releases/tag/v1.0.1)
14-
- :white_check_mark: Risc0 [(v1.0.1)](https://github.com/risc0/risc0/releases/tag/v1.0.1)
13+
- :white_check_mark: SP1 [(v3.0.0)](https://github.com/succinctlabs/sp1/releases/tag/v3.0.0)
14+
- :white_check_mark: Risc0 [(v1.1.2)](https://github.com/risc0/risc0/releases/tag/v1.1.2)
1515

1616
Learn more about future verifiers [here](../2_architecture/0_supported_verifiers.md).
1717

@@ -115,7 +115,7 @@ Proof submission is done via the `submit` command of the Aligned CLI. The argume
115115

116116
### SP1 proof
117117

118-
The current SP1 version used in Aligned is v1.0.1.
118+
The current SP1 version used in Aligned is `v3.0.0`.
119119

120120
The SP1 proof needs the proof file and the vm program file.
121121

@@ -149,7 +149,7 @@ aligned submit \
149149

150150
### Risc0 proof
151151

152-
The current Risc0 version used in Aligned is v1.0.1.
152+
The current Risc0 version used in Aligned is `v1.1.2`.
153153

154154
The Risc0 proof needs the proof file and the vm program file (vm program file is the image id).
155155

@@ -168,12 +168,12 @@ aligned submit \
168168
--rpc_url https://ethereum-holesky-rpc.publicnode.com
169169
```
170170

171-
**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.
171+
**NOTE**: As said above, Aligned currently supports Risc0 proofs from `risc0-zkvm` version `v1.1.2`. For generating proofs using `cargo risc-zero` please ensure you are using `v1.1.2` or your proof will not be verified.
172172

173-
If you can't install `cargo-risczero` `v1.0.1`, you can manually modify your `cargo.toml` on the host project to point to `v1.0.1`:
173+
If you can't install `cargo-risczero` `v1.1.2`, you can manually modify your `cargo.toml` on the host project to point to `v1.1.2`:
174174
175175
```toml
176-
risc0-zkvm = { git = "https://github.com/risc0/risc0", tag = "v1.0.1", default-features = false, features = [
176+
risc0-zkvm = { git = "https://github.com/risc0/risc0", tag = "v1.1.2", default-features = false, features = [
177177
"prove",
178178
] }
179179
```

docs/3_guides/4_generating_proofs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,6 @@ To generate a proof of the execution of your code run the following:
303303
```sh
304304
cargo run --release -- prove-risc0 <PROGRAM_DIRECTORY_PATH> .
305305
```
306-
Make sure to have [Risc0](https://dev.risczero.com/api/zkvm/quickstart#1-install-the-risc-zero-toolchain) installed with version `v1.0.1`
306+
Make sure to have [Risc0](https://dev.risczero.com/api/zkvm/quickstart#1-install-the-risc-zero-toolchain) installed with version `v1.1.2`. Running Risc0 on macOS enable [metal](https://developer.apple.com/metal/) acceleration by default and may need to be installed it needed.
307307
308308
For additional information on using zkRust and using it to submit proofs to Aligned see the [zkRust](https://github.com/yetanotherco/zkRust) Github Repository.

docs/3_guides/6_setup_aligned.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ make install_aligned_compiling
493493

494494
The SP1 and Risc0 proofs need the proof file and the vm program file.
495495
The current SP1 version used in Aligned is
496-
`v1.0.1` and the current Risc0 version used in Aligned is v1.0.1.
496+
`v3.0.0` and the current Risc0 version used in Aligned is `v1.1.2`.
497497
The GnarkPlonkBn254, GnarkPlonkBls12_381 and Groth16Bn254 proofs need the proof file, the public input file and the
498498
verification key file.
499499

0 commit comments

Comments
 (0)