Cover photo

The fourth week @ EIF3.0

Hello, I am pleased to report that the Ethereum India Fellowship'23 has been a great success so far. The participants had a wonderful experience, particularly during the fourth week of the program, which was filled with a variety of new challenges and learning opportunities. This week proved to be one of the most interesting and engaging weeks of the fellowship thus far.

Challenge #Dice game

I started this week with the Challenge 3 #Dice game. In this game, I got to learn about how in blockchain we produce random numbers, this game uses a special kind of dice to generate these numbers.

https://speedrunethereum.com/challenge/dice-game

In this, I want to highlight the challenges of using randomness on a public deterministic blockchain. While the block hash is a commonly used method for generating randomness, it is not very secure and can be easily exploited. In this, I provide an example of a contract that uses block hash to create random numbers and explain why this method is weak. Instead, I suggest using stronger forms of randomness, such as commit/reveal schemes, oracles, or VRF from Chainlink, to ensure the security of the blockchain.

https://github.com/Nitesh639/scaffold-eth-challenges/tree/challenge-3-dice-game

Overall, the week was full of great learning, and hope to learn even more exciting things in the future!

Nitesh Kumar Kushwaha

EthIndia Fellow’