Trust but verify.
A simple FastAPI proxy for chat/completitons with ed25519 signing and Bittensor metagraph integration
Miners can opt-in and proxy their LLM requests through a verifier, which will forward their request to the defined provider and respond back with a signed response + proof. The response with proof is submitted to the querying Validator who can independently verify the proof and adjust rewards if applicable.
- local miners are excluded from this implementation
- ed25519 keys are ephemeral
B64_PRIVATE_KEY=ed25519 key
DATABASE_URL=postgres db
OPENROUTER_KEY=sk-or-v1-xxxxx
OPENAI_KEY=sk-xxxxx
HOTKEY=your-miner-hotkey
uv sync
uv run uvicorn app.main:appstart the server first then:
uv run pytestServer runs on http://127.0.0.1:8000
GET /- rootGET /health- healthGET /log- verified logGET /providers- provider pingsGET /public_key- public keyGET /is_verified- miner verified lookupPOST /v1/chat/completions- Proxy endpoint
MIT
