Last updated 4 months ago
Small businesses lack privacy-preserving crypto payments. Marketplaces force them to reveal unnecessary data or build custom systems, making crypto adoption impractical for small merchants.
A Compact-based receipt module where only payment totals are public and full item details stay encrypted. Small merchants can accept crypto without leaking data or building complex off-chain systems.
Please provide your proposal title
Privacy-Preserving Crypto Receipts for Small Merchants
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?
Small businesses lack privacy-preserving crypto payments. Marketplaces force them to reveal unnecessary data or build custom systems, making crypto adoption impractical for small merchants.
Supporting links
Does your project have any dependencies on other organizations, technical or otherwise?
No
Describe any dependencies or write 'No dependencies'
No dependencies
Will your project's outputs be fully open source?
Yes
Please provide here more information on the open source status of your project outputs
Open Source Status: This project will be fully open source from day one. All code including smart contracts, frontend, matching logic, tests, and documentation will be published in a public GitHub repository.
License Type: The project will use the MIT License because it is permissive, easy to reuse, and aligns with the goal of providing a clear reference implementation for the Midnight ecosystem.
Please choose the most relevant theme and tag related to the outcomes of your proposal
E-commerce
What is useful about your DApp within one of the specified industry or enterprise verticals?
Industry: Commerce / Small Business / Online marketplaces
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)?
Adoption will be measured through concrete OSS signals. Within 3–6 months after release, we target:
Please describe your proposed solution and how it addresses the problem
Small merchants struggle to adopt crypto payments because existing tools expose unnecessary purchase details or require building complex off-chain logic. Our solution is a privacy-preserving “encrypted receipt module” built with Compact contracts, showing how Midnight can support commerce without leaking sensitive item data.
Merchants generate encrypted item-level receipts off-chain using a small TypeScript library. Buyers receive these encrypted receipts in their wallet and submit a Compact proof on-chain that reveals only the total amount and merchant ID. Merchants or verifiers can later confirm payment authenticity via selective disclosure without ever accessing item contents.
The Reference DApp includes:
This provides a clear, forkable demonstration of encrypted commerce flows on Midnight.
Please define the positive impact your project will have on Midnight ecosystem
Small merchants currently avoid crypto payments because existing solutions leak sensitive purchase data to marketplaces or require building custom payment logic. This module provides a reusable privacy-preserving pattern: merchants issue encrypted receipts off-chain, buyers submit them on-chain with only totals revealed, and verifiers can confirm payments without accessing item details.
This lowers the barrier to adopting crypto for small shops, online creators, local services, and niche marketplaces.
As a Reference DApp, it becomes a blueprint for crypto commerce tooling on Midnight of donations, subscriptions, procurement, ticketing, and merchant integrations. It establishes a minimal, forkable, well-documented template developers can extend.
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?
I have more than six years of professional TypeScript experience, along with hands on development across multiple blockchain architectures including EVM, Solana, ICP canisters, and Cosmos SDK. This background gives me a deep understanding of smart contract design, state models, and privacy oriented or zero knowledge aware workflows. Combined with production experience in Go and Solidity, I am well suited to deliver a technically complete Compact reference DApp.
My experience with Midnight is practical and recent. I participated in the Midnight London Summit Hackathon, where our team built NextMed, a privacy-preserving medical data prototype that won the Midnight Club Award. During the event, I also created lightweight developer tools for the Midnight network, including an RPC Explorer, an Indexer Explorer, and a wallet connection verification tool. Building these gave me hands-on familiarity with Compact development flows, RPC interactions, indexer queries, and the real-world behavior of the current Midnight toolchain. This direct experience significantly reduces project risk and accelerates implementation.
To ensure feasibility:
This proposal is intentionally small in scope but technically complete, aligning with expectations for a Reference DApp and ensuring a deliverable that developers can run, extend, and learn from.
Please provide a cost breakdown of the proposed work and resources
The total requested budget covers the developer’s time required to design, implement, test, and document a fully functional reference DApp within the three-month timeline. No external services or subcontractors are used; all work is completed by a single developer.
Estimated time commitment
10–12 hours per week x 12 weeks
Total: ~120–140 hours
Hourly rate
Based on typical independent blockchain engineering rates and my experience across multiple chains (EVM, Solana, Cosmos, ICP) and six years of TypeScript development, an hourly rate of $70–$85 is reasonable for specialized Compact/Midnight work.
Cost allocation by milestone
Total Requested Budget: $10,000
Justification
This budget reflects the full development effort required to deliver a technically complete, reusable, open-source reference DApp that demonstrates the selective-disclosure matching pattern on Midnight. All deliverables map directly to the expected outputs defined for this category: contract, UI, wallet integration, tests, documentation, PoC demonstration, and final report.
How does the cost of the project represent value for the Midnight ecosystem?
The requested budget represents strong value because it produces a complete, open-source Reference DApp that demonstrates a new selective-disclosure pattern on Midnight. All costs map directly to hands-on engineering work: Compact contract development, UI and Lace integration, full test coverage, and clear documentation.
By delivering a reusable technical blueprint under a permissive license, this project lowers the barrier for future builders and accelerates ecosystem growth. The scope is efficiently executed by a single experienced developer, making the investment both cost-effective and high-impact 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
This project will be delivered by a single developer, foxytanuki, who will be responsible for all technical and implementation tasks.