Threshold

A privacy-preserving eligibility attestation app on Midnight. Prove you qualify. Reveal nothing.

Visit

About

## Wave 1 submission

During this Wave, we successfully bridged the gap between our smart contract logic and the frontend by fully integrating the @midnight-ntwrk/midnight-js v4 SDK. We transitioned the application away from mocked state into a real zero-knowledge proving workflow running against a local Midnight devnet.

1. End-to-End ZK Integration:

We successfully connected the React frontend to the Lace DApp Connector and local Midnight node infrastructure (Proof Server and Indexer). The application can now deploy the Threshold contract, generate local proofs based on a prover's private inputs, and submit the resulting transaction to the ledger.

2. Core UI Flows (Prover & Verifier):

We built the ProverFlow and VerifierFlow interfaces. The Prover flow allows a user to input a private financial value (e.g., revenue), generate a secure salt, and construct a zero-knowledge proof locally. The Verifier flow allows a third-party auditor to query the on-chain ledger using the resulting commitmentHash to verify the attestation passed without ever seeing the raw data.

3. Resolved Critical Runtime & Toolchain Hurdles: We overcame several undocumented environment challenges with the Midnight v4 SDK. We successfully configured Vite with WebAssembly loaders and Node.js polyfills (to resolve deep Buffer dependencies in midnight-js), and we manually patched a severe runtime version mismatch (v0.19.0 vs v0.16.0) between the compactc compiler output and the @midnight-ntwrk/compact-runtime dependency required by the SDK.

4. Security & Architecture Pivot:

Following a rigorous design review, we corrected a naive architectural assumption. We originally planned to bind attestations to ownPublicKey() for identity, but realized this is an unconstrained witness value that can be spoofed. We completely pivoted the architecture to a standard capability-based commitment workflow (where the ledger only stores the hashed commitment and rule ID) to guarantee true selective disclosure and zero-knowledge properties.

5. Design Assets & Documentation: We generated high-fidelity, minimalist UI mockups mapping out the ideal UX for both the Prover and Verifier flows, which have been committed to the repository's assets/ folder. We also updated the project documentation to thoroughly detail our architecture decisions and the strict boundaries between Midnight's public and private state contexts

Deliverables URL:

You can view the latest code, the updated documentation, and the new UI design assets directly in the project repository: https://github.com/wagmiiii/Threshold

From the public Akindo product page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

No public repo linked, so we can't tell.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.