Skip to content

Ackee Trident fuzz tests#21

Open
lukacan wants to merge 4 commits into
wormholelabs-xyz:mainfrom
Ackee-Blockchain:main
Open

Ackee Trident fuzz tests#21
lukacan wants to merge 4 commits into
wormholelabs-xyz:mainfrom
Ackee-Blockchain:main

Conversation

@lukacan

@lukacan lukacan commented Oct 2, 2024

Copy link
Copy Markdown

This PR contains fuzz tests for the Solana World ID program and the Solana World ID on-chain template. Additionally, a pipeline to run the desired fuzz tests has been added. The fuzz tests are a result of the work done in parallel with the audit performed by Ackee Blockchain Security.

To enable the execution of fuzz tests, some dependencies had to be added, and AccountsSnapshots needed to be derived for each account context. The generated source code from the AccountsSnapshots is gated with the trident-fuzzing feature, so by default, the source code does not contain the generated parts. This feature flag is activated only for the fuzz tests.

The Trident dependencies are pinned to a specific git commit, as we are currently working on Trident and may introduce breaking changes. Therefore, we have pinned the Trident dependency to this specific commit. Additionally, Trident installed within the GitHub pipeline is also pinned to this commit (the commit is eb8f647104209323b53e3637d3d3c5b7d140d368 ).

In order to run desired fuzz test execute:

# <FUZZ_TARGET> = for example fuzz_0
trident fuzz run <FUZZ_TARGET>

In order to check (and debug) a crashfile

# <FUZZ_TARGET> = for example fuzz_0
trident fuzz run-debug <FUZZ_TARGET> <PATH_TO_CRASHFILE>

For more info check the Trident documentation

@lukacan lukacan force-pushed the main branch 2 times, most recently from fa1ad2d to a38e4f5 Compare October 23, 2024 13:17
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