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

feat: implement vanishing argument #195

Merged
merged 12 commits into from
Dec 15, 2023
Merged

Conversation

TomTaehoonKim
Copy link
Contributor

Description

This PR implements vanishing argument for both the prover side and the verifier side.
See: https://github.com/kroma-network/halo2/blob/dev/halo2_proofs/src/plonk/vanishing/prover.rs, https://github.com/kroma-network/halo2/blob/dev/halo2_proofs/src/plonk/vanishing/verifier.rs

Note that there is no test for the verifier side and the data integrity test has not been done yet.

@chokobole
Copy link
Contributor

IMO, it's better to change fix(zk): fix wrong dependency to build(zk): fix wrong dependency. What do you think?

@chokobole
Copy link
Contributor

e5eb6c0 should bring changes to lookup_argument_runner_impl.h and permutation_argument_runner_impl.h as well!

@chokobole
Copy link
Contributor

Could you specific Verifier link with permanent one dd0a61d?

@chokobole
Copy link
Contributor

Could you split data structures in dd0a61d like any others?

tachyon/zk/base/entities/prover.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/vanishing/BUILD.bazel Outdated Show resolved Hide resolved
tachyon/zk/plonk/vanishing/BUILD.bazel Outdated Show resolved Hide resolved
tachyon/zk/plonk/vanishing/BUILD.bazel Outdated Show resolved Hide resolved
tachyon/zk/plonk/vanishing/verifier_vanishing_argument.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/vanishing/verifier_vanishing_argument.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/vanishing/verifier_vanishing_argument.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/vanishing/verifier_vanishing_argument.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/vanishing/verifier_vanishing_argument.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/vanishing/verifier_vanishing_argument.h Outdated Show resolved Hide resolved
@TomTaehoonKim TomTaehoonKim force-pushed the feat/implement-vanishing-argument branch 6 times, most recently from 7b8ab2d to a0c5983 Compare December 12, 2023 14:07
@chokobole
Copy link
Contributor

Could you use type alias throughout a0c5983?

tachyon/zk/plonk/vanishing/prover_vanishing_argument.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/vanishing/prover_vanishing_argument.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/vanishing/prover_vanishing_argument.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/vanishing/vanishing_utils.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/vanishing/vanishing_utils.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/vanishing/prover_vanishing_argument.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/vanishing/prover_vanishing_argument.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/vanishing/prover_vanishing_argument.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/vanishing/prover_vanishing_argument.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/vanishing/prover_vanishing_argument.h Outdated Show resolved Hide resolved
@chokobole
Copy link
Contributor

Could you replace all with TakeXXX() in the last commit? Just search "&& {" in zk namespace. There are more to be replaced!

tachyon/zk/base/entities/entity.h Show resolved Hide resolved
tachyon/zk/plonk/vanishing/vanishing_utils.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/vanishing/vanishing_utils.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/vanishing/vanishing_utils.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/vanishing/verifier_vanishing_argument.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/vanishing/vanishing_utils.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/vanishing/vanishing_utils.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/vanishing/vanishing_evaluated.h Outdated Show resolved Hide resolved
@TomTaehoonKim TomTaehoonKim force-pushed the feat/implement-vanishing-argument branch from 73b60da to fb670ea Compare December 14, 2023 12:00
@TomTaehoonKim TomTaehoonKim force-pushed the feat/implement-vanishing-argument branch from fb670ea to faf1510 Compare December 14, 2023 12:50
@TomTaehoonKim TomTaehoonKim force-pushed the feat/implement-vanishing-argument branch from faf1510 to 858b2d8 Compare December 14, 2023 13:31
Copy link
Contributor

@dongchangYoo dongchangYoo left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@chokobole chokobole left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@Insun35 Insun35 left a comment

Choose a reason for hiding this comment

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

LGTM

@Insun35 Insun35 merged commit 761436e into main Dec 15, 2023
3 checks passed
@Insun35 Insun35 deleted the feat/implement-vanishing-argument branch December 15, 2023 01:09
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.

4 participants