Skip to content

test: update tests, benches, and examples for spongefish API#18

Closed
shreyas-londhe wants to merge 2 commits intoa16z:mainfrom
shreyas-londhe:feat/spongefish-2-tests
Closed

test: update tests, benches, and examples for spongefish API#18
shreyas-londhe wants to merge 2 commits intoa16z:mainfrom
shreyas-londhe:feat/spongefish-2-tests

Conversation

@shreyas-londhe
Copy link

Summary

Depends on #17.

  • Migrate all tests to use CheckedProverState/CheckedVerifierState + check_eof()
  • Rewrite soundness tests for byte-level NARG tampering
  • Update serialization tests for NARG round-trip
  • Update all 6 examples and bench to use dory_prover()/dory_verifier()

All 78 tests pass.

shreyas-londhe and others added 2 commits March 6, 2026 15:38
Replace Blake2b rolling-hash Fiat-Shamir transcript with spongefish's
duplex-sponge construction. Proofs become opaque NARG byte strings.

- Add spongefish dependency (pinned to commit 45df37a7)
- New ProverTranscript/VerifierTranscript traits for sponge API
- Domain separator with InteractionPattern enforcement via
  CheckedProverState/CheckedVerifierState
- Scoped pattern composition for sub-protocols (sigma1, sigma2,
  reduce rounds, scalar product)
- Remove Proof struct, blake2b transcript, ark_proof, VMVMessage
- Use macros in spongefish_codecs to reduce boilerplate

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Migrate all test files, benchmarks, and examples to use the new
spongefish-based transcript API (CheckedProverState/CheckedVerifierState).

- Add check_eof() after every successful verify() call
- Rewrite soundness tests for byte-level NARG tampering
- Update serialization tests for NARG round-trip
- Update all examples to use dory_prover/dory_verifier

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@shreyas-londhe
Copy link
Author

Folded into #17 — the changes are tightly coupled and can't compile independently.

@shreyas-londhe shreyas-londhe deleted the feat/spongefish-2-tests branch March 6, 2026 15:27
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.

1 participant