Lottery
Sample Lottery App on Aztec network Written in Noir, with pseudo randomness
Screenshots



Problem Statement
It is a simple lottery smart contract written in the Noir language. A number of users buy tickets (for free) to enter the game, and later the Admin can choose the winner pseudo-randomly. When the admin calls the chooseWinner function with a random number, the winner is chosen with the randomNumbeArg % numberUsers calculation.
Solution
We used the Noir language to write the smart contract and were able to deploy and test it on the Aztec sandbox. It was a good opportunity to give Noir a try, to learn about ZK, and also to learn about the Aztec network's ecosystem. There was nothing too hacky about our project because it's just a simple Lottery App that consists of public functions. But it was a good stepping stone for us to move further in our Noir journey.
Hackathon
Circuit Breaker
2024
Contributors
- codinghistorian
16 contributions
- Blockchain-Oracle
11 contributions