Skip to content

Allow Hint Space Ids for NativeSumcheck Inputs#31

Merged
kunxian-xia merged 12 commits intofeat/v1.4.1-scroll-extfrom
feat/sumcheck_flex_hints
Feb 9, 2026
Merged

Allow Hint Space Ids for NativeSumcheck Inputs#31
kunxian-xia merged 12 commits intofeat/v1.4.1-scroll-extfrom
feat/sumcheck_flex_hints

Conversation

@darth-cy
Copy link

@darth-cy darth-cy commented Feb 2, 2026

  • This PR extends the NativeSumcheck opcode's ability to accept hint space Ids for its evaluation inputs.
  • The indicator for this mode of operation is added to the context when calling this opcode.
  • Building upon Feat: read prod_evals and logup_evals from hint in sumcheck_layer_eval #30, this PR ensures the read values are written back to default-initialized witness arrays if the evaluations come from hint space.

let num_prod_evals = num_prod_specs * num_layers * 2;
let prod_spec_evals: Array<C, Ext<C::F, C::EF>> = builder.dyn_array(num_prod_evals);
for idx in 0..num_prod_evals {
let e: Ext<C::F, C::EF> = builder.constant(prod_evals[idx]);

Choose a reason for hiding this comment

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

You restored the original test back, it's better to add one more test case to cover the case that evals comes from hint space.

@kunxian-xia kunxian-xia merged commit 8b4c69f into feat/v1.4.1-scroll-ext Feb 9, 2026
1 of 37 checks passed
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.

2 participants