/blackzack

Zero Knowledge BlackJack

Primary LanguageShellApache License 2.0Apache-2.0

BlackZK

Demo

A simple Zero Knowledge Blackjack app built on top of Aleo using SnarkVM.

Prerequisites

Playing the game

  1. Clone & cd into the repo
git clone https://github.com/ShubhamPalriwala/blackzack.git
cd blackzack
  1. Give permissions to the script
chmod +x ./blackzk.sh
  1. Run the script
./blackzk.sh

Build & Verify

snarkvm build

Run

snarkvm run blackzk <aleo-address> <user-score>u8 <bet-amount>u8 <dealer-score>u8

Example: snarkvm execute blackzk aleo1vwcvaf83rzsv29s02zk8zgp4k4x8uxkqd0rlqpl9qvynyzq3d58qysas9a 20u8 100u8 10u8