"What if money wasn't backed by gold, government decrees, or wasted electricity—but by the sweat of your brow?"
HumanEffortCoin (HEC) is an experimental economic protocol and simulation that explores a radical question: Can we tokenize human time itself?
This repository contains a fully functional Economic Oracle & Simulation that demonstrates this concept in action. It is not just code; it is a provocation.
- 🧠 The Philosophy: Proof-of-Labor
⚠️ The Dystopian Reality & Risks- 🏗️ How This Project Implements It
- 🚀 Quick Start Simulation
- 🛠️ Technical Architecture
- 🔮 Future Workarounds (ZK-Proofs)
- Fiat Currency: Backed by government trust, prone to inflation.
- Gold: Backed by scarcity, hard to transport/divide.
- Bitcoin (Proof-of-Work): Backed by computational energy expenditure. It proves you wasted electricity to solve a puzzle.
- Ethereum (Proof-of-Stake): Backed by capital. Money makes more money.
HEC proposes Proof-of-Labor (PoL). The fundamental unit of value is the Verified Human Hour.
If a currency is backed by human time—the one resource that is finite for every human regardless of status—it creates an intrinsically egalitarian economy. 1 Hour of a CEO's time = 1 Hour of a Janitor's time (in the purest sense of time scarcity).
The Formula:
Minted HEC = (Time_Spent) × (Skill_Complexity_Multiplier) × (Quality_Score)
In this system, you don't "mine" coins with a GPU. You "mine" coins by doing things: planting trees, writing code, cleaning streets, or learning a new language.
While the ideal is noble, implementing this in the real world faces terrifying challenges. This project serves as a simulation to study these failure points.
The Challenge: How does a digital blockchain know you actually cleaned the street? The Failure Mode: It requires total surveillance. To verify labor, the system needs GPS data, heart rate monitors, camera feeds, and constant telemetry. The Risk: This creates a "panopticon" economy where privacy is traded for income.
The Challenge: If every action has a monetary value, intrinsic motivation dies. The Failure Mode: People stop doing good deeds because "it's the right thing to do" and start doing them only "if the bounty is high enough." The Risk: A hyper-capitalist nightmare where a mother asks for payment to care for her child because it's "Care Labor."
The Challenge: The "Verifier" is an AI Agent (as simulated in this project). The Failure Mode: If the AI is trained on biased data, it might reject the labor of certain demographics or fail to recognize non-standard forms of work. The Risk: Systemic economic exclusion hard-coded into the currency itself.
This codebase is a Simulation of the Protocol. It does not solve the Oracle Problem but assumes a "Perfect Oracle" to study the economic effects.
This script acts as the God Mode. It:
- Generates synthetic users (Workers).
- Simulates them performing tasks (e.g., "Gardening", "Coding").
- Generates "Evidence" (Mock GPS logs, image hashes).
This is the AI Oracle. It:
- Receives the evidence.
- "Verifies" it (in this sim, it checks probability and metadata).
- Decides whether to Mint or Reject.
Unlike a blockchain, we use a simple SQL database for this prototype to track:
Users: The workers.TaskSubmissions: The labor performed.SystemConfig: The global economic parameters.
The frontend visualizes this invisible economy, showing the flow of human effort turning into digital value.
Want to watch this economy run on your machine?
- Python 3.9+
- Node.js 16+
git clone https://github.com/sohamds1/human-effort-coin.git
cd human-effort-coin
# Backend
pip install fastapi uvicorn sqlalchemy
# Frontend
cd hec-dashboard
npm installOpen 3 Terminal Windows:
Terminal 1 (The API):
cd hec-core
python -m uvicorn api.main:app --port 8000 --reloadTerminal 2 (The Simulation):
# Windows
$env:PYTHONIOENCODING='utf-8'
python hec-core/genesis_driver.pyTerminal 3 (The Dashboard):
cd hec-dashboard
npm run devVisit http://localhost:5173 to watch the economy evolve.
How do we solve the Dystopian Surveillance problem?
The theoretical solution (not implemented here) is Zero-Knowledge Proofs (ZKPs).
- Concept: A user proves they did the work without revealing the raw data.
- Example: Your phone proves you walked 5 miles using accelerometer data, but does not reveal your GPS location history to the network.
- Hardware Oracles: Trusted Enclave hardware (like Apple's Secure Enclave) signs the data locally. The network trusts the signature, not the raw video feed.
This project is the first step: Proving the Economy works. The next step is Proving the Privacy works.
MIT License. Fork it. Fix it. Break it.