Skip to content

Feat/ Private input (fixed variant) #625

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

Closed
wants to merge 19 commits into from
Closed

Conversation

naure
Copy link
Contributor

@naure naure commented Nov 22, 2024

This is a working but unsound variant of #622.

  • Works using a fixed table length.
  • Unsound because there are no constraints on the witnessed addresses.

Example test command:

MOCK_PROVING=1 cargo run --package ceno_zkvm --bin e2e --release -- --max-steps=1000 examples/fibonacci.elf --platform=sp1

TODO:

@hero78119
Copy link
Collaborator

👍 will review #622 and see whats going on for the integration test error

@@ -22,7 +22,7 @@ pub const CENO_PLATFORM: Platform = Platform {
rom: 0x2000_0000..0x3000_0000,
ram: 0x8000_0000..0xFFFF_0000,
public_io: 0x3000_1000..0x3000_2000,
private_io: 0x4000_0000..0x5000_0000,
private_io: 0x4000_0000..0x4000_1000,
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting. Why the smaller range?

As mentioned on the other PR: please leave the end of the range fixed (if possible) and vary the start, if you have to.

Copy link
Contributor Author

@naure naure Nov 25, 2024

Choose a reason for hiding this comment

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

So it doesn’t take forever as this variant has a cost proportional to the fixed size.

RowMajorMatrix::<F>::new(final_mem.len().next_power_of_two(), num_witness);
let max_len = DVRAM::max_len(&self.params);
assert!(final_mem.len() <= max_len);
assert!(max_len.is_power_of_two());
Copy link
Contributor

Choose a reason for hiding this comment

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

0 should also be fine?

Base automatically changed from feat/private-input-2 to master November 25, 2024 17:53
@naure
Copy link
Contributor Author

naure commented Nov 25, 2024

#622 was solved with b0aab66

@naure naure closed this Nov 25, 2024
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.

3 participants