We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem: https://twitter.com/PhABCD/status/1129987674213945344
Solution: Implement a commit reveal schema:
def submitSolution(_solutionHash: bytes32) -> uint256: self.submittedSolutions[msg.sender] = _solutionHash def revealSolution(_x1: unit256, _x2: uint256, _salt: string[16]) -> uint256: assert self.submittedSolutions[msg.sender] == keccak(_x1 + _x2 + _salt) newSolution: uint256 newSolution = self._calculateNewSolution(_x1, _x2) if self.currentBestSolution < newSolution: self.self.currentBestSolution = newSolution self.addressOfWinner = msg.sender
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem:
https://twitter.com/PhABCD/status/1129987674213945344
Solution:
Implement a commit reveal schema:
The text was updated successfully, but these errors were encountered: