DUSKLINGS
1 / 14

The answer

Lines to add are green; lines to remove are red.


    

Zero-knowledge circuits

Secret stats

Write dusk-plonk circuits that prove a Duskling's power without revealing its stats, then that it's at least 50. Each check makes a real PLONK proof.

Lesson 1: Secret stats

  1. Show nothing, prove everything
  2. Private inputs
  3. An addition gate
  4. The claimed power
  5. Tie it together
  6. Show the verifier the power
  7. Prove your Duskling's power

Lesson 2: The arena pass

  1. Fifty or more
  2. Power goes private
  3. A helper witness
  4. Check the helper
  5. Keep slack small
  6. Your arena pass

All paths