project screenshot 1
project screenshot 2
project screenshot 3

Lottery

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

Lottery

Created At

Circuit Breaker

Project Description

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.

How it's Made

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.

background image mobile

Join the mailing list

Get the latest news and updates