lambdaworks icon indicating copy to clipboard operation
lambdaworks copied to clipboard

[WIP]add Poseidon fuzzer

Open jotabulacios opened this issue 1 year ago • 1 comments

Add Poseidon fuzzer

This PR attempt to add a fuzzer for testing Poseidon. I tried implementing the methods used in other fuzzers and benchmarks, but encountered type mismatches among different elements, leading to crashes. Consequently, I attempted to convert them into strings, but it panicked when running because the hashes didn't match The reason may be that Stark252PrimeField is used in Lambdaworks while Pathfinder uses MontFelt

Type of change

  • New feature

Checklist

  • [ ] Linked to Github Issue
  • [ ] Unit tests added
  • [ ] This change requires new documentation.
    • [ ] Documentation has been added/updated.
  • [ ] This change is an Optimization
    • [ ] Benchmarks added/run

jotabulacios avatar Apr 11 '24 19:04 jotabulacios

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 72.28%. Comparing base (1a6d14e) to head (6e635d0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #862   +/-   ##
=======================================
  Coverage   72.28%   72.28%           
=======================================
  Files         149      149           
  Lines       33823    33823           
=======================================
  Hits        24450    24450           
  Misses       9373     9373           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Apr 11 '24 19:04 codecov-commenter