Skip to content

lambdaclass/aleo_roulette

Repository files navigation

Aleo Roulette

Roulette web app with ZKP.

Disclaimer

This is a toy example, the random number is generated in a deterministic way through a seed. The seed is equal to the roulette spin counter number.

The random number is generated by applying the Poseidon Hash Function available in Aleo Instructions to the seed and then applying mod(36) to the last 6 bits. This mod operation is performed outside the circuits and then verified within them. In a future version, the mod operation will be calculated by an Aleo Instruction integrally.

Up & Running

To use the project you need to have nix installed.

To enter the nix-shell, type:

nix-shell

If it's the first time using this app run:

make init

To build the project:

make build

To run the API:

make run_api

To run the Frontend:

make run_front

if you need to update the aleo to the latest code available on the main branch of its repo:

make update_aleo

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published