Nocturne

Borrow against a credit score no one can read.

Repo

About

## Wave 1 submission

Updates in this Wave

Nocturne went from an uncompiled contract sketch to a working zero-knowledge lending app with real proofs, in this wave.

CORE CONTRACT (Compact 0.26 / toolchain 0.34 / ledger 9) Six circuits compile and generate proving keys: issueAttestation, depositLiquidity, withdrawLiquidity, borrow, repay, liquidate. The credit score is computed entirely in-circuit over witness data; borrow asserts score >= tier and principal <= collateral * maxLTV, consumes a nullifier so one identity cannot stack loans, bounds dueTime so no loan is unliquidatable, and binds every attestation to an issuer-published Merkle leaf so inputs cannot be fabricated.

REAL ZERO-KNOWLEDGE PROOFS

Verified end to end against a live midnight-proof-server: borrow 9.2 s -> 5.4 KB proven transaction depositLiquidity 1.1 s Reproducible with `npm run proof-server:up && npm run test:prove`.

WALLET + TRANSACTION PIPELINE

Lace via the DApp Connector; AES-GCM private state encrypted under a wallet signature and scoped per persona; proof-server health check; DUST fee pre-flight; and a full prove -> pay fees -> submit -> confirm pipeline. midnight-js-contracts pins compact-runtime 0.16 against our 0.19, so we implemented our own TxAssembler for deploy and call transactions rather than downgrade the toolchain.

FIVE EXPLOITABLE BUGS FOUND AND FIXED (each regression-tested) - liquidate credited collateral the pool never received: every default minted liquidity from nothing. - defaulters was written but never read, so strategic default at 150% LTV was profitable AND repeatable. - Exact attestation expiries were passed to a block-time predicate, making them public transaction bounds. Three exact expiries are a near-unique fingerprint an issuer could use to deanonymize a borrower. Freshness is now checked in-circuit against a coarse bound. - LPs could withdraw capital backing open loans. Accounting is now share-based, so a default marks every position down pro rata. - The cross-chain score was an unbound witness: any borrower could pass an arbitrary value and clear any tier. It is now a fourth attestation verified through the same Merkle path as the rest.

Compact has no division operator, so interest and LP share prices are enforced by cross-multiplication at full width.

APP

Landing page plus a three-tab demo (Borrow / Pool / Explorer) that runs with no wallet. Alice and Bob post identical 1,000 collateral; Alice draws 1,500 and Bob 500 — exactly 3x — and the Explorer tab shows the public ledger beside the device's private state, listing score, attestation values and linked wallets as fields that do not exist on chain.

171 tests: 123 app, 45 contract, 3 live-proving.

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?

Not checked yet.

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.

Credit

Zero-knowledge credit protocol enabling true undercollateralized loans for anyone through proof of personhood. No assets required.