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

Precompile Backend #562

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

Conversation

Roee-87
Copy link

@Roee-87 Roee-87 commented Jan 16, 2025

The purpose of this PR is to add code to support precompiles in the zkVM.

if self.precompile_outputs.len() <= internal_address {
self.precompile_outputs.resize(internal_address + 1, 0);
}

self.outputs[internal_address] = value;
Copy link
Author

Choose a reason for hiding this comment

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

The store method only takes one value as an input. Should there be additional Option inputs for precompile input and output?


let mut virtual_trace = vec![];

let precompile_output: &[u32; 16] = &[0u32; 16]; // compute precompile output based on t0 register
Copy link
Author

Choose a reason for hiding this comment

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

Is the precompile output going to be stored in rs1?

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.

1 participant