Skip to content

fix: correct response range bound in Paillier-DL ZK verification - #136

Merged
hsiuhsiu merged 1 commit into
masterfrom
fix/pdl-response-range-bound
Aug 31, 2026
Merged

fix: correct response range bound in Paillier-DL ZK verification#136
hsiuhsiu merged 1 commit into
masterfrom
fix/pdl-response-range-bound

Conversation

@hsiuhsiu

Copy link
Copy Markdown
Contributor

The upper bound for the response z was computed as (q^2 + 1) * 2^SEC_P_STAT, which does not match the intended range. Use q^2 * (2^SEC_P_STAT + 1) so the check_right_open_range bound reflects the correct soundness range.

Regenerate the accompanying spec/theory PDFs, which carry the following documentation updates (per each document's version history):

  • zk-proofs-spec: updated Fischlin protocols, ElGamal terminology, and verification checks; removed the dangling zk-proofs-macros.pdf dependency
  • zk-proofs-theory: corrected Batch-DL transcript hashing and updated the Valid-Paillier and PDL analyses
  • basic-primitives-spec/theory: added hybrid PKE via KEM/DEM
  • ecdsa-2pc-spec: fixed centered rounding for s' and completed the optional signing-proof flow
  • ec-dkg-spec: corrected threshold-share validation and updated dependencies
  • schnorr-spec: corrected the two-party signing figure and clarified the multiparty signing API and output receiver
  • constant-time: clarified masking and modular-inversion behavior and corrected the Secure Usage link

These updates resolve all currently open issues:

Fixes #7
Fixes #62
Fixes #133
Fixes #134

The upper bound for the response z was computed as (q^2 + 1) * 2^SEC_P_STAT,
which does not match the intended range. Use q^2 * (2^SEC_P_STAT + 1) so the
check_right_open_range bound reflects the correct soundness range.

Regenerate the accompanying spec/theory PDFs, which carry the following
documentation updates (per each document's version history):
- zk-proofs-spec: updated Fischlin protocols, ElGamal terminology, and
  verification checks; removed the dangling zk-proofs-macros.pdf dependency
- zk-proofs-theory: corrected Batch-DL transcript hashing and updated the
  Valid-Paillier and PDL analyses
- basic-primitives-spec/theory: added hybrid PKE via KEM/DEM
- ecdsa-2pc-spec: fixed centered rounding for s' and completed the optional
  signing-proof flow
- ec-dkg-spec: corrected threshold-share validation and updated dependencies
- schnorr-spec: corrected the two-party signing figure and clarified the
  multiparty signing API and output receiver
- constant-time: clarified masking and modular-inversion behavior and
  corrected the Secure Usage link

These updates resolve all currently open issues:

Fixes #7
Fixes #62
Fixes #133
Fixes #134
@cb-heimdall

cb-heimdall commented Aug 31, 2026

Copy link
Copy Markdown

✅ Heimdall Review Status

Requirement Status More Info
Reviews 2/2
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 2
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 1
Global minimum 0
Max 2
2
1 if commit is unverified 0
Sum 2
CODEOWNERS ✅ None for this change

@hsiuhsiu
hsiuhsiu marked this pull request as ready for review August 31, 2026 14:34

@valery-osheter-cb valery-osheter-cb left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Approved

@hsiuhsiu
hsiuhsiu merged commit 2f2c4f1 into master Aug 31, 2026
9 checks passed
@hsiuhsiu
hsiuhsiu deleted the fix/pdl-response-range-bound branch August 31, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants