Last updated 3 months ago
Indonesians receive an average of 14+ spam calls per month, partly due to unprotected digital verification, while developers struggle with the cost and security risks of managing phone databases.
Midnight Shield replaces SMS OTPs with ZK Proofs. Verify your phone once to mint a credential, then login anonymously. Stops spam by proving unique humanity without sharing data.
Please provide your proposal title
Midnight Shield: ZK-Phone Verification & Anti-Spam SDK
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?
Indonesians receive an average of 14+ spam calls per month, partly due to unprotected digital verification, while developers struggle with the cost and security risks of managing phone databases.
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
License: MIT (Fully Open Source)
To serve as a true Reference DApp, we release 100% of the codebase under the permissive MIT License. This includes:
The SDK: A drop-in library for easy frontend integration. Compact Contracts: The ZK-circuit logic for unique identity. Oracle Backend: The SMS signing service.
Our goal is to establish a free, forkable standard for privacy-first login that accelerates developer adoption on Midnight.
Please choose the most relevant theme and tag related to the outcomes of your proposal
Identity & Verification
What is useful about your DApp within one of the specified industry or enterprise verticals?
Vertical: Identity and Governance (Privacy-Preserving Authentication)
The Data Leak Crisis in Southeast Asia In Indonesia, the digital economy is built on Phone Number Verification. Every major app—from E-commerce (Shopee/Tokopedia) to Fintech (GoPay) to Games—requires a raw phone number plus SMS OTP to verify that a user is a unique human and not a bot.
Midnight Shield: The Zero-Knowledge Solution Our DApp solves this paradox by decoupling Verification from Data Collection.
Why Midnight is Essential This utility is impossible on public blockchains (like Ethereum or standard Cardano).
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.
We are building a full-stack Reference Implementation comprised of three distinct modules:
A. The Compact Smart Contracts (PhoneShield.compact)
We will develop a ZK-Circuit that manages the lifecycle of a Shielded Identity.
B. The Midnight Auth SDK (Frontend and Lace Integration)
We will package the complexity into a reusable npm library (@midnight-shield/client) for other devs.
C. The Oracle Backend (Node.js)
A secure server utilizing Twilio (or local gateway) for SMS dispatch.
D. Test Plan Unit Testing: Writing compact-test scripts to verify that the nullifier logic correctly blocks double-signups in a simulated ledger environment.
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)?
As a Reference DApp, our primary product is Education. We are structuring the repo to be the Standard Library for Identity on Midnight.
Please describe your proposed solution and how it addresses the problem
In Indonesia, the digital economy runs on Phone Number Verification. Every major app, from E-commerce (Shopee/Tokopedia) to Fintech (GoPay) to Games, requires a raw phone number + SMS OTP to verify that a user is a "unique human" and not a bot. This centralization of identity has catastrophic consequences. Phone numbers are routinely leaked, sold to data brokers, or scraped. As a result, the average Indonesian receives 14+ spam/scam calls per month (Hiya Global Report). Beside that, developers need Sybil Resistance (one person, one account), but currently, they can only achieve it by collecting toxic Personal Identifiable Information (PII). This creates a liability under Indonesia’s UU PDP (Personal Data Protection Law) and requires building complex, insecure SMS verification backends.
The Solution: The Midnight Shield SDK (Drop-in Privacy)
We are building Midnight Shield, an open-source Identity SDK (Software Development Kit) that allows any developer to add "Verify with Midnight" to their app in minutes. It replaces toxic SMS OTPs with Zero-Knowledge Proofs.
Core Component 1: The Shielding Oracle (Off-Chain to On-Chain)
We provide a pre-built Oracle Backend (@midnight-shield/server) that developers can deploy to bridge Web2 and Web3.
The Mechanism: A user enters their phone number on the DApp. The backend sends a standard SMS OTP. Once the user verifies the OTP, the backend issues a cryptographically signed payload (Signature) confirming ownership of that number.
The Privacy: The raw phone number is never stored on-chain. The signature is only used once to mint a Shield Token (a private ZK-credential) to the user's Lace wallet.
Core Component 2: The @midnight-shield/react Library
We abstract the complex cryptography into a simple React hook for frontend developers.
The "Login" Button: Developers simply import
The ZK Circuit: The SDK generates a proof that states: "I own a valid Shield Token, and I have not created an account on this specific App ID before."
The Nullifier: To prevent one user from creating 100 accounts, the SDK automatically computes a Nullifier Hash (derived from PhoneHash + AppID). This ensures uniqueness per app without allowing different apps to correlate the user's identity across platforms.
Core Component 3: The Reference Compact Contract
We provide a standardized, audited Compact Smart Contract that developers can deploy with one command.
Functionality: It verifies the ZK proofs generated by the SDK and maintains the registry of "Used Nullifiers" to prevent double-spending of identities.
Please define the positive impact your project will have on Midnight ecosystem
Midnight Shield serves as a foundational building block for the entire Midnight ecosystem. By packaging complex ZK logic into an easy-to-use SDK, we unlock a massive category of use cases that are currently impossible for average developers to build.
1. Accelerating Developer Adoption
The Gap: New blockchains struggle to attract developers because they lack basic tooling. Currently, if a dev wants to build a voting app on Midnight, they have to write their own ZK-Identity circuit from scratch. This is a massive barrier.
The Fix: By releasing the Midnight Shield SDK, we provide the ecosystem with a "Standard Library" for identity. Future developers building Voting DApps, DAO Tools, or Social Networks can simply npm install @midnight-shield/client. This reduces the "Time-to-Hello-World" for new Midnight devs from weeks to minutes.
2. Demonstrating "Real-World" Privacy Utility
The Narrative: Privacy is often associated with "hiding illicit finance." Midnight Shield changes the narrative to "Consumer Protection."
The Demo: By solving the universal pain point of Spam Calls, we demonstrate a concrete, relatable benefit of ZK technology to non-crypto users. This is the kind of "Killer App" that can drive mass adoption in high-population markets like Indonesia, proving that Midnight solves problems that Ethereum/Cardano cannot.
3. Compliance-Ready Architecture for Enterprise
Regulatory Alignment: By ensuring apps never touch raw phone numbers, our SDK helps developers comply with strict data privacy laws (GDPR, UU PDP). This positions Midnight as the "Compliance Chain" for enterprise adoption, attracting Web2 fintechs and startups who want Sybil resistance without the legal liability of holding PII.
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?
We have a verified history of shipping complex projects together (including the Fund 13 "Indonesia Car-Dano" success).
Role: End-to-End Engineering (Compact + Backend + Frontend). Giga handles the entire technical stack.
Contribution: As a Full-Stack Blockchain Architect, Giga is proficient in System Architecture and Smart Contract Security. He will use his experience in Solidity and Aiken to master the Compact language, while using AI coding assistants (Cursor/Copilot) to rapidly scaffold the React frontend and Node.js Oracle backend.
GitHub: https://github.com/gigahidjrikaaa
LinkedIn: https://www.linkedin.com/in/gigahidjrikaaa/
Role: Logic Design, Documentation & User Journey.
Contribution: She designs the privacy flow, ensuring users understand why their data is safe. Crucially for a Reference DApp, she writes the Documentation and Tutorials, ensuring other developers can actually understand and use our code.
GitHub: https://github.com/virnamrita
LinkedIn: https://www.linkedin.com/in/virna-amrita-a13463261/
Research Gate: https://www.researchgate.net/profile/Virna-Amrita
Feasibility Strategy:
We acknowledge that building a full stack (Contract + Backend + UI) is a heavy lift for one engineer. To mitigate this, we use AI-Augmented Development:
Boilerplate Automation: Giga uses LLMs to generate the standard React/Node.js boilerplate code instantly.
Focus on the Core: This frees up 80% of Giga's time to focus purely on the Compact ZK Circuit (the hard part that AI cannot do well yet).
Result: We achieve the output of a 4-person team with only 2 people, reducing coordination costs to zero.
Validation: For now, we define this project's success as functional code that works on DevNet, and not necessarily commercial scale. This allows us to keep the backend simple (a lightweight Oracle) without needing complex DevOps scaling, making the 3-month timeline highly realistic.
Please provide a cost breakdown of the proposed work and resources
Lean stipends for the 2-person R&D unit for the 3-month sprint (based in Yogyakarta, Indonesia)
Scope: End-to-End Engineering (Compact Contracts, Node.js Oracle, React SDK).
Scope: Privacy UX Design, Developer Documentation (README.md), and Tutorial Video production.
Allocating significant resources to ensure the demo environment is fast, stable, and scalable.
SMS Gateway Credits (Twilio/Wav): $1,000.
Usage: This provides a massive buffer for sending 10,000+ OTPs via premium routes. This allows us to run the "Midnight Shield" demo publicly for months without running out of credits, enabling hundreds of other developers to test the flow live.
Cloud Infrastructure: $600.
Usage: 12-Month prepaid hosting for the Oracle Backend and Demo DApp on CPU-Optimized Droplets. We are provisioning for High Availability to ensure the reference implementation never goes offline when a developer tries to use it.
Developer Tooling & Services: $400.
Usage: Private RPC Node subscriptions (for reliable DevNet access), Domain Registration (midnight-shield.io), and SSL Security certificates to secure the Oracle API.
How does the cost of the project represent value for the Midnight ecosystem?
We are delivering a critical infrastructure component (Privacy-Preserving Login) for a cost lower than a single month of a Silicon Valley engineer's salary.
The Multiplier Effect: By packaging complex ZK circuitry into an easy-to-use SDK (@midnight-shield), we lower the barrier to entry for every future Midnight developer. If just 10 future startups use our library instead of building their own auth system from scratch, we save the ecosystem an estimated $200,000 in redundant engineering hours (10 teams x 2 weeks x $2,500/week). This is a 50x ROI on the grant.
The Market: Indonesia has 221 million internet users, yet they suffer from 14+ spam calls per month due to phone number harvesting.
The Showcase: By demonstrating a live anti-spam use case, we provide the Midnight Foundation with a powerful narrative: "Midnight protects consumers from data abuse." This is the kind of story that attracts Web2 enterprises and regulators, driving token utility far beyond DeFi.
A lot of projects burn 30% of their budget on marketing. We spend $0.
The Leverage: As members of Sumbu Labs, Giga and Virna have direct access to a growing community of Indonesian Web3 enthusiasts and developers on Twitter/X. The platform is not huge yet, but our targets are sort of niche and we are confident that we have the right target for this project's usability.
The Impact: We will use this platform to socialize the Midnight Shield SDK and publish our tutorials. This guarantees immediate visibility and adoption for the Midnight ecosystem without costing the Midnight Foundation a single cent.
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
1. Giga H. A. Adkhy (Lead ZK Engineer & Full-Stack Architect)
Role: End-to-End Engineering. Giga handles the entire technical stack: writing the Compact smart contracts, building the Node.js Oracle backend, and integrating the React SDK with the Lace wallet.
Capability: Giga was the Project Manager for the successfully delivered Fund 13 "Indonesia Car-Dano" project. His background in System Architecture and Solidity ensures he can master the Midnight stack quickly. He utilizes AI-Augmented Coding (Cursor/Copilot) to handle the workload of a full engineering team.
GitHub: https://github.com/gigahidjrikaaa
LinkedIn: https://www.linkedin.com/in/gigahidjrikaaa/
2. Virna Amrita (Product Owner & Privacy UX)
Role: Logic Design, User Journey & Documentation.
Capability: Psychology Researcher (UGM) & "Vibe Coder." Virna earned a Gold Medal in PKM-RSH 2023 for her research on AI chatbots.
Contribution: She bridges the gap between complex cryptography and human usability. She designs the privacy flow (ensuring users feel safe) and writes the Developer Documentation, translating Giga's code into easy-to-follow tutorials for the community.
GitHub: https://github.com/virnamrita
LinkedIn: https://www.linkedin.com/in/virna-amrita-a13463261/
Research Gate: https://www.researchgate.net/profile/Virna-Amrita