Skip to content

Commit b8a82d6

Browse files
committed
docs: detail p2p weighted consensus
Expand validator and challenge docs with stake-weighted consensus flow. Describe commit-reveal and epoch boundary aggregation details.
1 parent c378bc9 commit b8a82d6

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

docs/challenge-integration.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ Validators evaluate challenges locally and publish weight commitments over the P
2626

2727
These aggregated weights are submitted to Bittensor as the subnet’s consensus output.
2828

29+
### Weight Aggregation at Epoch Boundaries
30+
31+
At the epoch boundary, validators aggregate the revealed weights with a stake-weighted sum to produce the canonical weight matrix and a deterministic state hash. Validators reject late or mismatched reveals to keep the final aggregation deterministic. The finalized aggregation is the only weight matrix submitted back to Bittensor for the epoch.
32+
2933
## Architecture
3034

3135
```text

docs/validator.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,19 @@ Platform validators run as a fully peer-to-peer network with no centralized fall
2727

2828
Consensus is driven by validator weights derived from challenge evaluations. The validator set is stake-weighted, meaning higher-stake hotkeys carry more voting power when aggregating challenge results.
2929

30-
1. **Stake-weighted validator set**: Each validator’s voting power is proportional to its Bittensor stake in the metagraph.
30+
1. **Stake-weighted validator set**: Each validator’s voting power is proportional to its Bittensor stake in the metagraph. The active validator set is refreshed from the metagraph as epochs advance.
3131
2. **Challenge evaluation**: Validators execute the active challenges, producing raw scores for miners or submissions.
3232
3. **Commit-reveal weights**: Validators commit their weight vectors during the commit phase and reveal them in the reveal phase, preventing copycat behavior.
3333
4. **Epoch boundary aggregation**: At the end of each epoch, revealed weights are aggregated using stake weighting to compute the canonical weight matrix.
3434
5. **Consensus agreement**: Validators finalize the epoch by agreeing on the aggregated weights and resulting state hash over the P2P mesh.
3535
6. **Weight submission**: The finalized weight matrix is submitted back to Bittensor as the subnet consensus output.
3636

37+
### Epoch Timeline
38+
39+
- **Commit window**: Validators broadcast weight commitments over libp2p.
40+
- **Reveal window**: Validators reveal the committed weights to peers.
41+
- **Aggregation window**: Stake-weighted aggregation finalizes the epoch weights and state hash.
42+
3743
---
3844

3945
## Quick start for validators

0 commit comments

Comments
 (0)