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 fixed columns to uni-stark #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Schaeff
Copy link
Collaborator

@Schaeff Schaeff commented Jul 7, 2024

No description provided.

@Schaeff Schaeff force-pushed the uni-stark-with-fixed branch 2 times, most recently from 7c5c621 to 7be9b38 Compare July 8, 2024 12:30
Comment on lines 228 to 243
let preprocessed = RowMajorMatrix::new(
iter::empty()
.chain(preprocessed_on_quotient_domain.iter().flat_map(
|preprocessed_on_quotient_domain| {
preprocessed_on_quotient_domain.vertically_packed_row(i_start)
},
))
.chain(preprocessed_on_quotient_domain.iter().flat_map(
|preprocessed_on_quotient_domain| {
preprocessed_on_quotient_domain
.vertically_packed_row(i_start + next_step)
},
))
.collect_vec(),
preprocessed_width,
);

Choose a reason for hiding this comment

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

Suggested change
let preprocessed = RowMajorMatrix::new(
iter::empty()
.chain(preprocessed_on_quotient_domain.iter().flat_map(
|preprocessed_on_quotient_domain| {
preprocessed_on_quotient_domain.vertically_packed_row(i_start)
},
))
.chain(preprocessed_on_quotient_domain.iter().flat_map(
|preprocessed_on_quotient_domain| {
preprocessed_on_quotient_domain
.vertically_packed_row(i_start + next_step)
},
))
.collect_vec(),
preprocessed_width,
);
let preprocessed = RowMajorMatrix::new(
preprocessed_on_quotient_domain
.map(|on_quotient_domain| {
iter::empty()
.chain(on_quotient_domain.vertically_packed_row(i_start))
.chain(on_quotient_domain.vertically_packed_row(i_start + next_step))
.collect_vec()
})
.unwrap_or_default(),
preprocessed_width,
);

How about this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

me gusta

config: &SC,
verifying_key: Option<&StarkVerifyingKey<SC>>,
air: &A,
challenger: &mut SC::Challenger,

Choose a reason for hiding this comment

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

I think the challenger should observe the verification key as well!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good point, I missed that!

Copy link

@georgwiese georgwiese left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants