-
Notifications
You must be signed in to change notification settings - Fork 396
feat(agg-mode): support risc0 stark proofs #1874
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
Changes from 24 commits
3200e0c
2f54502
62bfb60
c475a63
e2dcf30
1c4440b
df1d83a
4bc1a52
56a9d87
6c544d0
b137020
d0a4be6
8309ea8
369cdc6
7720553
ebdc910
1b8873a
01f60f4
20b7d61
454f80c
5e43630
79eb6b3
bd5ad9d
ef2b968
319c112
ac646c6
74f15be
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -151,11 +151,21 @@ anvil_start_with_more_prefunded_accounts: | |
| anvil --load-state contracts/scripts/anvil/state/alignedlayer-deployed-anvil-state.json --block-time 7 -a 2000 | ||
|
|
||
| __AGGREGATION_MODE__: ## ____ | ||
| start_proof_aggregator_local: ## Start the proof aggregator locally using Mock Verifier Contract | ||
| cargo run --manifest-path ./aggregation_mode/Cargo.toml --release -- config-files/config-proof-aggregator-mock.yaml | ||
|
|
||
| start_proof_aggregator_local_with_proving: ## Start the proof aggregator locally using SP1 Verifier Contract | ||
| cargo run --manifest-path ./aggregation_mode/Cargo.toml --release --features prove -- config-files/config-proof-aggregator.yaml | ||
| is_aggregator_set: | ||
| @if [ -z "$(AGGREGATOR)" ]; then \ | ||
| echo "Error: AGGREGATOR is not set. Please provide arg AGGREGATOR='sp1' or 'risc0'."; \ | ||
| exit 1; \ | ||
| fi | ||
|
|
||
| start_proof_aggregator_dev: is_aggregator_set ## Starts proof aggregator with mock proofs (DEV mode) | ||
| RISC0_DEV_MODE=1 cargo run --manifest-path ./aggregation_mode/Cargo.toml --release --features $(AGGREGATOR) -- config-files/config-proof-aggregator-mock.yaml | ||
|
|
||
| start_proof_aggregator: is_aggregator_set ## Starts proof aggregator with proving activated | ||
| cargo run --manifest-path ./aggregation_mode/Cargo.toml --release --features prove,$(AGGREGATOR) -- config-files/config-proof-aggregator.yaml | ||
|
|
||
| start_proof_aggregator_gpu: is_aggregator_set ## Starts proof aggregator with proving + GPU acceleration (CUDA) | ||
| SP1_PROVER=cuda cargo run --manifest-path ./aggregation_mode/Cargo.toml --release --features prove,gpu,$(AGGREGATOR) -- config-files/config-proof-aggregator.yaml | ||
|
|
||
| _AGGREGATOR_: | ||
|
|
||
|
|
@@ -699,11 +709,11 @@ deploy_proof_aggregator: | |
| @. contracts/scripts/.env.$(NETWORK) && . contracts/scripts/deploy_proof_aggregator.sh | ||
|
|
||
| build_aligned_contracts: | ||
| @cd contracts/src/core && forge build | ||
| @cd contracts/src/core && forge build --via-ir | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I had to this flag as the ci would fail otherwise. Here is what it does: https://docs.soliditylang.org/en/latest/ir-breaking-changes.html#solidity-ir-based-codegen-changes. But the TLDR: it uses a newer form of compiling solidity that has very tiny modifications that shouldn't affect us at all. |
||
|
|
||
| show_aligned_error_codes: | ||
| @echo "\nAlignedLayerServiceManager errors:" | ||
| @cd contracts && forge inspect src/core/IAlignedLayerServiceManager.sol:IAlignedLayerServiceManager errors | ||
| @cd contracts && forge inspect src/core/IAligedLayerServiceManager.sol:IAlignedLayerServiceManager errors | ||
|
MarcosNicolau marked this conversation as resolved.
Outdated
|
||
| @echo "\nBatcherPaymentService errors:" | ||
| @cd contracts && forge inspect src/core/BatcherPaymentService.sol:BatcherPaymentService errors | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.