TSECHACKS25_CodeBreakers
Fraud-Chain
User Registration & Authentication
- User chooses login method:
- Option 1: Traditional signup (email/password stored in DB)
- Option 2: Metamask login (Web3 authentication)
- If traditional login, user binds a Metamask wallet for blockchain interactions.
- Role-Based Access: Users (borrowers), Banks (lenders), Admins (platform control).
Loan Application Process
- User applies for a loan by selecting a bank.
- Loan details (amount, interest, duration) are encrypted using AES + RSA/ECC.
- User encrypts loan details with their key.
- Bank & app hold the decryption key for access.
- The encrypted loan request is written to the blockchain as a new block.
- The bank reviews & approves/rejects via a smart contract.
- If approved, funds are released to the borrower.
- If rejected, the block is updated with rejection status.
Loan Repayment & Tracking
- Each installment payment is recorded on the blockchain as a transaction within the same block.
- User makes a monthly repayment using Metamask (crypto) or fiat via an off-chain bridge.
- Smart contract:
- Updates remaining loan balance.
- Calculates penalties for late payments.
- Checks if the borrower has defaulted.
Default Prevention & Risk Registry
- If a borrower misses multiple payments, their block is updated with a defaulter flag.
- Defaulter’s wallet address is added to the risk registry.
- Smart contract automatically blocks defaulters from applying for new loans at any bank.
Data Privacy & Security
- All loan details are encrypted before writing to the blockchain.
- Only banks & authorized entities can decrypt loan data.
- Zero-Knowledge Proofs (ZKPs) allow banks to verify risk status without exposing full details.
Regulatory Compliance & Auditing
- Regulators can request decryption access via a multi-signature approval mechanism.
- Every action (loan approval, payment, default) has an immutable audit trail.
This markdown file describes the entire process of a blockchain-based loan management system with encryption, authentication, and defaulter tracking.