Skip to content

feat(core): comprehensive bittensor-rs refactor with full Python SDK parity#6

Merged
echobt merged 1 commit intomasterfrom
feat/bittensor-rs-comprehensive-refactor
Feb 1, 2026
Merged

feat(core): comprehensive bittensor-rs refactor with full Python SDK parity#6
echobt merged 1 commit intomasterfrom
feat/bittensor-rs-comprehensive-refactor

Conversation

@echobt
Copy link
Contributor

@echobt echobt commented Feb 1, 2026

Summary

This major refactor brings bittensor-rs to feature parity with the Python bittensor SDK (opentensor/bittensor).

Changes

New Modules

  • Wallet: Complete wallet management with keyfile encryption, mnemonic support, keypair generation, and path traversal protection
  • Axon: HTTP server module for receiving Dendrite requests with middleware support
  • Dendrite: HTTP client module for communicating with Axon servers
  • CLI (btcli): Command-line interface for network operations
  • Logging: Comprehensive logging system with multiple output formats

Enhanced Features

  • Synapse System: SynapseType trait, body hash computation, streaming support
  • Queries: Hyperparameters, associated IPs, commitment queries
  • Governance: Senate operations and proxy account management
  • Error Handling: Comprehensive typed errors for all SDK operations

Code Quality

  • SCALE decoding properly integrated (no hardcoding)
  • Security hardening for keyfile handling and encryption
  • Full clippy compliance with no warnings
  • Proper error handling throughout

Testing

  • cargo check passes
  • All existing tests pass

Stats

  • 49 files changed
  • 17,320 insertions(+), 108 deletions(-)

…parity

This major refactor brings bittensor-rs to feature parity with the Python
bittensor SDK. Key additions include:

## New Modules
- **Wallet**: Complete wallet management with keyfile encryption, mnemonic
  support, keypair generation, and path traversal protection
- **Axon**: HTTP server module for receiving Dendrite requests with middleware
  support
- **Dendrite**: HTTP client module for communicating with Axon servers
- **CLI (btcli)**: Command-line interface for network operations
- **Logging**: Comprehensive logging system with multiple output formats

## Enhanced Features
- **Synapse System**: SynapseType trait, body hash computation, streaming
- **Queries**: Hyperparameters, associated IPs, commitment queries
- **Governance**: Senate operations and proxy account management
- **Error Handling**: Comprehensive typed errors for all SDK operations

## Code Quality
- SCALE decoding properly integrated (no hardcoding)
- Security hardening for keyfile handling and encryption
- Full clippy compliance with no warnings
- Proper error handling throughout
@echobt echobt merged commit 9d88089 into master Feb 1, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant