Skip to content

feat : cargo-fuzz harness for stealth-batch-sender - #154

Merged
truthixify merged 2 commits into
wraith-protocol:developfrom
Olowodarey:fuzz
Jul 30, 2026
Merged

feat : cargo-fuzz harness for stealth-batch-sender#154
truthixify merged 2 commits into
wraith-protocol:developfrom
Olowodarey:fuzz

Conversation

@Olowodarey

Copy link
Copy Markdown
Contributor

Fuzz harness (stellar/stealth-sender/fuzz/):

  • batch_decode — round-trips arbitrary (often mismatched-length) batches through the same XDR encoding a real contract invocation uses, asserting no drift and no panics. Pure decode-path fuzzing, no contract calls.
  • batch_execute — deploys a real StealthAnnouncer + SAC token, calls batch_send with arbitrary lengths/duplicate recipients/negative-zero-large amounts via try_batch_send, and asserts: success implies matched lengths, exact balance movement per recipient (no overwrites), and event count == batch length; failure implies balances/events are byte-for-byte unchanged (atomicity holds).
  • Both ran clean locally (76k and 7.3k execs/60s, zero crashes), and a minimized seed corpus (217 files, ~888KB) is committed under fuzz/corpus/.

closes #109

@drips-wave

drips-wave Bot commented Jul 30, 2026

Copy link
Copy Markdown

@Olowodarey Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@truthixify
truthixify merged commit d917ca3 into wraith-protocol:develop Jul 30, 2026
8 checks passed
@truthixify

Copy link
Copy Markdown
Contributor

Merged. Fuzz harness for stealth-batch-sender is a solid safety addition, thanks.

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.

cargo-fuzz harness for stealth-batch-sender

2 participants