[Feature]: Add Differential Tests for _keccak.rs_ #503
Labels
effort: medium
Default level of effort.
priority: 0
Nice-to-have. Willing to ship without this.
type: test
Changes to the testing suite.
Milestone
What is the feature you would like to see?
Towards #520
See how Solidity's Foundry defines differential testing.
Differential tests would compare the results of our keccak logic implementation against some third-party implementation. This would help pinpoint any latent issues, bugs etc.
One possible candidate for comparison is keccak.
Note
Even though this is just a wrapper around tiny-keccak, considering the fact this library has very few tests, it's worth adding tests on our side.
Alternatively, one can create a PR adding tests to tiny-keccak itself, which should accomplish the same thing. This is arguably less optimal, because in the case we decide to switch implementations in the future to some other keccak crate, we'd still have our existing testing suite.
Contribution Guidelines
The text was updated successfully, but these errors were encountered: