This connects Claude to a cryptocurrency blockchain with concentration decay mechanics, where large holdings automatically redistribute to miners over time. The MCP exposes wallet operations (create, restore, balance checks, address generation), transaction building and sending, and node queries through JSON-RPC (chain height, block data, mempool info, UTXO lookups by address). You'd reach for this when building AI agents that need on-chain wallets with reputation systems, or when you want Claude to interact with a blockchain designed around wealth circulation rather than accumulation. The underlying implementation uses Ed25519 signatures, BLAKE3 Merkle trees, and libp2p networking, with all consensus math in fixed-point u64 arithmetic. Supports mainnet, testnet, and regtest modes with full node, mining, and HD wallet functionality.
Wealth should flow like water.
A cryptocurrency with progressive concentration decay. Holdings above configurable thresholds gradually decay back into the mining pool, promoting circulation and discouraging long-term hoarding.
Rill implements a novel economic model where concentrated wealth naturally flows back into circulation through a mathematically-governed decay mechanism. Large balances above threshold values experience sigmoid-function-based decay, with decayed funds returning to miners as supplemental block rewards.
The project is implemented in Rust across 6 library crates and 3 binaries, with over 920 tests including unit, integration, property-based, and adversarial test coverage.
u64 fixed-point arithmetic (10^8 precision) — no floating pointcurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
git clone https://github.com/rillcoin/rill.git
cd rill
# Build all binaries
cargo build --release
# Run all 920+ tests
cargo test --workspace
# Check for warnings
cargo clippy --workspace -- -D warnings
# Start a regtest node (instant blocks, no real PoW)
./target/release/rill-node --regtest --data-dir /tmp/rill-regtest
./target/release/rill-cli wallet create --network testnet
./target/release/rill-miner \
--rpc-endpoint http://127.0.0.1:38332 \
--mining-address trill1<your-address>
docker-compose up --build
rill-core Foundation types (Transaction, Block, Address, UTXO, traits)
|
rill-decay Concentration decay algorithm — sigmoid curves, fixed-point math
|
rill-consensus Block validation, PoW, difficulty adjustment, mining rewards
|
rill-network P2P networking (libp2p: Gossipsub, Kademlia, Noise, mDNS)
|
rill-wallet HD wallet, BIP-39 mnemonics, decay-aware coin selection
|
rill-node Full node: RocksDB storage, JSON-RPC server, mempool
See docs/ARCHITECTURE.md for a detailed description of every crate, the storage column families, network protocol, and design decisions.
rill/
├── crates/
│ ├── rill-core/ # Core types, traits, crypto, constants
│ ├── rill-decay/ # Sigmoid decay algorithm (fixed-point, integer-only)
│ ├── rill-consensus/ # Block production, validation, PoW, difficulty
│ ├── rill-network/ # P2P networking (libp2p)
│ ├── rill-wallet/ # HD wallet, coin selection, encrypted persistence
│ ├── rill-node/ # Full node library: storage, RPC, mempool
│ └── rill-tests/ # Integration, property-based, and adversarial tests
├── bins/
│ ├── rill-node/ # Full node binary
│ ├── rill-cli/ # Command-line wallet and node query tool
│ └── rill-miner/ # Standalone mining daemon
├── docs/
│ ├── ARCHITECTURE.md # Technical architecture overview
│ └── TESTNET.md # Testnet and deployment guide
├── Dockerfile # Multi-stage build (rust:1.85-bookworm → debian:bookworm-slim)
└── docker-compose.yml # 3-node local testnet
| Mode | Flag | P2P Port | RPC Port | Description |
|---|---|---|---|---|
| mainnet | (default) | 18333 | 18332 | Production network |
| testnet | --testnet | 28333 | 28332 | Public test network |
| regtest | --regtest | 38333 | 38332 | Local dev network, instant blocks |
# Node
rill-node --testnet --data-dir /tmp/rill
rill-node --regtest --data-dir /tmp/rill --no-network
# Miner
rill-miner --rpc-endpoint http://127.0.0.1:18332 --mining-address rill1...
# Wallet
rill-cli wallet create --network testnet
rill-cli wallet restore --network testnet
rill-cli address
rill-cli balance --rpc-endpoint http://127.0.0.1:28332
rill-cli send --to trill1... --amount 10.5 --rpc-endpoint http://127.0.0.1:28332
# Node queries
rill-cli getblockchaininfo --rpc-endpoint http://127.0.0.1:28332
rill-cli getsyncstatus
rill-cli getpeerinfo
rill-cli validateaddress rill1...
Available JSON-RPC methods:
| Method | Description |
|---|---|
getblockcount | Current chain height |
getblockhash | Block hash at a given height |
getblock | Full block data |
getblockheader | Block header fields |
gettransaction | Transaction by ID |
sendrawtransaction | Submit a raw transaction |
getmempoolinfo | Mempool size and fee info |
getblockchaininfo | Height, supply, decay pool, IBD status, UTXO count |
getsyncstatus | Sync state, height, peer count |
getpeerinfo | Connected peer count |
getinfo | General node info |
getblocktemplate | Block template for mining |
submitblock | Submit a mined block |
getutxosbyaddress | UTXOs for an address |
getclusterbalance | Decay cluster total balance |
See docs/TESTNET.md for full RPC documentation with request/response examples.
cargo fmt (default settings)cargo clippy -- -D warnings (zero warnings policy)checked_add, checked_mul, etc.thiserror for library crates, anyhow for binariestracing with structured fields# All tests
cargo test --workspace
# Integration tests only
cargo test -p rill-tests
# Property-based tests (faster in release mode)
cargo test --release proptest
# Benchmarks
cargo bench
<agent>/<description> (e.g., core/implement-transaction-type)<crate>: <description> (e.g., rill-core: implement Transaction struct)cargo test --workspace before committingThe decay algorithm operates on individual UTXOs grouped into clusters:
All decay calculations use integer-only fixed-point arithmetic with u64 for consensus determinism.
See docs/ARCHITECTURE.md for the full mathematical specification.
/rill/blocks/1 and /rill/txs/1| Column Family | Contents |
|---|---|
blocks | Full block data |
headers | Block headers |
utxos | Unspent transaction output set |
height_index | Height-to-hash mapping |
undo | Undo data for chain reorganizations |
metadata | Chain tip, UTXO count, and misc metadata |
clusters | Aggregate cluster balances for decay |
address_index | Address-to-UTXO index |
.claude/skills/architecture/ — Architectural Decision Records.claude/skills/decay-mechanics/ — Mathematical specificationBefore submitting changes:
cargo test --workspacecargo clippy --workspace -- -D warningscargo fmt --checkThis project uses specialized subagents for development. See .claude/agents/ for the agent architecture.
Licensed under either of:
at your option.
"Wealth should flow like water."
RillCoin explores what happens when concentrated wealth naturally circulates rather than accumulating indefinitely. The decay mechanism is transparent, predictable, and governed by mathematics rather than discretion.
Large holders can avoid decay by spending, distributing holdings across multiple addresses, or participating in the economy rather than purely accumulating. The goal is a cryptocurrency that remains liquid and accessible, where the economic incentives favor circulation over concentration.
Status: Phase 4 implementation complete. Full node, wallet, and miner binaries functional. 920+ tests. Testnet deployment ready.
RILL_FAUCET_URLFaucet API base URL
RILL_EXPLORER_URLExplorer API base URL
io.github.ericm1018/skillfm-llm-cost-optimizer-openai-anthropic-usage
io.github.mikerawsonnz/llm-orchestration-agent
io.github.mikerawsonnz/authenticated-llm-agent
labforgedev/copilot-memory-mcp
csoai-org/agent-prompt-injection-firewall-mcp
io.github.mikerawsonnz/authenticated-multi-llm-agent