Root docs
Repository viewer
Legacy docs parity surface
Back to repository viewer
Repository document

ZK Assumption Matrix

zk-assumption-matrix.md

Boundary

This route preserves legacy markdown access inside the Next.js surface. The raw repository file remains authoritative.

Open raw file

ZK Assumption Matrix

This matrix makes the PrivateDAO zk stack reviewable with the same discipline used for the live protocol.

The deployed Solana program is unchanged. These assumptions apply to the additive Circom and Groth16 stack around it.

Layer Matrix

LayerCircuitWhat Is ProvenPublic OutputsPrimary AssumptionsResidual LimitsReplay Boundary
Vote validityprivate_dao_vote_overlayvote is boolean, threshold is met, commitment binding is correctproposalId, daoKey, minWeight, commitment, nullifier, eligibilityHashcircuit correctness, witness correctness, verification key correctness, trusted setup integrityno on-chain verifier yet, transaction timing remains visibleproposal-scoped vote nullifier
Delegation authorizationprivate_dao_delegation_overlaydelegation is active, delegatee binding is correct, delegated weight commitment is validproposalId, daoKey, minWeight, delegationCommitment, delegationNullifier, delegateeBinding, weightCommitmentcircuit correctness, witness correctness, verification key correctness, trusted setup integrityno on-chain delegation-proof enforcement yetproposal-scoped delegation nullifier
Tally integrityprivate_dao_tally_overlaya bounded reveal sample is internally well formed and deterministic weighted totals are consistentproposalId, daoKey, commitment0..1, yesWeightTotal, noWeightTotal, nullifierAccumulatorcircuit correctness, witness correctness, verification key correctness, trusted setup integritysample-based tally proof, not a full hidden on-chain tally replacementpublic accumulator over revealed sample nullifiers

Repository-Level Assumptions

These assumptions apply to the stack as a whole:

  • docs/zk-registry.generated.json matches the actual artifact tree
  • exported verification keys correspond to the tracked circuits
  • recomputed public signals match the committed sample outputs
  • tampered public signals fail verification
  • tampered proof objects fail verification
  • the cryptographic manifest fingerprints the canonical zk review artifacts

Verification Commands

Full proving path:

npm run zk:all

Registry and docs:

npm run build:zk-registry
npm run verify:zk-registry
npm run verify:zk-docs

Consistency and tamper checks:

npm run verify:zk-consistency
npm run verify:zk-negative

Repository-wide gate:

npm run verify:all

Intended Reviewer Interpretation

This matrix does not claim anonymous on-chain execution or finished verifier integration.

It supports a narrower and more defensible claim:

  • the zk stack is real
  • each layer has explicit replay boundaries
  • each layer has documented assumptions and residual limits
  • the repository contains direct commands to test the zk evidence package