Problem
Hash inputs arrive in varied formats: uppercase hex, leading and trailing whitespace, or mixed case. The validator rejects these even though they represent valid hashes, leading to false validation failures for legitimate callers.
Proposed Solution
Create a HashNormalizationMiddleware inside contract/module/middleware/ that normalises hash input before it reaches validation logic.
Acceptance Criteria
Problem
Hash inputs arrive in varied formats: uppercase hex, leading and trailing whitespace, or mixed case. The validator rejects these even though they represent valid hashes, leading to false validation failures for legitimate callers.
Proposed Solution
Create a HashNormalizationMiddleware inside
contract/module/middleware/that normalises hash input before it reaches validation logic.Acceptance Criteria