Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(batcher): Update SP1 and Risc0 version in batcher, examples, and docs #1329

Merged
merged 49 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
c209b55
update make + ci
PatStiles Oct 24, 2024
b565e3b
update risc_zero
PatStiles Oct 24, 2024
d44c702
add risc_zero_old
PatStiles Oct 24, 2024
3219496
update sp1
PatStiles Oct 24, 2024
6d50575
add sp1_old
PatStiles Oct 24, 2024
8fd0f7f
risc bindings compile
PatStiles Oct 24, 2024
ab3a774
sp1_old bindings work
PatStiles Oct 24, 2024
a4d0245
generate and rename risc zero proofs
PatStiles Oct 24, 2024
7bfa702
generate and rename sp1 proofs
PatStiles Oct 24, 2024
c4a2e70
bump risc0 proof generator
PatStiles Oct 24, 2024
7628b8b
bump sp1 proof generator
PatStiles Oct 24, 2024
15fdf6b
add fallback to operator
PatStiles Oct 24, 2024
0679cd9
change ffi binding names
PatStiles Oct 24, 2024
96f99e9
add LD_LIBRARY_PATH to path export
MarcosNicolau Oct 25, 2024
dd7e099
add EOL to ci
PatStiles Oct 25, 2024
c15b4a0
remove prepend to make file
PatStiles Oct 25, 2024
c885d5e
rm cmt
PatStiles Oct 25, 2024
5b3c476
update batcher
PatStiles Oct 25, 2024
851b993
update docs
PatStiles Oct 25, 2024
1a530cc
update zkquiz
PatStiles Oct 25, 2024
f0bd84c
update elf
PatStiles Oct 25, 2024
29ae7a2
update validating-public-inputs
PatStiles Oct 25, 2024
d8185db
rename proof files
PatStiles Oct 25, 2024
8f86b48
change test files in test
PatStiles Oct 25, 2024
001481f
change risc-zero test file path
PatStiles Oct 25, 2024
4a04306
change sp1 test file names
PatStiles Oct 25, 2024
7f92c13
poqueno problemo
PatStiles Oct 25, 2024
09725a7
hotfix(operator): send only rpc host to telemetry service (#1316)
JuArce Oct 24, 2024
da2e9e5
hotfix(batcher): rm MIN_FEE_PER_PROOF check in batcher (#1308)
PatStiles Oct 24, 2024
e37971b
feat: update pr template (#1321)
JuArce Oct 25, 2024
bdb75e1
refactor: use url.Parse instead of regex
JuArce Oct 25, 2024
8479d9b
feat(operator): bump risc0 and sp1 versions (#1324)
PatStiles Oct 25, 2024
3e2d377
docs: update to v0.10.2 (#1330)
JuArce Oct 25, 2024
0fe142c
update make + ci
PatStiles Oct 24, 2024
70a68df
update risc_zero
PatStiles Oct 24, 2024
366a2a2
add risc_zero_old
PatStiles Oct 24, 2024
3aa6ae0
add sp1_old
PatStiles Oct 24, 2024
c9ebfb1
risc bindings compile
PatStiles Oct 24, 2024
4c6d6b3
sp1_old bindings work
PatStiles Oct 24, 2024
6b00206
generate and rename risc zero proofs
PatStiles Oct 24, 2024
a2bf0a9
generate and rename sp1 proofs
PatStiles Oct 24, 2024
6eae62c
add fallback to operator
PatStiles Oct 24, 2024
f5f4bfa
change ffi binding names
PatStiles Oct 24, 2024
11308c0
change test paths + remove new files
PatStiles Oct 25, 2024
be00703
change test file path names + remove files named new
PatStiles Oct 25, 2024
cc51dc0
Merge branch 'staging' into 1205-update-batcher-examples-docs
uri-99 Oct 25, 2024
a39d6e5
add metal comment
PatStiles Oct 25, 2024
b41cd06
rm comment in operater
PatStiles Oct 25, 2024
f37362a
Merge branch 'testnet' into 1205-update-batcher-examples-docs
PatStiles Nov 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
943 changes: 581 additions & 362 deletions batcher/Cargo.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions batcher/aligned-batcher/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ ethers = { tag = "v2.0.15-fix-reconnections", features = [
], git = "https://github.com/yetanotherco/ethers-rs.git" }
lambdaworks-crypto = { git = "https://github.com/lambdaclass/lambdaworks.git", rev = "efd46f0b0aea3aa95d94bba7de86cb96611b40d3", features = ["serde"] }
serde_yaml = "0.9.34"
sp1-sdk = { git = "https://github.com/succinctlabs/sp1.git", rev = "v1.0.1" }
risc0-zkvm = { git = "https://github.com/risc0/risc0", tag = "v1.0.1" }
sp1-sdk = { git = "https://github.com/succinctlabs/sp1.git", rev = "v3.0.0" }
risc0-zkvm = { git = "https://github.com/risc0/risc0", tag = "v1.1.2" }
bincode = "1.3.3"
aligned-sdk = { path = "../aligned-sdk" }
ciborium = "=0.2.2"
Expand Down
4 changes: 2 additions & 2 deletions docs/2_architecture/0_supported_verifiers.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ The following is the list of the verifiers currently supported by Aligned:

- :white_check_mark: gnark - Groth16 (with BN254) [(v0.10.0)](https://github.com/Consensys/gnark/releases/tag/v0.10.0)
- :white_check_mark: gnark - Plonk (with BN254 and BLS12-381) [(v0.10.0)](https://github.com/Consensys/gnark/releases/tag/v0.10.0)
- :white_check_mark: SP1 [(v1.0.1)](https://github.com/succinctlabs/sp1/releases/tag/v1.0.1)
- :white_check_mark: Risc0 [(v1.0.1)](https://github.com/risc0/risc0/releases/tag/v1.0.1)
- :white_check_mark: SP1 [(v3.0.0)](https://github.com/succinctlabs/sp1/releases/tag/v3.0.0)
- :white_check_mark: Risc0 [(v1.1.2)](https://github.com/risc0/risc0/releases/tag/v1.1.2)
- 🏗️ Circom
- 🏗️ Lambdaworks
- 🏗️ Kimchi
Expand Down
14 changes: 7 additions & 7 deletions docs/3_guides/0_submitting_proofs.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ The following is the list of the verifiers currently supported by Aligned:

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

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

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

### SP1 proof

The current SP1 version used in Aligned is v1.0.1.
The current SP1 version used in Aligned is `v3.0.0`.

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

Expand Down Expand Up @@ -149,7 +149,7 @@ aligned submit \

### Risc0 proof

The current Risc0 version used in Aligned is v1.0.1.
The current Risc0 version used in Aligned is `v1.1.2`.

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

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

**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.
**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.

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`:
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`:

```toml
risc0-zkvm = { git = "https://github.com/risc0/risc0", tag = "v1.0.1", default-features = false, features = [
risc0-zkvm = { git = "https://github.com/risc0/risc0", tag = "v1.1.2", default-features = false, features = [
"prove",
] }
```
Expand Down
2 changes: 1 addition & 1 deletion docs/3_guides/4_generating_proofs.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,6 @@ To generate a proof of the execution of your code run the following:
```sh
cargo run --release -- prove-risc0 <PROGRAM_DIRECTORY_PATH> .
```
Make sure to have [Risc0](https://dev.risczero.com/api/zkvm/quickstart#1-install-the-risc-zero-toolchain) installed with version `v1.0.1`
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.

For additional information on using zkRust and using it to submit proofs to Aligned see the [zkRust](https://github.com/yetanotherco/zkRust) Github Repository.
2 changes: 1 addition & 1 deletion docs/3_guides/6_setup_aligned.md
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ make install_aligned_compiling

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

Expand Down
Loading
Loading