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

First Release #1

Merged
merged 48 commits into from
Jul 27, 2021
Merged

First Release #1

merged 48 commits into from
Jul 27, 2021

Conversation

tsunrise
Copy link
Member

@tsunrise tsunrise commented Jun 8, 2021

Description

Feature included in first release:

  • DirectLDT and its constraints
  • FRI protocol and constraints of verifier

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (master)
  • Linked to Github issue with discussion and accepted design OR have an explanation in the PR that describes this work.
  • Wrote unit tests
  • Updated relevant documentation in the code
  • Added a relevant changelog entry to the Pending section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

@tsunrise tsunrise requested a review from ValarDragon June 8, 2021 03:04
src/domain/mod.rs Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
src/direct/mod.rs Outdated Show resolved Hide resolved
Comment on lines +15 to +24
/// Given domain as `<g>`, `CosetOfDomain` represents `h<g>`
///
/// Constraint equivalent is in `r1cs_std::poly::domain`.
#[derive(Clone, Copy, Eq, PartialEq, Debug)]
pub struct Radix2CosetDomain<F: PrimeField> {
/// A non-coset radix 2 domain: `<g>`
pub base_domain: Radix2EvaluationDomain<F>,
/// offset `h`
pub offset: F,
}
Copy link
Member

Choose a reason for hiding this comment

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

This exists in r1cs-std now, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope... r1cs-std contains the constraint code, but this one is native. (The reason I defined this is that coset domain is not in ark-poly yet. If coset domain is used elsewhere, I can move it to ark-poly)

Copy link
Member

Choose a reason for hiding this comment

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

Oh completely missed that this is native. The difference from the coset_* operations on the existing EvaluationDomains is that this allows specifying the choice of offset for the coset, right? If so, I think it's useful to have in ark-poly. I think the approach in arkworks-rs/algebra#88 (comment) makes sense

Copy link
Member Author

@tsunrise tsunrise Jul 16, 2021

Choose a reason for hiding this comment

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

Exactly. It Sounds good! I may make a PR after I finished up BCS, but if anyone have time go ahead. (Until then I will keep this impl in ldt)

Copy link
Member Author

@tsunrise tsunrise left a comment

Choose a reason for hiding this comment

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

Thanks for review!

README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
src/direct/constraints.rs Outdated Show resolved Hide resolved
src/direct/constraints.rs Outdated Show resolved Hide resolved
src/direct/mod.rs Outdated Show resolved Hide resolved
src/fri/test.rs Outdated Show resolved Hide resolved
src/fri/prover.rs Outdated Show resolved Hide resolved
src/domain/mod.rs Outdated Show resolved Hide resolved
@ValarDragon
Copy link
Member

ValarDragon commented Jul 21, 2021

I think we should also have an issue detailing that we need to make an LDT trait, and LDT Gadget trait.

I think its fine to not block making the repo public on this, as the exact trait API will likely be informed by your bcs work

src/direct/mod.rs Outdated Show resolved Hide resolved
@tsunrise tsunrise merged commit 55cfdd1 into main Jul 27, 2021
@tsunrise tsunrise deleted the experimental branch August 21, 2021 23:13
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