https://github.com/ruslang02/rpshomework
Rock, Paper and Scissors game smart contract for EVM
https://github.com/ruslang02/rpshomework
Last synced: about 2 months ago
JSON representation
Rock, Paper and Scissors game smart contract for EVM
- Host: GitHub
- URL: https://github.com/ruslang02/rpshomework
- Owner: ruslang02
- Created: 2022-12-21T12:02:05.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-12-21T12:10:24.000Z (over 2 years ago)
- Last Synced: 2025-01-13T20:33:40.303Z (3 months ago)
- Language: Solidity
- Size: 88.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RPSHomework
Rock, Paper and Scissors game smart contract
Supports multiple games simultaneuosly.
Deployed on: https://mumbai.polygonscan.com/address/0x59F968a917b5eE54012cCc0A27091E8E7a297406#code
## Why commit-reveal?
It allows for the users of the smart contract to commit a certain value to the blockchain without actually revealing it to other participants by storing its hash. Later, the user can confirm the data they sent is valid by providing the data and salt that was used to generate a hash.
To deploy on Goerli network, run:
```shell
GOERLI_URL=https://goerli.infura.io/v3/... GOERLI_ACCOUNT=0xfd3... npx hardhat run scripts/deploy.ts --network goerli
```