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

Fix: cherry-pick pse pr#29 to let quotient has same number of chunk as it … #34

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

kunxian-xia
Copy link

This pr is a cherry-pick of PR#29 from PSE's repo.

This pr fixed the mismatch issue of quotient polynomial's degree. As we know the quotient polynomial's degree is always of form 2^k in prover's side. The current code just use the max degree of custom gates / permutation / lookup. We should instead use (self.numerator.degree() - 1).next_power_of_two().

Copy link

@zhenfeizhang zhenfeizhang left a comment

Choose a reason for hiding this comment

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

LGTM

@zhenfeizhang zhenfeizhang merged commit a769973 into develop Apr 22, 2024
z2trillion pushed a commit that referenced this pull request Jun 24, 2024
* chore: try pragma solidity 0.8.20 with CI

* chore: make `transcript_initial_state` public

So we can read transcript initial state from `VerifyingKey`

* test: edit range_check example to trigger selector compression

* [feat] add `aggregate_snarks` function (#34)

* feat: add `aggregate_snarks` function

- Previously you could only create a new `builder` pre-populated with
  the witnesses for snark aggregation.
- This is a bad design pattern if you want to make a circuit that
  aggregates and also does other stuff.
- This function will use whatever `SinglePhaseCoreManager` and
  `RangeChip` you provide to prove the snark aggregation.

* chore: add comment

* chore: fix comment

* [feat(sdk)] `aggregate_snarks` returns loaded proof witnesses (#36)

* feat(sdk): `aggregate_snarks` returns loaded proof witnesses

* feat: add `TranscriptObject` to track assigned proof transcript

* chore: Bump version to 0.1.7
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