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: switch between mock and prod circuits #158

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

ninabarbakadze
Copy link
Member

@ninabarbakadze ninabarbakadze commented Feb 14, 2025

Closes #138
Closes #157

Copy link
Collaborator

@rootulp rootulp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry ik this is WIP, just excited for this to merge :) great work

Comment on lines 73 to 84

If you update the circuits please regenerate the `elf` files:

```shell
~/.sp1/bin/cargo-prove prove build --elf-name mock-membership-elf
```
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️ thanks for removing this

Comment on lines 14 to 18
const ELF: &'static [u8] = include_bytes!("../../elf/mock-update-client-elf");
const ELF: &[u8] = include_elf!("mock-membership");
}

impl SP1Program for MembershipProgram {
const ELF: &'static [u8] = include_bytes!("../../elf/mock-membership-elf");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment on lines +5 to +8
members = [
"../programs/sp1/mock-membership",
"../programs/sp1/mock-update-client",
]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[question] what does including these programs as members of the celestia-prover crate do? They're already members of the root level workspace here. I don't quite understand when/why to include them as members of this crate.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think if you want to share the packages that are defined in the parent package is one of the reasons. I don't fully understand either. I was trying to debug compiling the mock programs and was trying to see if any of these would help.

@@ -1,5 +1,5 @@
#![doc = include_str!("../../README.md")]
#![deny(clippy::nursery, clippy::pedantic, warnings, missing_docs)]

pub mod programs;
pub mod programs;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pub mod programs;
pub mod programs;

@rootulp
Copy link
Collaborator

rootulp commented Feb 15, 2025

Note to self, if this merges after https://github.com/celestiaorg/celestia-zkevm-ibc-demo/pull/153/files#diff-3e3eeb59d344e85d64268133b460af890852ed1aa94c6e049556a9dc3c2aa60cR74-R83 then we can remove those lines from the README b/c this PR auto rebuilds the ELFs

@ninabarbakadze ninabarbakadze force-pushed the nina/switch-between-circuits branch from 87f5beb to d59d361 Compare February 24, 2025 14:19
Copy link
Member Author

@ninabarbakadze ninabarbakadze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still struggling to make celestia prover compile, due to my lack of knowledge of lifetimes and borrowed variables in rust

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants