This game tests your geography knowledge about countries and their corresponding capitals. A score between 0 and 5 is assigned to each trial.
The purpose of the game's website is to showcase generation of a zkPass token based on some "real" Web2 information (your score).
- Run the zkPass server.
- Use section Setup zkPass of zkPass DApp to execute initial setup.
- Start the Capital Cities Quiz website locally with
npm run dev- Press
Generate Questionsto start a new quiz. Answer with the number corresponding to the correct capital city. - Press
Submitto reveal your score.
To mint the zkPass token that captures ("intercepts") your score, follow these steps:
- Make sure you have entered the address receiving the minted token at the bottom of the page. (Press
Selfto automatically enter your own address.) - Press
ZkPass Mintto mint the zkPass token.
Notes:
- The zkPass result is the bytestring corresponding to your score.
- Token name is the hash of the zkPass result.
- The minted token can be used to claim a reward by burning the token using the zkPass DApp. For burning to succeed, a reward needs to have been posted at the
ForwardingMintaddress.- Use section Transfer zkPass Reward of the DApp to post a reward.
- Use section Burn zkPass Token & get reward to burn token. (Token field needs to be entered in the form policyID.tokenName.)