Skip to content

zk/dleq: Don't accept trailing data on proof#649

Merged
bwesterb merged 2 commits into
mainfrom
bas/gw27
Jul 15, 2026
Merged

zk/dleq: Don't accept trailing data on proof#649
bwesterb merged 2 commits into
mainfrom
bas/gw27

Conversation

@bwesterb

@bwesterb bwesterb commented Jul 15, 2026

Copy link
Copy Markdown
Member

Somewhat idiosyncratically, and without documenting it, we accepted trailing data when unpacking. That's confusing, so let's be strict going forward.


Open in Devin Review

Somewhat idiosyncratically, and without documenting it, we accepted trailing
data when unpacking.  That's confusing, so let's be strict going forward.
devin-ai-integration[bot]

This comment was marked as resolved.

The strict length check now rejects both short and overlong buffers, so
io.ErrShortBuffer was misleading for trailing data. Return an error that
states the expected and actual lengths.
@bwesterb bwesterb merged commit 95e8049 into main Jul 15, 2026
14 checks passed
@bwesterb bwesterb deleted the bas/gw27 branch July 15, 2026 13:21
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.

2 participants