New project.
Encrypted Apps
Weidai Shield
Privacy-preserving Sharia-compliant financing powered by post-quantum encryption.
About
Weidai Shield is a privacy-focused Sharia-compliant financing dApp that combines decentralized finance with confidential borrower underwriting. The project extends a Solidity-based Murabaha financing protocol with a secure underwriting workflow. Borrowers can submit encrypted financial information, while authorized underwriters review the information and approve or reject financing requests. The protocol checks the on-chain approval before allowing financing to proceed. Our goal is to protect sensitive borrower information while maintaining transparent, verifiable financing decisions and enforcing the rules of the financing protocol on-chain.
How it's made
I am building Weidai Shield using Solidity and Foundry, with QoreSeal as the planned encryption layer. The smart-contract architecture consists of: - MurabahaFinancing: Handles financing requests, fixed markup, collateral requirements, installments, repayments, and liquidation. - UnderwritingRegistry: Manages encrypted-record commitments, underwriter permissions, review decisions, and one-time approval consumption. - IUnderwritingRegistry: Provides the interface through which the financing contract verifies and consumes underwriting approvals. Sensitive borrower information is intended to be encrypted off-chain using the QoreSeal SDK. The encrypted payload's hash is submitted on-chain, rather than exposing the underlying personal or financial information. Authorized underwriters review the protected information through the off-chain workflow, and their decisions are enforced by the Solidity contracts. The financing contract requires a valid underwriting approval before proceeding. Each approval can only be consumed once, preventing borrowers from reusing an old approval for another financing request. I am keeping the existing Mudarabah pool and its accounting logic unchanged, focusing the integration on the Murabaha underwriting flow. The main engineering challenge is connecting confidential off-chain data handling with enforceable on-chain authorization, without placing sensitive borrower information on a public blockchain.
Timeline
Comments and questions
- No comments yet.