To call the RankedChoice::rankCandidatesBySig function, voters need to sign a hashed message along with parameters. They must inspect the contract code to determine which TYPEHASH and parameters are used for signing, which complicates the process and increases the risk of mistakes. Adding a getHash function that takes parameters as input and returns the hashed message would solve these issues.
Currently, voters must review the contract code to check the TYPEHASH and parameters. There's also a risk that they could sign a message with the wrong function selector (keccak256("rankCandidates(address[])")), preventing them from voting in the election.
Add a getHash function:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.