Skip to content
/ zkpoker Public template
forked from scaffold-eth/scaffold-eth

πŸ— forkable Ethereum dev stack focused on fast product iterations

License

Notifications You must be signed in to change notification settings

AbbyLuHui/zkpoker

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

zk-poker (most simplified version)

game rules

step 1: player draws a random card and keeps it secret

step 2: player zkproves whether or not the secret number is greater than or less than the block hash of the previous block

πŸ„β€β™‚οΈ Quick Start

Prerequisites: Node plus Yarn and Git

clone/fork πŸ— scaffold-eth:

git clone https://github.com/austintgriffith/scaffold-eth.git

install and start your πŸ‘·β€ Hardhat chain:

cd scaffold-eth
yarn install
yarn chain

in a second terminal window, start your πŸ“± frontend:

cd scaffold-eth
yarn start

in a third terminal window, πŸ›° deploy your contract:

cd scaffold-eth
yarn deploy

About

πŸ— forkable Ethereum dev stack focused on fast product iterations

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 91.6%
  • Shell 4.7%
  • Dockerfile 1.3%
  • HTML 1.0%
  • TypeScript 0.5%
  • Less 0.5%
  • Other 0.4%