Alpha · Multi-validator consensus not yet live · Patent Pending

4/4 node endpoints reachable · SIMULATED in staging (no real node contacted)
DEMOProtocol status: record-level verification. Cryptographic consensus checks (BFT rounds, BLS signature validation, anti-replay) are simulated — awaiting validator engine.
HCP — High-Consistency Protocol

The Fastest Distributed Settlement Engine on Earth

A production-grade, Rust-native distributed transaction system targeting 1–10k+ TPS per shard and scaling to millions of TPS via horizontal sharding, pipelined BFT consensus, off-chain channels, and aggregated Merkle settlement. Byzantine fault-tolerant up to ⌊(n−1)/3⌋ failures. Sub-2s finality. No JSON. No REST. No blocking I/O.

Rust · Async (Tokio)
Bincode / Protobuf
QUIC + TCP P2P
Ed25519 Signatures
Rayon Parallelism
Conflict-Free Exec

Performance Targets

Per-Shard TPS

5k – 15k

TPS

100-Shard Fleet

500k – 1.5M

TPS

Finality Target

< 2s

goal

Block Time

100 – 300

ms

BFT Fault Tol.

⌊(n-1)/3⌋

nodes

Batch Window

50 – 100

ms

Global Architecture

Users / Clients

QUIC · WebSocket · Ed25519

▼

Edge Layer (L0)

Local state · off-chain first

▼

Transaction Router (L1)

Consistent hash · geo-aware

▼

HCP Shards (L2)

Pipelined BFT · parallel exec

▼

Off-Chain Channels (L3)

Instant · dispute-safe

▼

Aggregated Settlement (L4)

Merkle root · 1000:1 batching

Layer Deep Dives

Layer 0

Edge / Client

›Local state cache — avoids consensus unless required
›QUIC + WebSocket transports for sub-5ms client RTT
›Client-side Ed25519 transaction signing
›Temporary balance channels (off-chain first)
›Optimistic local execution before submission

Reference Implementation

Rust
// QUIC client transport (zero-copy recv)
async fn connect(endpoint: &str) -> QuicStream {
    let cfg = QuicClientConfig::new()
        .keep_alive_interval(Duration::from_secs(5))
        .max_idle_timeout(Duration::from_secs(30));
    QuicStream::connect(endpoint, cfg).await.unwrap()
}

fn sign_tx(tx: &Transaction, sk: &SigningKey) -> Signature {
    sk.sign(&bincode::serialize(tx).unwrap())
}

Pipelined BFT Consensus

Block
Propose
PreVote
Vote
Commit
Block N
—
—
—
COMMITTING
Block N+1
—
—
VOTING
—
Block N+2
—
PREVOTING
—
—
Block N+3
PROPOSING
—
—
—

Four blocks in-flight simultaneously. Throughput is limited by execution speed, not consensus rounds.

Binary P2P Message Types

TypeDirectionDescription
ProposalLeader → AllNew block proposal with tx batch, prev_hash, proposer sig
PreVoteAll → AllFirst-round vote after proposal validation
VoteAll → AllSecond-round commit vote once 2f+1 prevotes seen
CommitLeader → AllFinal commit message; block is irreversible
PingAll → AllHealth probe — latency measurement, liveness signal

Core Data Structures

Transaction

idTxIdBlake3 hash of payload
payloadBytesOpaque binary payload (bincode)
fromAccountIdSource account (32-byte pubkey)
toAccountIdDestination account
amountu64Fixed-point amount (no floats)
nonceu64Replay protection
signatureSignatureEd25519 over id + payload
timestampu64Unix ms — for batching window

Block

block_idBlockIdHash of header fields
transactionsVec<TxId>Ordered tx references
proposerNodeIdLeader node pubkey
previous_hashBlockIdParent block ID
state_rootHashMerkle root after execution
timestampu64Proposal time Unix ms
heightu64Monotonic block height

ConsensusMsg

typeMsgTypeProposal | PreVote | Vote | Commit
block_idBlockIdBlock this message refers to
heightu64Block height
roundu32View/round number
node_idNodeIdSender identity
signatureSignatureEd25519 over (type, block_id, height)

What This System Explicitly Avoids

Every decision below represents a hard performance or safety constraint — not a preference.

✗

HTTP/REST per-call

TCP handshake + HTTP overhead per message — 5-50ms penalty

✗

JSON in hot path

Allocating, UTF-8 encoding, schema-less — 10× slower than bincode

✗

Blocking I/O

Stalls the async executor — cascades into latency spikes

✗

Single-tx consensus

Wastes pipeline capacity — always batch 100–1000 transactions

✗

Await full round

Serial throughput only — must pipeline N, N+1, N+2 concurrently

✗

Large validator sets

>7 validators exponentially increases O(n²) message complexity

✗

Float arithmetic

Non-deterministic across CPU models — use u64 fixed-point only

✗

Sync Mutex in exec

Serialises parallel execution — use lock-free structures or RwLock

Horizontal Scaling Model

Per-Shard Throughput

4–7 validators, same-region. 5,000–15,000 TPS per shard with 100–300ms block time and 50–1000 tx batches. Pipelining keeps all cores busy.

100-Shard Fleet

Linear scale: 100 shards × 10,000 TPS = 1,000,000 TPS fleet-wide. Cross-shard is minimised by consistent-hash routing of related accounts.

Off-Chain Multiplier

State channels bypass consensus entirely. For recurring payment pairs, 99%+ of volume never hits L2. Effective throughput: unbounded.

ShardsPer-Shard TPSFleet TPSValidatorsFinality
110,00010,0007< 1s
1010,000100,00070< 1.5s
10010,0001,000,000700< 2s
100010,00010,000,0007,000< 2s

Rust Workspace Layout

hcp-net

QUIC transport
TCP fallback
Peer manager
Binary framing
Connection pool

hcp-consensus

BFT pipeline
Leader election
View change
Vote aggregator
Block producer

hcp-exec

Conflict graph
Rayon pool
State trie
Fixed-point math
Determinism checks

hcp-router

Consistent hash
Geo routing
Shard registry
Failover
Sticky sessions
Staging · simulated settlement · not network finality