Skip to content

Conversation

@JuArce
Copy link
Collaborator

@JuArce JuArce commented May 6, 2025

Use deterministic build for Risc0

Description

This PR adds deterministic build for Risc0 aggregation mode

How to test

  1. Run anvil
make anvil_start
  1. Run aggregation mode
make start_proof_aggregator_dev AGGREGATOR=risc0
  1. Get the risc0_aggregator_program sha-512
shasum -a 512 aggregation_mode/target/riscv-guest/proof_aggregator/risc0_aggregation_program/riscv32im-risc0-zkvm-elf/docker/risc0_aggregator_program
  1. The output should be the following
c8f5271620f9a483108ad0f0382527f200c8df8a697956341a6b8fe59201512759154d0ef48a98089dd34be72d430f23b4a74474330431d3b16384f56b93d2ff  aggregation_mode/target/riscv-guest/proof_aggregator/risc0_aggregation_program/riscv32im-risc0-zkvm-elf/docker/risc0_aggregator_program

Type of change

  • New feature

Checklist

  • “Hotfix” to testnet, everything else to staging
  • Linked to Github Issue
  • This change depends on code or research by an external entity
    • Acknowledgements were updated to give credit
  • Unit tests added
  • This change requires new documentation.
    • Documentation has been added/updated.
  • This change is an Optimization
    • Benchmarks added/run
  • Has a known issue
  • If your PR changes the Operator compatibility (Ex: Upgrade prover versions)
    • This PR adds compatibility for operator for both versions and do not change batcher/docs/examples
    • This PR updates batcher and docs/examples to the newer version. This requires the operator are already updated to be compatible

@JuArce JuArce changed the title feat(aggregation_mode): use deterministic build for risc0 feat(aggregation_mode): use deterministic build for isc0 May 6, 2025
@JuArce JuArce changed the title feat(aggregation_mode): use deterministic build for isc0 feat(aggregation_mode): use deterministic build for Risc0 May 6, 2025
@JuArce JuArce self-assigned this May 6, 2025
@JuArce JuArce marked this pull request as ready for review May 6, 2025 16:36
@JuArce JuArce linked an issue May 6, 2025 that may be closed by this pull request
@MauroToscano MauroToscano enabled auto-merge May 6, 2025 20:27
@MauroToscano MauroToscano added this pull request to the merge queue May 6, 2025
Merged via the queue into staging with commit 2ff8262 May 6, 2025
3 checks passed
@MauroToscano MauroToscano deleted the 1917-feataggregation_mode-use-deterministic-build-for-risc0 branch May 6, 2025 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(aggregation_mode): use deterministic build for Risc0

4 participants