Skip to content

A blockchain based rock paper scissors game that uses zero knowledge proofs.

License

Notifications You must be signed in to change notification settings

KaneRodriguez/zkrps

Repository files navigation

Rock Paper Scissors

Templated from Scaffold-Eth Typescript

Typescript

This was the typescript repo of scaffold.eth. Check out the directories:

packages/vite-app-ts/
packages/hardhat-ts/

Quick Start

Running the app

  1. install dependencies

    yarn install
  2. start a hardhat node

    yarn chain
  3. run the app, you'll need to open a new command prompt

    yarn contracts:build
    yarn deploy
    yarn start

Overview

Everything you need to build on Ethereum! 🚀

🧪 Quickly experiment with Solidity using a frontend that adapts to your smart contract.

Building on scaffold-eth-typescript

🔏 Edit your smart contracts in packages/hardhat-ts/contracts

📝 Edit your frontend in packages/vite-app-ts/src

💼 Edit your deployment scripts in packages/hardhat-ts/deploy

📱 Open http://localhost:3000 to see the app

Installing Dependencies

Node Version Manager (nvm)

touch ~/.bash_profile
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
exec $SHELL
source ~/.bash_profile
nvm --version

Node Version 14

nvm install 14

Yarn

curl -o- -L https://yarnpkg.com/install.sh | bash
exec $SHELL

Compile Circuits

  1. Run ceremony
./scripts/ptau.sh
  1. Setup circom
./scripts/setup_circom.sh
  1. Compile circuit
./scripts/circuits.sh
  1. (optional) Generate a proof
./scripts/generate_proof.sh

About

A blockchain based rock paper scissors game that uses zero knowledge proofs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published