https://github.com/lambdaclass/aleo_roulette
https://github.com/lambdaclass/aleo_roulette
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/lambdaclass/aleo_roulette
- Owner: lambdaclass
- License: mit
- Created: 2022-07-01T19:15:51.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-04T18:52:43.000Z (over 2 years ago)
- Last Synced: 2025-03-24T01:23:53.213Z (27 days ago)
- Language: Elixir
- Size: 75.3 MB
- Stars: 7
- Watchers: 6
- Forks: 7
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-aleo - Roulette - A Roulette web app built on Aleo (Applications / Gaming)
- awesome-aleo - Roulette - A Roulette web app built on Aleo (Applications / Gaming)
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`