-
Notifications
You must be signed in to change notification settings - Fork 335
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
Adjust image_id to be the hash of (merkle_root, pc) #566
Conversation
The check for exit_code is failing and I plan to fix this soon. But I wanted to get eyes on this in the meantime. |
Benchmark for Linux-cuda
Benchmark for Linux-default 60b0060Click to hide benchmark
Benchmark for macOS-default 60b0060Click to hide benchmark
Benchmark for macOS-metal
|
Benchmark for Linux-cuda
Benchmark for Linux-default 5ce76f0Click to hide benchmark
Benchmark for macOS-default 5ce76f0Click to hide benchmark
Benchmark for macOS-metal 5ce76f0Click to hide benchmark
|
@@ -316,7 +318,7 @@ impl<'a> Executor<'a> { | |||
} | |||
|
|||
fn advance(&mut self, opcode: OpCode, op_result: OpCodeResult) -> Option<ExitCode> { | |||
log::debug!( | |||
log::trace!( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! I just hit this and thought it should be trace
|
||
/// Compute and return the ImageID of the given `(merkle_root, pc)` pair. | ||
pub fn compute_image_id(merkle_root: &Digest, pc: u32) -> Digest { | ||
use risc0_zkp::core::{digest::DIGEST_WORDS, hash::sha::Sha256}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I generally think we should avoid in-function imports because it can be hard to track down import scoping when introducing new feature flags. But its only a small nit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, but in this particular case, I couldn't figure out how to get it to work because the rest of the file needs Sha256
but is a different trait with the same name.
No description provided.