Credo: "In decentralization there is no trust, only mathematical proofs."
Doctrine: "Subtraction before Construction – No I/O on the Hot Path – Strict 409 Collision Semantics"
Important
🚧 Project Status: Active Development / Pre-Testnet
human-money-node is currently in the active development and testing phase. The implementation of consensus and node subsystems (Phases 0 through 6) is complete and verified with 100% passing tests, but no public live network / testnet nodes are operating yet. The software is currently intended for developers, researchers, and local simulation / integration with human-money-core.
Human Money Node is not a blockchain and not an account ledger, but an ultra-fast, asynchronous Collision Lock Registry that retains live collision state while clients retain full voucher histories (Chain of Authority / Layer 2 for Human Money). Its sole purpose is to mathematically guarantee the uniqueness of cryptographic voucher paths (double-spend prevention) via stealth locking (parent_lock -> child_lock).
humoco-node is the production-ready daemon in pure Rust. It uses native Quinn QUIC transport, a lock-free in-memory RAM index (redb.
# Clone the repository
git clone https://github.com/humoco/human-money-node.git
cd human-money-node
# Build the node daemon (release mode)
cargo build --release -p humoco-node# Create working directory and generate default configuration
./target/release/humoco init --path ~/.humoco
# Generate Ed25519 key pair for the node (secured with POSIX 0600)
./target/release/humoco keygen --out ~/.humoco/node_key.bin./target/release/humoco run --config ~/.humoco/humoco.tomlControl the running node via the local Unix Domain Socket (~/.humoco/data/humoco.sock):
./target/release/humoco status
./target/release/humoco peersflowchart TD
subgraph Aussenwelt["🌍 Tier 1: Public Client Ingress (REST HTTP / Port 8080)"]
direction TB
App1["📱 Wallet / App (Free Tier)\nBLAKE3 PoW Hashcash"] --> GW["🌐 humoco-node Ingress\n(Stateless Gateway)"]
App2["🛒 PoS Terminal / Merchant (VIP Tier)\nQuota Token / SLA < 5ms"] --> GW
end
subgraph Innenwelt["🛡️ Tier 2: Internal Node P2P Mesh (QUIC Port 9090)"]
direction LR
GW -->|"Shard RPC (LockVerify)\nONLY known shards"| ShardA["Node A (Shard)"]
ShardA <-->|"F2F Gossip (Heartbeats)\nONLY direct F2F friends"| ShardB["Node B (Friend)"]
end
Aussenwelt ==>|"Terminated at gateway"| Innenwelt
- Tier 1 – Public Client Ingress (REST / Port 8080):
Open to wallets, PoS terminals, and apps. SupportsPOST /v1/lock(PoS checkout),POST /v1/statusandGET /metrics(Prometheus). - Tier 2 – Internal Node P2P Mesh (QUIC / Port 9090):
Pure node-to-node network. Heartbeats and topology run strictly via F2F friends; shard RPC connections are only established to learned shard peers. Unknown external connections on port 9090 are rejected.
In HuMoCo there are no automatic updates and no remote code execution. The node operator retains full control over their server.
- No Auto-Update: Updates are never executed in the background. The operator decides.
- 2-Minute AI Audit: Before applying an update, any operator (even without programming knowledge) can have an AI review the Git diff. A complete guide with a ready-made prompt is available at:
- 📖
SECURITY.md– Security policy & threat model. - 🤖
prompts/17_update_and_supply_chain_verification.md– Copy-paste prompt for Claude, ChatGPT & Gemini.
- 📖
- Quorum Immunity (14/20): Even if malicious updates run on individual nodes, the 14/20 quorum prevents forged locks. Double-spenders are slashed on Layer 1 via
EquivocationProof.
Pre-configured production templates are located in deploy/:
- Docker & Docker Compose:
cd deploy/docker docker compose up -d - Systemd Service Unit:
Templates for systemd atdeploy/systemd/humoco-node.service. - Reverse Proxy (Caddy / Nginx):
TLS termination and rate limiting atdeploy/caddy/anddeploy/nginx/. - Operations Guide: Detailed documentation in
docs/OPERATIONS.md.
human-money-node/
├── Cargo.toml # Workspace Manifest
├── LICENSE # MIT License
├── SECURITY.md # Node Sovereignty, Threat Model & AI Audit Guide
├── AGENTS.md # Canonical System Context & Iron-Clad Programming Rules
│
├── crates/
│ ├── humoco-sim-core/ # Pure mathematics, state machines, in-memory simulation & DST tests
│ │ ├── src/ # BLAKE3 domain tags, WireHeader, RamIndex, quotas
│ │ └── tests/ # 17 deterministic specification test suites
│ │
│ └── humoco-node/ # Real production daemon
│ ├── src/
│ │ ├── daemon.rs # Tokio runtime & graceful lifecycle
│ │ ├── identity.rs # Ed25519 NodePubKey & Argon2d HrwRoutingId
│ │ ├── storage/ # redb ACID engine, DualTierEngine & async flush
│ │ ├── network/ # Quinn QUIC P2P transport, TLS 1.3 & PeerManager
│ │ ├── ingress/ # 3-tier access control (VIP quota, F2F, BLAKE3 PoW)
│ │ ├── api/ # Axum REST server (/v1/lock, /v1/sync, /metrics)
│ │ └── control/ # UNIX Domain Socket IPC (/tmp/humoco.sock)
│ └── tests/ # E2E cluster, storage, API & network tests
│
├── deploy/ # Docker, Compose, Caddy, Nginx, systemd
├── docs/ # 21 specifications (00 to 20, 99)
└── prompts/ # 17 specialized AI audit prompts
# Test entire workspace (all unit & integration tests)
cargo test --workspace
# Clippy linter with strict warnings
cargo clippy --workspace --all-targets -- -D warningsFor educational, demonstration, and research purposes, humoco-sim-core includes a standalone simulator:
cargo run -p humoco-sim-core --bin humoco_sim -- <command>| Command | Description |
|---|---|
split-brain |
Simulates 20 nodes with 60/40 partition, |
social-defense |
Visualizes botnet detection vs. multi-homed cluster (Dunbar-RED). |
chaos |
30% packet loss + 7/20 node crash with quorum recovery. |
topology |
Tabular overview of all nodes, shards, and attestations. |
This project is licensed under the MIT License.