Commit 8bac6e9
committed
feat(challenge-sdk): add P2P chain storage module
Complete distributed storage system for challenges with:
- Proposal/Acceptation protocol for data validation
- Custom validators per challenge (ProposalValidator trait)
- Consensus mechanism (2/3+ stake-weighted votes)
- Data categories: AgentSubmission, EvaluationResult, TaskResult, ConsensusScore, ExecutionLog
- Helper types: AgentSubmissionData, EvaluationResultData, TaskResultData, ConsensusScoreData
- P2P messages for sync, proposals, votes, consensus announcements
- ChainStorageState for managing pending proposals and committed data1 parent a2149e4 commit 8bac6e9
2 files changed
Lines changed: 1160 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| 87 | + | |
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| |||
0 commit comments