๐Smart Contract Randomness Mechanism
Last updated
Last updated
For detailed info, kindly visit our Contract Address: 0xAf0a930055aB797e8C4a361eC7c3e99AE56f081c
Chain Partyโs Smart Contract Randomness Mechanism: It works for the random number generation (for Winners & The Chosen One) in PvP Daily Missions.
Requesting Random Numbers:
When a game round needs to end, the system requests a random number to decide Winners and The Chosen One. The game contract sends a signal to start this process.
Generating the Random Number:
The system creates a random number by combining different things: information from the blockchain, private keys, and a few other factors. This number is then hashed and signed to prove itโs valid. By using blockchain data and cryptographic techniques, the system ensures that random numbers can't be predicted and manipulate in advance.
Confirming the Randomness:
The system then sends this random number and a proof (to show the number is fair) back to the game.
The smart contract checks if everything matches to confirm that the random number is correct and hasnโt been tampered with.
Using the Random Number:
Once the random number is confirmed, the game uses it to determine the results of the round. For example, it might decide who the Winner or The Chosen One is based on this number.
Distributing Rewards:
After the results are decided, the system distributes rewards to the players who participated. The rewards are calculated and sent based on the outcome, and players can claim their rewards.
In simple terms, the whole process ensures that the results of the game are fair, with random numbers that are impossible to predict or manipulate, making the game trustworthy for everyone.