synor/crates/synor-sharding/src
Gulshan Yadav 89c7f176dd feat(sharding): add Phase 14 M3 - Sharding Protocol for 100,000+ TPS
- Add synor-sharding crate with full sharding infrastructure
- Implement ShardState with per-shard Merkle state trees
- Implement VRF-based leader election for shard consensus
- Add CrossShardMessage protocol with receipt-based confirmation
- Implement ShardRouter for address-based transaction routing
- Add ReshardManager for dynamic shard split/merge operations
- Implement ProofAggregator for cross-shard verification

Architecture:
- 32 shards default (configurable up to 1024)
- 3,125 TPS per shard = 100,000 TPS total
- VRF leader rotation every slot
- Atomic cross-shard messaging with timeout handling

Components:
- state.rs: ShardState, ShardStateManager, StateProof
- leader.rs: LeaderElection, VrfOutput, ValidatorInfo
- messaging.rs: CrossShardMessage, MessageRouter, MessageReceipt
- routing.rs: ShardRouter, RoutingTable, LoadStats
- reshard.rs: ReshardManager, ReshardEvent (Split/Merge)
- proof_agg.rs: ProofAggregator, AggregatedProof

Tests: 40 unit tests covering all modules
2026-01-19 20:23:36 +05:30
..
error.rs feat(sharding): add Phase 14 M3 - Sharding Protocol for 100,000+ TPS 2026-01-19 20:23:36 +05:30
leader.rs feat(sharding): add Phase 14 M3 - Sharding Protocol for 100,000+ TPS 2026-01-19 20:23:36 +05:30
lib.rs feat(sharding): add Phase 14 M3 - Sharding Protocol for 100,000+ TPS 2026-01-19 20:23:36 +05:30
messaging.rs feat(sharding): add Phase 14 M3 - Sharding Protocol for 100,000+ TPS 2026-01-19 20:23:36 +05:30
proof_agg.rs feat(sharding): add Phase 14 M3 - Sharding Protocol for 100,000+ TPS 2026-01-19 20:23:36 +05:30
reshard.rs feat(sharding): add Phase 14 M3 - Sharding Protocol for 100,000+ TPS 2026-01-19 20:23:36 +05:30
routing.rs feat(sharding): add Phase 14 M3 - Sharding Protocol for 100,000+ TPS 2026-01-19 20:23:36 +05:30
state.rs feat(sharding): add Phase 14 M3 - Sharding Protocol for 100,000+ TPS 2026-01-19 20:23:36 +05:30