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

Add first sketch of the environment for the serializer circuit #1860

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

dannywillems
Copy link
Member

No description provided.

/// Environment for the serializer interpreter
/// It is parametrized by the number of field elements to be serialized and the
/// field
pub struct Env<const N: usize, Fp> {
Copy link
Member

Choose a reason for hiding this comment

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

This is building witness, right? We have three kind of environments IIRC: witness, constraint, and column (anything else?). I won't block on naming conventions, but WitnessBuilder perhaps would be a more descriptive name?

/// field
pub struct Env<const N: usize, Fp> {
pub step: usize,
pub kimchi_limbs: [[Fp; 3]; N],
Copy link
Member

Choose a reason for hiding this comment

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

I'm also thinking if it's a builder-like struct, then probably the fields should be not arrays but vectors, and we intend to append to them? So far this Env seems to express just one row of our computation -- is that intentional or we want to have multiple rows?..

Copy link
Member Author

Choose a reason for hiding this comment

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

One row of computation.

Base automatically changed from dw/add-trait-interpreter-serialization to master February 28, 2024 14:12
@dannywillems dannywillems merged commit a26f420 into master Feb 28, 2024
4 checks passed
@dannywillems dannywillems deleted the dw/serializer-struct-env branch February 28, 2024 14:13
@dannywillems dannywillems self-assigned this Mar 7, 2024
@dannywillems dannywillems added the enhancement New feature or request label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants