Program keys and certificates

Status: experimental, and not published yet.

A certificate is a run of the virtual machine, proved step by step with the sumcheck back end, in a file anyone can check without learning the program.

Program keys

A program key (.zkey) names what was run:

  • the commitments to the program and to its starting memory, made once with blinds from a seed;
  • the starting state, and how to read a step's output word;
  • the seed itself, if it's public, so that anyone with the program can rebuild the key.

The key's hash is the program's id. A publisher may sign the id.

Certificates

A certificate (.zcert) holds:

  1. a header: the program id, the claimant, a nonce for the run, the time and a beacon, then the key, if it's embedded;
  2. a record for each step, as each step is proved;
  3. a seal.

Every step's proof starts from the header's hash, so a certificate can't be passed off as another claimant's. A step's starting and ending states are committed, not shown: a verifier learns only each step's output word.

Integers are little-endian. A field element is its canonical 32-byte encoding, and a point its 32-byte compressed one. A reader refuses any other encoding.