Add optional proof-of-work grinding plumbing - #210
Open
latifkasuli wants to merge 2 commits into
Open
Conversation
latifkasuli
marked this pull request as ready for review
June 10, 2026 11:05
latifkasuli
requested review from
ElijahVlasov,
albert-garreta,
frozenspider and
osdnk
as code owners
June 10, 2026 11:05
This was referenced Jun 10, 2026
latifkasuli
force-pushed
the
feat/pow-grinding
branch
from
June 12, 2026 09:29
f2118d6 to
86c339e
Compare
latifkasuli
force-pushed
the
feat/pow-grinding
branch
from
July 19, 2026 03:01
86c339e to
ef60f5f
Compare
latifkasuli
marked this pull request as draft
July 19, 2026 03:02
latifkasuli
force-pushed
the
feat/pow-grinding
branch
from
July 29, 2026 17:19
ef60f5f to
81dab59
Compare
latifkasuli
force-pushed
the
feat/pow-grinding
branch
from
August 13, 2026 10:17
81dab59 to
02589a6
Compare
latifkasuli
force-pushed
the
feat/pow-grinding
branch
from
August 13, 2026 10:48
02589a6 to
18d2ec5
Compare
latifkasuli
marked this pull request as ready for review
August 13, 2026 10:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goes towards #149.
Reworked on top of #231. The previous combined-row binding commit was dropped because transcript reads and writes are now absorbed unconditionally.
This adds optional proof-of-work immediately before the Zip+ column-opening challenges:
seed || nonce_le || 0^24.combined_rowand before the nonce enters the transcript. The prover then searches and writes the nonce; the verifier reads and checks it. Normal transcript IO is therefore the nonce's only absorption.ZipTypes::GRINDING_BITS, defaulting to0. No production or benchmark configuration enables it, so the existing proof format and challenge schedule are unchanged by default.This PR does not reduce
NUM_COLUMN_OPENINGSor claim soundness credit for grinding. That requires a reviewed protocol argument isolating the protected query term. The enabled test configuration retains all 100 openings and adds exactly oneu64nonce.Tests cover stable hash vectors, sequential/parallel determinism, search rollover, the zero-bit no-op, invalid configurations, missing and invalid nonces, proof-size accounting, end-to-end verification, and nonce tampering. The full
.githooks/pre-pushcheck passes.