feat: add fuzzing infrastructure and tests#864
Open
a1denvalu3 wants to merge 12 commits intocashubtc:mainfrom
Open
feat: add fuzzing infrastructure and tests#864a1denvalu3 wants to merge 12 commits intocashubtc:mainfrom
a1denvalu3 wants to merge 12 commits intocashubtc:mainfrom
Conversation
added 2 commits
January 11, 2026 13:53
be74085 to
efc98b6
Compare
added 5 commits
January 11, 2026 16:15
* add makefile target for fuzzers
KvngMikey
approved these changes
Jan 16, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #864 +/- ##
==========================================
- Coverage 64.71% 61.52% -3.20%
==========================================
Files 91 90 -1
Lines 10900 10838 -62
==========================================
- Hits 7054 6668 -386
- Misses 3846 4170 +324 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Introduces property-based fuzz testing using
hypothesisto improve the robustness of core data models and the Mint API. This ensures data integrity during serialization and verifies that the API handles unexpected inputs gracefully without crashing.Changes
Core Fuzzing (
tests/fuzz/test_fuzz_core.py):Secret,BlindedMessage,Proof,MintQuote,MeltQuote, andKeysetmodels.TokenV3toTokenV4conversion integrity.API Fuzzing (
tests/fuzz/test_fuzz_mint_api.py):/mint,/melt,/swap,/checkstate,/restore.