1 stable release
| 4.0.1 | Feb 24, 2026 |
|---|
#5 in #bittensor
744 downloads per month
Used in btlightning
165KB
3.5K
SLoC
btwallet
Substrate-based key management, encryption, and signing for the Bittensor network.
Overview
btwallet provides wallet creation, mnemonic-based key derivation, keyfile encryption/decryption (NaCl, Ansible Vault, Fernet), and SS58 address utilities for Bittensor.
Usage
[dependencies]
btwallet = "4"
use bittensor_wallet::keyfile;
use bittensor_wallet::keypair::Keypair;
let keypair = Keypair::create_from_mnemonic("your twelve word mnemonic ...");
Features
| Feature | Description |
|---|---|
| (default) | Pure Rust — no Python dependency |
python-bindings |
Enables PyO3 bindings for use from Python |
extension-module |
Builds as a Python extension module (used by maturin) |
vendored-openssl |
Vendors OpenSSL for static linking |
Python package
This crate also powers the bittensor-wallet Python package on PyPI. If you're looking for the Python SDK, see the README.
License
MIT
Dependencies
~39–56MB
~622K SLoC