Kollektiivse Intelligentsi Eksistentsi Protokoll - Verification layer for everything
Project description
PROOFNEST CORE
Kollektiivse Intelligentsi Eksistentsi Protokoll
Python SDK for PROOFNEST - the verification layer for everything that exists.
Quick Start
# Start API server
python3 api.py
# Use CLI
python3 cli.py stats
python3 cli.py identity create
python3 cli.py proof create --claim "My claim" --issuer did:pn:agent:xxx
Architecture
PROOF = claim + evidence + identity + signature + time + anchor + consensus
┌─────────────────────────────────────────────────────────────┐
│ PROOFNEST CORE │
├─────────────────────────────────────────────────────────────┤
│ cli.py │ Command line interface │
│ api.py │ FastAPI REST API (port 8200) │
├─────────────────────────────────────────────────────────────┤
│ proof.py │ PROOF primitive, Identity, Evidence │
│ consensus.py │ HotStuff-2 BFT, Validator, Vote, QC │
│ anchor.py │ Bitcoin anchoring (OpenTimestamps) │
│ network.py │ P2P gossip protocol │
│ storage.py │ SQLite persistence │
│ blockchain.py │ Go blockchain RPC client │
└─────────────────────────────────────────────────────────────┘
API Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /v1/identities |
Create DID:PN identity |
| GET | /v1/identities |
List identities |
| POST | /v1/proofs |
Create PROOF |
| GET | /v1/proofs/{id} |
Get PROOF |
| POST | /v1/proofs/{id}/verify |
Verify PROOF |
| POST | /v1/validators |
Add validator |
| GET | /v1/validators |
List validators |
| POST | /v1/proofs/{id}/submit-consensus |
Submit to consensus |
| POST | /v1/proofs/{id}/vote |
Vote on PROOF |
| POST | /v1/proofs/{id}/anchor |
Anchor to Bitcoin |
| POST | /v1/proofs/{id}/chain-anchor |
Anchor to blockchain |
| GET | /v1/proofs/{id}/chain-verify |
Verify on blockchain |
| GET | /v1/chain/status |
Blockchain status |
| GET | /v1/stats |
System statistics |
| GET | /health |
Health check |
PROOF Types
CLAIM- Generic assertionIDENTITY- Identity declarationWORK- Work completion proofDECISION- Decision recordTRUTH- Verified truthVALUE- Value transfer
Example: Full Flow
import httpx
API = "http://localhost:8200"
# 1. Create identity
identity = httpx.post(f"{API}/v1/identities", json={
"identity_type": "agent"
}).json()
did = identity["did"]
# 2. Create PROOF
proof = httpx.post(f"{API}/v1/proofs", json={
"issuer_did": did,
"claim": "I completed this task",
"proof_type": "WORK"
}).json()
proof_id = proof["proof_id"]
# 3. Add validators and vote
for _ in range(3):
httpx.post(f"{API}/v1/validators")
validators = httpx.get(f"{API}/v1/validators").json()
httpx.post(f"{API}/v1/proofs/{proof_id}/submit-consensus")
for v in validators["validators"][:2]:
httpx.post(f"{API}/v1/proofs/{proof_id}/vote", json={
"proof_id": proof_id,
"validator_did": v["did"],
"approve": True
})
# 4. Anchor to blockchain
result = httpx.post(f"{API}/v1/proofs/{proof_id}/chain-anchor").json()
print(f"Anchored at height {result['height']}")
Security
- Dilithium3 - Post-quantum digital signatures (NIST PQC)
- SHAKE256 - Quantum-resistant hashing
- HotStuff-2 BFT - Byzantine fault tolerant consensus (67% threshold)
- Bitcoin Anchoring - Immutable timestamping via OpenTimestamps
Dependencies
fastapi
uvicorn
httpx
pqcrypto # Dilithium3
License
Proprietary - Stellanium LTD
Autor: Stellanium AI + Andrus Salumäe Kuupäev: 2026-02-03
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
proofnest-0.2.1.tar.gz
(46.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
proofnest-0.2.1-py3-none-any.whl
(58.0 kB
view details)
File details
Details for the file proofnest-0.2.1.tar.gz.
File metadata
- Download URL: proofnest-0.2.1.tar.gz
- Upload date:
- Size: 46.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5eae5184ce8c1f9a0c38d3a0a204fe514ec06f70d8434f829cf88a67f8d091f8
|
|
| MD5 |
76677067cabede11b068b1882fb8b6c4
|
|
| BLAKE2b-256 |
5ddf245a0a6641ecb596bb9fa1873fe6b7efb267b76246ef53fffc7b7b41aa84
|
File details
Details for the file proofnest-0.2.1-py3-none-any.whl.
File metadata
- Download URL: proofnest-0.2.1-py3-none-any.whl
- Upload date:
- Size: 58.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
988c54b55b810f94396dce327354c4258ab1eb3447ea4879fdfba950454e2a26
|
|
| MD5 |
6945183ead6681741b08c92b003b4a51
|
|
| BLAKE2b-256 |
68e9b9f101d13301ec8b7f2ce95d1fd03a170b32f6eb79b0e64d178dda2d291a
|