Skip to content

Conversation

@Chausseaumoine
Copy link
Contributor

This PR introduces a set of robustness tests to ensure the verifier rejects tampered or invalid proofs.

It covers:

  • bit-level mutations (bit flips, byte corruption, trailing bytes),
  • incorrect witness substitutions

Apply these to DLog, Pedersen with both BLS and Ristretto proofs.

@Chausseaumoine Chausseaumoine changed the title Add robustness tests for proof tampering and malformed encodings #55 Add robustness tests for proof tampering and malformed encodings Jul 7, 2025
@mmaker
Copy link
Collaborator

mmaker commented Jul 15, 2025

@Chausseaumoine can you please update the PR with an auxiliary function and use type generics instead of duplicated code?

GOURIOU Lénaïck added 5 commits July 20, 2025 17:03
@mmaker mmaker force-pushed the test/robustness branch from 96f8901 to d3d5771 Compare July 21, 2025 00:03
mmaker added a commit that referenced this pull request Jul 21, 2025
This is part of #58.

Co-Authored-By: =?UTF-8?q?GOURIOU=20L=C3=A9na=C3=AFck?= <[email protected]>
@mmaker mmaker force-pushed the main branch 2 times, most recently from faebdc6 to a8e5a27 Compare July 24, 2025 22:05
mmaker added a commit that referenced this pull request Jul 25, 2025
This file is meant to check for edge cases in the instance as considered "valid"
and in the proof as to be parsed and verified correctly.
Related to PR #58.

Co-Authored-By: GOURIOU <[email protected]>
@mmaker
Copy link
Collaborator

mmaker commented Jul 25, 2025

@Chausseaumoine: I created a test file that is just focused on validation criterias for the zkproof. Can you please double-check I'm not forgetting anything?

@mmaker mmaker closed this Jul 25, 2025
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