SilentPay

Next.jsTypeScriptMidnight NetworkZK ProofsPrismaPostgreSQL
SilentPay preview

overview.

Built SilentPay, a privacy-preserving payroll platform on the Midnight Network that lets employers run payroll and employees claim payments without publishing individual salary amounts on-chain. Zero-knowledge proofs verify each claim while keeping allocations confidential.

about.

SilentPay solves the problem of transparent blockchains exposing sensitive salary data. Employers create payrolls with private allocations, and employees prove eligibility through ZK circuits without revealing amounts. The platform includes a full dashboard for managing employees, creating payrolls, and tracking claims.

technical implementation.

ZK Circuit Architecture

Built Compact smart contracts with createPayroll and claimPayment circuits. The claimPayment circuit proves an eligible allocation exists, marks it claimed, and increments the public counter without disclosing the amount.

Privacy Model

Separated public ledger state from private witness data. Public: payroll ID, employer address, month, employee count. Private: allocation amounts, eligibility details. Observers can see payroll metadata but never individual salaries.

key features.

  • Privacy-preserving payroll with private allocations
  • Zero-knowledge claim flow proving eligibility without revealing amounts
  • Lace wallet integration on Midnight networks
  • Full dashboard for employers and employees
  • Multiple network support (Preview, Preprod, local devnet)
  • 42 automated tests across contract, validation, and E2E

screenshots.

SilentPay employer dashboard

Manage employees and create payrolls with private allocations.

SilentPay employee claim

Employees claim payments using ZK proofs without revealing amounts.

challenges & solutions.

Challenge: Keeping salary amounts private while maintaining verifiability

Solution: Designed a ZK circuit that proves an allocation exists and is positive without revealing the value. Used Compact compiler to deploy on Midnight Network with formal verification.

Challenge: Integrating ZK proofs with a user-friendly dashboard

Solution: Built a Next.js frontend that abstracts ZK complexity behind familiar payroll UI. Employees click 'Claim' and the proof is generated automatically in the background.

project impact.

42
tests
3
networks