Logo Lanfrica

Abelgifted/agri-trust-backend

Domaine:

agriculture

Type de record:

software
Créateur:
Abe
Hôte:
Privacy-preserving subsidy verification backend for OCP Africa # Agri-Trust Backend Privacy-preserving subsidy verification system for OCP Africa's Agribooster program. ## Features - Zero-knowledge proof generation for farmer eligibility - RESTful API for mobile/web integration - Privacy-first architecture (no PII stored) - Audit dashboard for program analytics ## Tech Stack - **Backend:** Python FastAPI - **Database:** PostgreSQL / SQLite - **Blockchain:** Aleo (zero-knowledge proofs) - **Authentication:** JWT tokens ## Setup 1. Clone the repository: ```bash git clone github.com cd agri-trust-backend ``` 2. Create virtual environment: ```bash python -m venv .venv .\.venv\Scripts\activate # Windows ``` 3. Install dependencies: ```bash pip install -r requirements.txt ``` 4. Create `.env` file (see `.env.example`) 5. Run the server: ```bash uvicorn app.main:app --reload ``` 6. Visit API docs: localhost ## API Endpoints - `POST /api/v1/credentials/issue` - Issue credential to farmer - `POST /api/v1/proofs/generate` - Generate ZK proof - `POST /api/v1/proofs/verify` - Verify proof - `GET /api/v1/audit/subsidies` - Get subsidy statistics ## Developer - Backend Developer: [Adaboh Abel] ## License MIT License

Licenses