Nocturne was inspired by a simple problem: DeFi lending is either too rigid, because users must overcollateralize, or too invasive, because borrowers have to expose sensitive financial data to get better terms. We wanted to build a product that gives lenders real confidence without turning a borrower’s bank history into public information, and Midnight’s privacy-first model made that possible.

We built Nocturne as a privacy-preserving credit underwriting flow on Midnight using Compact smart contracts, private financial inputs, and selective disclosure. On the borrower side, users submit attested financial data, receive an underwriting result, and generate a private loan request; on the lender side, they only see the risk band, loan status, and repayment lifecycle, not raw bank statements or salary details.

We learned that the hardest part of building on Midnight is not just writing logic, but deciding what should be public, what should stay private, and when explicit disclosure is appropriate. That design constraint pushed us to think more carefully about trust, auditability, and user privacy than in a standard web app, and it made the final product feel much more purposeful.

The biggest challenge was turning a basic credit-score calculator into something that actually feels like a Midnight-native DeFi product. We solved that by adding a full loan lifecycle, a lender dashboard, and a regulator view, so the app demonstrates how confidential smart contracts can support real financial workflows while keeping sensitive data hidden from the public ledger.

Built With

Share this project:

Updates