Skip to content

hackingdecentralized/blackjack-SGX-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blackjack Enclave Challenge

This repo contains a faulty or poorly designed blackjack game with a fatal flaw. You should be able to up your chances of beating our sophisticated AI dealer by modifying non-enclave files (i.e. not anything in server/enclave).

In order to prove to another party that you successfully beat the challenge you should provide the generated by the server in server/output_data. These files should be (gameswon.txt, public_key.pem, report.data, signature.data)

Prerequesits

Server

No additional setup required. All dependecies are provided.

Client

The main client you will modify to finish the task is the CLI client (cli.py), but we also provide a GUI client (gui.py) for your entertainment.

  • No additional setup required for the CLI client.
  • To run the GUI client, refer to gui-README.md.

Build and run server

cd server
make build
make runsim

Python client

Connect to the blackjack server using either the CLI interface

cd client
python3 cli.py

or the GUI interface (additional setup required; see GUI-readme.md):

cd client
python3.13 gui.py netid server-ip your-assigned-port

Verifying game results

Assuming you have gracefully exited the server processes. Once you have finished playing you can verify the results of the game.

cd server
make verifysim

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors