MOSAIC: Trading history as credit history
About the Project
MOSAIC turns a small shop's supplier and payment relationships into verifiable credentials on Stellar.
- Suppliers and payment apps vouch for neighbourhood shops (kiranas) they already work with, each locking a USDC stake.
- A supplier's claim counts only if payment-app records back it. The supplier's own numbers never pass.
- Lenders pay a small USDC fee to check a shop and decide on a loan. Part of the fee goes to the issuers whose claims passed. MOSAIC suggests a limit; the lender decides.
- If a claim proves false after a default, an upheld dispute pays the stake to the lender. Repeat offenders are suspended.
- Missing evidence is "Unknown", never "bad".
- Shops pay nothing and never touch crypto.
On Stellar we store the credential conclusion, evidence hash, issuer, dates, stake, fees, disputes and a stacking counter. Raw payment data, bank details and phone numbers stay off-chain.
Business model: free for shops. Lenders pay per check.
How We Built It
- Smart contract: Rust + Soroban, deployed on Stellar testnet, with 34 passing tests.
- Frontend: Next.js with the Stellar JavaScript SDK and an optional read-only Freighter wallet connection.
- Backend: a TypeScript rules engine that matches supplier claims against payment records and keeps sensitive data off-chain.
- Prototype note: payment records in the demo are simulated, and the demo switches roles instead of using real wallet signing.
- How we worked: we built with AI coding tools. Our job was to define the rules and check them against tests, compiler errors and the Stellar docs.
Credential integrity: h = H(C), where C is the claim and H is a cryptographic hash function.
Challenges We Faced
- Finding the right problem. We pivoted through tiered verification, on-chain credit scoring, TrustPass (a DeFi-history identity with machine-learning risk tiers), and finally MOSAIC. Mentor feedback pushed us from scoring people to verifying trust that already exists.
- Narrowing our users. We explored remittance receivers, online sellers and international students, and chose small shops because their supplier and payment relationships are real evidence of reliability.
- Making a claim cost something. A supplier's word alone can't be trusted, so we added a locked stake, a payment match and a dispute path.
- Privacy vs transparency. We keep raw financial data off-chain and put only hashes and conclusions on Stellar. The design is built around shop consent. Consent controls are not built yet.
What We Learned
- Verifying trust that already exists works better than scoring people.
- A claim should cost something to make, so we made suppliers lock a stake.
- A blockchain can make trust verifiable without exposing private financial data.
- A focused user (the neighbourhood kirana) beats a long feature list.
- How to take mentor feedback, pivot fast and keep shipping.
What's Next
- Razorpay/UPI one-tap: with the shop's and the supplier's consent, real-time payments replace supplier uploads.
- Shop consent, so each shop chooses who sees its credentials.
- Real wallet signing instead of the demo role switcher.
- A microfinance pilot first, then banks.
- A security review before mainnet.
Live app: https://mosiac-eight.vercel.app
Built With
- javascript
- next.js
- react
- stellar
- typescript