feat: config verification circuit [skip-line-limit]#1306
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThis PR introduces configuration updates and verification infrastructure across DKG, threshold, and Greco schemes. Changes include adding new global constants (Q_MOD_T, PK_GENERATION_B_ENC, PLAINTEXT_MODULUS), renaming DKG_SHARE_ENCRYPTION_* to SHARE_ENCRYPTION_*, updating share_decryption notation to per-basis semantics, and adding a comprehensive config verification binary that validates derived values, bounds, and cross-configuration consistency. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
846bbc0 to
12d956b
Compare
881684e to
9b4cf59
Compare
53cce9a to
e521c14
Compare
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
not ready to merge unless I get an answer from @zahrajavar on the Q_MOD_T vs Q_MOD_T_MOD_P |
41b32d6 to
8d406f4
Compare
cf4b82b to
11ebf29
Compare
This PR adds the ConfigVerification circuit, which verifies that all derived configuration parameters are correctly computed from primitive parameters.
Changes:
Added config_verification circuit that validates:
DKG derived values (Q_MOD_T)
DKG bounds (share_encryption)
Threshold derived values (Q_MOD_T, Q_INVERSE_MOD_T)
Threshold bounds (pk_generation, share_decryption)
user_data_encryption bounds
Cross-config consistency between DKG and Threshold configs
It also closes #1265
Follow-up: Issues #1264 and #1305 will be addressed in the next iteration after updating config values.
Summary by CodeRabbit
New Features
Improvements