Commit 0614e74
EchoBT
feat: Add high-level Subtensor API with intelligent set_weights
- Add new subtensor module with Subtensor struct (like Python SDK)
- Implement automatic commit-reveal detection and routing:
- CRv4 (version >= 4): Timelock encryption with DRAND auto-reveal
- Legacy (version < 4): Hash-based commit-reveal with persistence
- Direct: When commit-reveal is disabled
- Add SubtensorBuilder for configuration
- Add WeightResponse with tx_hash and metadata
- Add persistence for pending commits (legacy mode)
- Re-export mechanism functions and Subtensor types1 parent 39e6ea3 commit 0614e74
2 files changed
Lines changed: 888 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
0 commit comments