Skip to content

[precompile] Add fixed_witness_group() to officially generate fixed witnesses. #975

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 2 commits into from

Conversation

dreamATD
Copy link
Collaborator

@dreamATD dreamATD commented Jul 2, 2025

No description provided.

@dreamATD dreamATD requested a review from hero78119 July 2, 2025 12:44
@dreamATD dreamATD force-pushed the precompile-prepare-fixed branch from db2a564 to 683e192 Compare July 4, 2025 21:50
@spherel spherel requested a review from hero78119 July 5, 2025 10:15
@@ -558,6 +558,20 @@ where
{
type Trace = KeccakTrace;

fn fixed_witness_group(&self) -> RowMajorMatrix<E::BaseField> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

Not this line, but per our offline discussion, to complete functionality, we need expand (i.e. iter().cycle() in rust) fixed poly dynamically via num_instances. I will come back to this part when I make the e2e integration

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Do you mean the returned matrix should be the padded version?

Copy link
Collaborator

Choose a reason for hiding this comment

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

return matrix should be original size for commit into mpcs.
the place of padding should be gkr_witness, or another define another stage when know num_instance at that moment.

Copy link
Collaborator

@hero78119 hero78119 left a comment

Choose a reason for hiding this comment

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

LGTM!

@hero78119
Copy link
Collaborator

I cherry-pick these 2 commit into another PR #980 as I need these fixed input features for integration tests. What do you think we close this PR :) ?

@dreamATD dreamATD force-pushed the precompile-prepare-fixed branch from 683e192 to cc34720 Compare July 9, 2025 16:48
@spherel spherel closed this Jul 9, 2025
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