NightPass

Zero-knowledge membership and access control for Midnight: prove entitlement without identity.

About

## Wave 1 submission

Wave 1 delivers a complete, working privacy membership slice on Midnight: a creator publishes a plan, a member generates a credential locally, an issuer registers only a commitment, and a protected service grants a session from an on-chain zero-knowledge proof bound to that service and a single-use challenge.

#### 1. Core Cryptographic & Compact Architecture

• Compiling Compact Contract (contract/): Two circuits compiled and verified clean on Compact toolchain 0.31.1: • issueMembership (k = 12, 188 instructions, ∼ 192 KB): Enforces plan duration ceiling and registers leaf commitments. • proveAccess (k = 14, 228 instructions, ∼ 768 KB): Verifies membership against historic roots in zero knowledge. • Privacy Accumulator Architecture: Implemented HistoricMerkleTree<10, MembershipLeaf>. We scrapped our initial prototype's Map design because querying a map requires a public lookup key that links user logins across platforms. The Merkle tree keeps the leaf index and path as private witnesses—only the historic root is compared. • On-Chain Replay & Audience Protection: Proofs are bound to sessionKey = H("nightpass:session:v1", audience, challenge), spent directly on-chain in public ledger state. Proofs minted for Service A are invalid at Service B, and spent challenges cannot be replayed. • Domain-Isolated Pseudonyms: Services recognize returning subscribers under stable pseudonyms (nightpass:pseudonym:v1) that cannot be correlated across different services.

#### 2. Modular Architecture & Interactive Web App

• @nightpass/client: Client-side secret derivation, path reconstruction from public logs, and zero-leakage error sanitization. • @nightpass/verifier: Reference service logic enforcing challenge TTLs, single-use grants, and 6 explicit denial reasons. • apps/web (React + Lace): Complete UI featuring Creator Plan Studio, Member Pass Vault, Protected Service Gate, and an interactive Live Attack Suite demonstrating visible rejections of non-members, stolen paths, wrong audiences, replayed challenges, and expired credentials.

#### 3. Test & Verification Rigor (68 / 68 Tests Passing)

• 68 automated tests passing across 4 workspaces: 21 contract/simulator, 16 client, 17 verifier, and 14 application tests. • Full negative path coverage: expired memberships, stolen witness paths, non-members, and unauthorized issuers.

#### 4. Radical Transparency & Wave 2 Handoff

Wave 1 proves the cryptographic core. We explicitly document remaining gaps: wallet-level transaction correlation (slated for fee sponsorship/relayers in Wave 2) and on-chain verification latency (driving our Wave 2 off-chain ZK verification spike).

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.