demodirectory includes a Cloudflare Worker that acts as a server-side witness (
demo/witness) and a front-end UI for interacting with the witness (
demo/dapp). Installation and usage instructions are found in those respective directories, but the high-level overview is given here.
/statement, where the client is expected to post a struct that implements
Statementand then receives the generated statement from the witness and
/witnesswhere a struct that implements
Proofis posted, and the witness uses its generator to produce a VC (assuming all the details check out).