Logo Lanfrica

aselvicta/PastoralProtect

Domain:

climatesocioeconomic

Record type:

software
Creator:
ase
Host:
PastoralProtect is a decentralized climate-risk system that automates drought-based livestock protection. Using satellite data, oracles, and smart contracts, it triggers instant payouts without manual claims, bringing fast, transparent, and trusted financial relief to pastoral communities in Tanzania. # PASTORALPROTECT Fresh Code for Hackathon Submission · Infrastructure & Digital Rights Track PastoralProtect is climate risk infrastructure specifically designed for pastoralists, not just anotther app. It integrates verifiable NDVI-style triggers, Filecoin/IPFS-ready decentralized storage, optional Solidity pool validation, and mobile-money-style payout rails. This empowers insurers, cooperatives, NGOs, and governments to deliver automatic, transparent protection—eliminating manual claims and on-the-ground field inspections. --- ## PROBLEM STATEMENT Pastoralists in drought-prone areas often lose livestock due to climate shocks. Traditional insurance coverage fails them with manual claims processing, slow verification, complex paperwork, and unreliable connectivity—leading to delayed or denied payouts and limiting the scalability of relief. --- ## SOLUTION OVERVIEW We have developed a rules-first pipeline that follows these steps: 1. Enroll the user. 2. Archive NDVI bundles to IPFS (Filecoin ecosystem) with SHA-256 integrity. 3. Oracle verifies retrieval before any payouts execute. 4. On-chain validation: Uses `validateAndPayout` for full auditability. 5. Mock M-Pesa demo payouts: Ensures end-to-end demo flow. 6. Role-based access: JWT roles (`ADMIN`, `ORACLE`, `USER`) control dashboards; --- ## ARCHITECTURE DIAGRAM ``` [ PASTORALIST / USSD / WEB ] │ ▼ ┌───────────────────────┐ │ FASTAPI (PYTHON) │ Pydantic · SQLAlchemy · async IPFS upload │ policies · zones │ │ oracle · payments │ │ auth (JWT roles) │ └──────────┬────────────┘ │ canonical JSON + CID + hash ▼ ┌───────────────────────┐ │ IPFS / FILECOIN PIN │ web3.storage-compatible HTTP (or local mock CIDs) └──────────┬────────────┘ │ ┌──────────▼────────────┐ │ VERIFIABLE ORACLE │ fetch CID · verify SHA-256 · tamper rejection └──────────┬────────────┘ │ ┌──────────▼────────────┐ ┌──────────────────┐ │ PASTORALPROTECTPOOL │◄─────────│ web3.py txs │ oBase …

Languages

Licenses