Last updated 3 months ago
On-chain transparency violates enterprise privacy(GDPR) and leaks salary secrets.Existing solutions offer only full transparency or centralization.Need to solve structural privacy/compliance conflict.
Selective Disclosure payroll system.Midnight ZK contracts execute private salary logic,generate proofs;Cardano settles funds.This MVP delivers an auditable privacy primitive for the Cardano ecosystem.
Please provide your proposal title
On-chain Payroll: A ZK Privacy System for Cardano & Midnight
Please specify how many months you expect your project to last
3
Please indicate if your proposal has been auto-translated
No
Original Language
en
What is the problem you want to solve?
On-chain transparency violates enterprise privacy(GDPR) and leaks salary secrets.Existing solutions offer only full transparency or centralization.Need to solve structural privacy/compliance conflict.
Supporting links
Does your project have any dependencies on other organizations, technical or otherwise?
Yes
Describe any dependencies or write 'No dependencies'
This project adopts a hybrid deployment strategy to ensure mainnet delivery despite Midnight's current development phase: 1. Midnight (Privacy Layer): DevNet/Simulation for ZK proof generation and private data storage. Code architecture will be mainnet-ready for seamless migration when Midnight mainnet launches. 2. Cardano (Settlement Layer): MAINNET deployment for the Settlement Registry validator. All proof verification and ADA transfers will occur on Cardano mainnet with real assets. 3. Cross-Chain Bridge: Since the official Midnight-Cardano bridge is under development, we implement a controlled Relay Oracle that: - Receives ZK proofs generated on Midnight DevNet - Verifies proofs off-chain - Submits cryptographic attestation to Cardano mainnet validator - Triggers settlement upon successful verification This approach ensures the core value proposition (privacy-preserving payroll with real settlements) is demonstrated on mainnet, independent of Midnight's infrastructure timeline.
Will your project's outputs be fully open source?
Yes
Please provide here more information on the open source status of your project outputs
MIT License
Please choose the most relevant theme and tag related to the outcomes of your proposal
Privacy
What is useful about your DApp within one of the specified industry or enterprise verticals?
The DApp's greatest utility lies in solving the fundamental privacy-compliance conflict that Real World Assets (RWA) and Enterprise Operations face when migrating to Web3.
The On-chain Payroll system enables enterprises to conduct sensitive financial processes on the blockchain without violating employee privacy (e.g., GDPR requirements) or exposing core commercial secrets like salary structures. By using Midnight's ZK-Proofs, the system offers "Compliant Verifiability": the company can prove to auditors or DAO governance that funds were distributed honestly and according to rules, but without revealing who received how much. This capability is critical for attracting traditional businesses to Cardano, as it provides an auditable, decentralized system that satisfies real-world legal and financial requirements, overcoming a major barrier to corporate Web3 adoption.
What exactly will you build? List the Compact contract(s) and key functions/proofs, the demo UI flow, Lace (Midnight) wallet integration, and your basic test plan.
How will other developers learn from and reuse your repo? Describe repo structure, README contents, docs/tutorials, test instructions, and extension points. Which developer personas benefit, and how will you gauge impact (forks, stars, issues, remixes)?
1.Repository Structure
The repository will adopt a modular structure to clearly separate the core components, allowing developers to target the specific layer they need:
2.Documentation Strategy
The project includes Developer Documentation as a core deliverable.
3.Extension Points and Universal Primitive
The project is explicitly designed as an Infrastructure Primitive. The core extension point is the ZK Rule Validation module.
4.Developer Personas Who Benefit
Success will be measured through concrete, verifiable metrics:
Technical Metrics:
100+ ZK proofs generated on Midnight DevNet during development and testing
10+ mainnet settlement transactions executed (real ADA transfers on Cardano mainnet)
50+ successful 'Proof-Verification' test cycles covering normal payroll, rule rejection, and duplicate claim prevention
Adoption Metrics:
1+ company or DAO pilot using this payroll primitive (even internal/demo usage counts)
1+ complete organizational structure (org chart with 5+ roles + salary rules) demonstrated in live system
10+ GitHub Stars/Forks indicating developer interest and code reuse potential
Deliverable Metrics:
1 SDK published to NPM with mainnet configuration
1 mainnet-connected demo website accessible globally
1 video tutorial (10+ minutes) demonstrating complete employer-to-employee flow
1 Final Report documenting architecture decisions, mainnet deployment process, and lessons learned
Please describe your proposed solution and how it addresses the problem
On-chain Payroll is a decentralized application built on the Model-Proof-Settlement pattern:
Core Module Architecture:
Why Cardano + Midnight?
Cardano offers unparalleled security and determinism, making it ideal for high-value financial settlements. Midnight provides the privacy and programmability required for compliance, addressing GDPR and trade secret protection challenges. Together, they enable data to operate in privacy while value flows transparently.
Verification Model:
The Cardano Settlement Registry validates settlements through a Relay Oracle attestation model. The Oracle verifies ZK proofs off-chain and provides a cryptographic attestation that the Aiken validator verifies on-chain. This architecture is designed to upgrade to native ZK verification when Cardano's cryptographic primitives mature (CIP-0381 and future CIPs).
Employee Onboarding Flow:
Employees connect their Cardano wallet (Lace/Nami) to the system. The employer registers the employee's public key in the Midnight Privacy Vault. View Keys for salary verification are derived deterministically from the employee's wallet signature, ensuring employees can always recover access without storing additional secrets.
Dispute Resolution:
The system maintains a cryptographic commitment log. If disputes arise, authorized parties (HR + Employee + optional Arbiter) can collaboratively reveal specific records using multi-party View Key disclosure. The ZK proof itself provides mathematical evidence of whether rules were correctly applied.
Transaction Economics:
Auditor Interface:
The Compliance SDK includes audit-specific functions:
Auditors receive cryptographic proof that sum(individual_payments) = total_disbursed, without accessing individual records.
Please define the positive impact your project will have on Midnight ecosystem
On-chain transparency clashes with privacy and compliance needs, blocking enterprise adoption.
Case 1: GDPR Barrier
A European fintech startup aimed for full on-chain operations but halted payroll due to GDPR Article 9 violations—public ledgers expose sensitive salary data, risking 4% revenue fines. Result: Abandoned blockchain for payroll.
Case 2: Talent Poaching
A DeFi protocol's transparent treasury revealed developer salaries ($180k/year), enabling competitors to poach 40% of the team with $220k offers in three months.
Current solutions force a tradeoff: full transparency (privacy breach) or centralized opacity (trust erosion). Enterprises need verifiable payments without exposing details.
Real-World Impacts
Compliance Trap: A German Web3 firm tried ADA-based salaries for efficiency but faced labor law breaches and GDPR risks. On-chain visibility sparked resignations over pay disparities—why no major firms use blockchain payroll.
DAO Dilemma: A Cardano DAO's $500k contributor budget demands transparency but risks poaching, internal strife, and doxxing. They can prove totals but not fair distribution without harm.
Solution: Privacy-Preserving On-Chain Payroll
Prove rule adherence and totals via cryptography, while shielding individual details. This fills a Cardano gap with "enterprise-grade private payments."
Ecosystem Benefits
Reusable Infrastructure: ZK modules for attribute-based distributions, adaptable for private airdrops, crowdfunding, or DAOs.
RWA & Corporate Adoption: Reduces privacy barriers for traditional firms and global teams.
Regulatory Value: Demonstrates auditable yet GDPR-compliant blockchain.
Commitments
What is your capability to deliver your project with high levels of trust and accountability? How do you intend to validate if your approach is feasible?
Team Strengths: I am a full-stack developer with experience in TypeScript (Frontend/SDK) and Rust/Haskell (Cardano smart contracts). I have hands-on experience with Plutus/Aiken development and understand the eUTxO model.
Mainnet Deployment Strategy:
Given Midnight is in DevNet phase while we commit to Cardano mainnet delivery:
Risk Management:
Risk: Midnight DevNet instability could block proof generation
Mitigation: Implement proof caching and retry logic; prepare fallback to local ZK simulation if needed
Risk: Cardano mainnet transaction costs exceed budget
Mitigation: Budget includes 50 ADA reserve for mainnet transactions; optimize validator for minimal execution units
All deliverables will undergo rigorous testing before mainnet deployment. We commit to technical honesty - if mainnet deployment faces blockers, we will transparently communicate and propose alternatives.
The Relay Oracle only transfers proofs and does not process private data nor handle funds.
All financial settlement logic remains fully on-chain and verifiable on Cardano.
Please provide a cost breakdown of the proposed work and resources
Backend side development : 5000USDM
Including
Frontend development: 2000USDM
All engineering (backend, ZK circuits, Plutus/Aiken validator, frontend UI, SDK, Oracle server) is implemented by a single developer.
The cost allocation reflects time estimation rather than outsourcing expenses.
This proposal is not building a commercial product,
but an open-source payroll primitive (contracts + SDK + validator) intended for reuse.
The scope is tightly defined and optimized for a 3-month solo delivery.
How does the cost of the project represent value for the Midnight ecosystem?
I confirm that the proposal clearly provides a basic prototype reference application for one of the areas of interest.
Yes
I confirm that the proposal clearly defines which part of the developer journey it improves and how it makes building on Midnight easier and more productive.
Yes
I confirm that the proposal explicitly states the chosen permissive open-source license (e.g., MIT, Apache 2.0) and commits to a public code repository.
Yes
I confirm that the team provides evidence of their technical ability and experience in creating developer tools or high-quality technical content (e.g., GitHub, portfolio).
Yes
I confirm that a plan for creating and maintaining clear, comprehensive documentation is a core part of the proposal's scope.
Yes
I confirm that the budget and timeline (3 months) are realistic for delivering the proposed tool or resource.
Yes
I Agree
Yes
Cai Mau Yin (Technical Lead)
Li Hsuan Yang (Legal Consultant)
Responsible for conducting product legal research and evaluating regulatory compliance.
Relevant Experience:
Legal Intern, Law Firm (Current) – Specializing in regulatory research and risk management analysis. This role is critical to the project for: