Feat : Added parameter selection logic (Part 3)#9
Open
ocdbytes wants to merge 31 commits into
Open
Conversation
…dated protocols for optimal parameter selection
Bisht13
requested changes
May 19, 2026
| assert!(matches!(config.mode, code_switch::CodeSwitchMode::Standard)); | ||
| } | ||
|
|
||
| /// Placeholder mask-oracle list size for the smoke test. Pow2 keeps |
Collaborator
There was a problem hiding this comment.
prove() mutates the covector/state transition, but verify() only returns the target commitment. Please return structured verifier output containing the updated claim/state needed for composition.
Owner
Author
There was a problem hiding this comment.
Already done in the protocol wiring PR
…roof size increase but code simple
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.
Introduces protocols/params/ — derives all per-sub-protocol Configs from one SecuritySpec + TuningSpec. Entry point: ProtocolConfig::derive(spec, tuning) returns a validated plan covering
every round (sumcheck + code-switch, with a per-round mask oracle in ZK) plus the basecase tail. PoW is wired into every FS-bound soundness slot; HVZK privacy error is tracked separately via
privacy_error_bits().
What's in this PR
protocols/params/:
witness, tagged newtypes (OodSampleBudget, MaskCodeMessageLen, LogInvRate, ListSize).
oracle (C_zk + mask-proximity, Construction 9.7).
irs_commit (RS mask sized at in_domain + t_ood per Construction 9.7 / Definition 3.16 / Proposition 3.19). sumcheck::solve and code_switch::solve share the params::SolveMode { Standard,
ZeroKnowledge { mask_oracle } } enum.
References
Next
Protocol wiring.