An open API service indexing awesome lists of open source software.

https://github.com/lambdaclass/aleo_roulette


https://github.com/lambdaclass/aleo_roulette

Last synced: 10 days ago
JSON representation

Awesome Lists containing this project

README

        

# 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](https://nix.dev/tutorials/install-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`