DOCS / PROTOCOL / SPECS

Protocol specs

Concrete numeric values, signature schemes, and address formats. Every parameter shown here is the production default; per-chain overrides flow through the genesis JSON.

Token

NameShardoCoin
Symbol$SHARD
Decimals18
Total supply1 000 000 000 SHARD (fixed)
Smallest unitshardoshi (1 SHARD = 10^18 shardoshi)
Min fee0.0001 SHARD = 10^14 shardoshi
Fee split100 % validator · 0 % burn
Inflation rewards400 M SHARD over 10 years (linear)

Consensus

ParameterTestnetMainnet
Slot duration700 ms800 ms
Theoretical max throughput1.43 b/s1.25 b/s
Max TX per block6 0006 000
Max active validators2121
Bootstrap warmup blocks5050
View timeout800 ms2 100 ms
Quorum wait500 ms1 500 ms
NewView accept-ahead3232
Strict justify_qctruetrue
View-change enabledtruetrue

Cryptography

SignaturesEd25519 (32-byte pk, 64-byte sig)
Chain hashingBLAKE3 (32-byte digest)
PoH hashingSHA-256 (CPU SHA-NI accelerated)
Address derivationBLAKE3(pubkey)[..20]
Address encodingbech32m, prefix shard1
Tx serializationborsh (canonical, deterministic)
API serializationJSON via serde

Storage

BackendRocksDB
Column families25
Pruning mode (default)Archive (no pruning)
Block retention (Fast mode)10 000 blocks (off by default)
State root algorithmXOR aggregate over BLAKE3 leaves
Snapshot interval10 000 blocks
Recent blockhash window150 blocks

Networking

Transportlibp2p QUIC (UDP)
Default port30303
DiscoveryKademlia DHT + PEX + DNS seeds + persistent peer-cache
Gossip protocolgossipsub
Sync protocolrequest-response (block + state checkpoint)
Default max peers50
Compact block size (6K TX)~192 KB
Mempool hit rate (compact)~95 %

Staking & slashing

Min stake100 000 SHARD (mainnet) / 1 000 (testnet)
Unbonding period7 governance epochs (~3.5 h)
Governance epoch2 160 blocks (~30 min)
Reward epoch43 200 blocks (~10 h)
Equivocation slash5 % of stake
Downtime slashup to 5 % (capped, per-permille per epoch)
Jail threshold3 consecutive offline epochs
Auto-removal7 consecutive offline epochs
Unjail cooldown10 epochs

Smart contracts (WASM)

Runtimewasmtime 42
Module memory cap16 MB
Block gas limit200 000 000
Transfer gas baseline21 000
SDKshardo-sdk with storage! / entry! macros
DeterminismStorage writes sorted by (contract_addr, key)

Recovery hardening (v5.1.x)

Wipe cooldown60 s (after a fork-recovery wipe)
Recovery action debounce10 s (across all recovery paths)
Post-wipe peer-discovery retry5 s cadence until tip > 0
Auto-fork-recoveryEnabled by default (genesis flag)
Vote registry persistence~5 s heartbeat snapshot
Vote guard fsyncPer-vote (file + parent dir)