🌟 Inspiration

Coding has always been my hobby, and I've always been fascinated by how technology can simplify complex systems. While working as an insurance salesperson, I saw firsthand how rigid, slow, and opaque traditional insurance processes could be. Policy issuance was cumbersome, claim settlements took weeks, and transparency was often lacking.

That frustration β€” combined with my passion for blockchain development β€” inspired me to build Starknet-Indemnify, a decentralized insurance platform that merges DeFi automation with traditional insurance principles. My goal was simple:

To make insurance faster, smarter, and truly transparent by putting it on-chain.

πŸ’Ό What It Does

Starknet-Indemnify is a DeFi insurance platform built on Starknet (Sepolia Testnet) that underwrites policies on-chain.

Here's how it works:

  • When a user buys coverage, the policy details are recorded on-chain, and an NFT is minted to the policyholder's wallet address β€” serving as immutable proof of insurance ownership
  • The platform provides protection for on-chain risks (like smart contract exploits or stablecoin depegs) and tokenized access to conventional insurance products such as health, auto, and property coverage
  • Every step β€” from underwriting to claims β€” is transparent, automated, and verifiable on the blockchain

πŸ› οΈ How We Built It

The system is built with a modular architecture across both on-chain and off-chain components:

  • Smart Contracts (Cairo 2.12.2 on Starknet Sepolia leverage Openzeppelin Components): Handle policy creation, underwriting, and NFT minting
  • Backend (NestJS): Acts as the bridge between blockchain and user interfaces, handling authentication, off-chain metadata, and transaction orchestration
  • Risk Analytics Service (Python Django, WIP): A machine learning service in progress that will assess risk scores, analyze claims data, and optimize premium calculations using AI models
  • Frontend (Next.js on Vercel): Provides a sleek, responsive user interface for purchasing policies, managing claims, and viewing policy NFTs

On-chain integrity is maintained through zero-knowledge proofs ($ZK$), ensuring verifiable transactions without revealing private details:

\[ ZK\text{-Proof} \Rightarrow \text{Integrity without Disclosure} \

βš™οΈ Challenges We Ran Into

Building a hybrid DeFi–TradFi insurance solution wasn't easy.

  • Integrating insurance logic into Cairo contracts required rethinking conventional underwriting in deterministic terms
  • Coordinating data between Starknet, NestJS, and Django (ML pipeline) presented synchronization and design challenges
  • NFT minting and metadata linking demanded precise event-driven orchestration
  • The Starknet Sepolia testnet environment, while powerful, is still evolving, so debugging and deployment took persistence and adaptability

πŸ† Accomplishments That We're Proud Of

  • Successfully deployed on-chain underwriting on Starknet Sepolia Testnet
  • Enabled automatic NFT minting for policyholders, ensuring verifiable proof of coverage
  • Built an integrated NestJS backend to manage blockchain transactions and metadata flow
  • Designed and deployed a Next.js frontend to Vercel, offering users a seamless DeFi insurance experience
  • Laid the foundation for an AI-driven risk analytics engine in Django for smarter underwriting decisions

πŸ“š What We Learned

This project taught me that decentralized systems can bring real efficiency to traditional industries β€” but it takes careful design and patience to merge them.

I learned how to:

  • Build modular Cairo smart contracts for Starknet
  • Use NestJS to mediate blockchain and off-chain systems
  • Integrate machine learning services with blockchain workflows
  • Design smooth, Web3-ready UIs using Next.js and Vercel

Most importantly, I learned how automation and transparency can rebuild user trust in insurance.

πŸš€ What's Next for Starknet-Indemnify

The next steps for Starknet-Indemnify include:

  • Completing the AI and ML risk analytics engine in Django to optimize premiums dynamically
  • Expanding support for real-world insurance tokenization and reinsurance liquidity pools
  • Deploying to Starknet mainnet with advanced policy validation and claim scoring
  • Introducing user dashboards and analytics tools for both insurers and policyholders

Ultimately, the mission remains the same β€”

To bring insurance on-chain for everyone β€” transparent, automated, and powered by intelligence.

Built With

Share this project:

Updates