#wallet #key-pair #substrate #bittensor

btwallet

Bittensor wallet — Substrate-based key management, encryption, and signing

1 stable release

4.0.1 Feb 24, 2026

#5 in #bittensor

Download history 132/week @ 2026-02-19 281/week @ 2026-02-26 342/week @ 2026-03-05 97/week @ 2026-03-12 257/week @ 2026-03-19 87/week @ 2026-03-26 217/week @ 2026-04-02 170/week @ 2026-04-09

744 downloads per month
Used in btlightning

MIT license

165KB
3.5K SLoC

btwallet

Substrate-based key management, encryption, and signing for the Bittensor network.

Crates.io Documentation License: MIT

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