-
Notifications
You must be signed in to change notification settings - Fork 188
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
base: main
Are you sure you want to change the base?
Precompile Backend #562
Conversation
if self.precompile_outputs.len() <= internal_address { | ||
self.precompile_outputs.resize(internal_address + 1, 0); | ||
} | ||
|
||
self.outputs[internal_address] = value; |
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.
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 |
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.
Is the precompile output going to be stored in rs1?
The purpose of this PR is to add code to support precompiles in the zkVM.