Skip to article
CogniTech.Docs

Zero-knowledge proofs

Local Groth16 proving, Poseidon note commitments, and production artifact integrity.

On this page

Commitment and witness roles

A commitment binds a note to protocol data without publishing its private secret. Gloam’s note implementation uses Poseidon to derive commitments and nullifiers. A nullifier is revealed for a spend so the pool can reject reuse. A membership proof associates the consumed note with an accepted Merkle root. A witness contains private note material and path data needed to produce the proof; the contract checks the proof and its operation-specific public inputs.

The exact public outputs vary by circuit. A transfer’s submitted intent includes proof, root, nullifier, and output commitments. An unshield additionally binds public withdrawal data. This description follows the builders and the application’s calldata checks rather than assuming specific unverified circuit constraints.

Browser proving

The app uses production shield, unshield, and transfer artifacts. The proof loader fetches WASM and proving-key bytes and verifies their SHA-256 hashes against the SDK’s production artifact manifest. SnarkJS-backed Groth16 proving runs in a browser worker where available. A worker that cannot start can fall back to local main-thread proving. Artifact failure, integrity mismatch, or timeout blocks that operation.

Proof boundary
  1. Private note and witness
  2. production circuit in browser
  3. proof and public inputs
  4. pool verifier
  1. SDK manifest
  2. SHA-256 verification
  3. local proving artifacts

There is no live CogniTech selective-disclosure proof product. The homepage illustration explains an idea; it does not create a cryptographic proof.

See Gloam SDK and private notes.