Skip to main content

The chain-defined compute core for Bittensor clients: sp-core keys, keyfiles, drand timelock, ML-KEM, SCALE codec, and RFC-0078 metadata digest, built from the bittensor monorepo

Project description

bittensor-core

The chain-defined compute core for Bittensor clients, as a single Python extension module (import bittensor_core). Built from the bittensor monorepo against the same crate revisions as the subtensor runtime itself.

What lives here (one rule): everything whose right answer is defined by the chain — sp-core key primitives (sr25519/ed25519, SS58), keyfile encryption/decryption, drand timelock encryption, ML-KEM-768, the SCALE codec and runtime-metadata engine, extrinsic assembly, and the RFC-0078 merkleized-metadata digest. Product decisions (intents, policy, CLI UX, transports) stay in the Python SDK.

This package replaces and supersedes py-sp-core and bittensor-drand.

Install

pip install bittensor-core

Wheels ship for manylinux (x86_64, aarch64) and macOS (arm64, x86_64); the sdist builds anywhere with a Rust toolchain.

Ledger support (LedgerDevice, HID) is compiled into every wheel. On Linux the HID transport talks to hidraw directly (no libudev, no C), so the manylinux wheels carry it too; you only need the usual udev rules so the device is accessible from userspace.

Development

The Rust logic lives in the sibling bittensor-core crate; this crate is bindings only. Build a development wheel from the repo root:

uvx maturin develop -m sdk/bittensor-core-py/Cargo.toml

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bittensor_core-0.1.0rc9.tar.gz (276.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

bittensor_core-0.1.0rc9-cp310-abi3-manylinux_2_28_aarch64.whl (5.2 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

bittensor_core-0.1.0rc9-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

bittensor_core-0.1.0rc9-cp310-abi3-macosx_11_0_arm64.whl (4.7 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

bittensor_core-0.1.0rc9-cp310-abi3-macosx_10_12_x86_64.whl (4.6 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file bittensor_core-0.1.0rc9.tar.gz.

File metadata

  • Download URL: bittensor_core-0.1.0rc9.tar.gz
  • Upload date:
  • Size: 276.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for bittensor_core-0.1.0rc9.tar.gz
Algorithm Hash digest
SHA256 3f4a0a0de3abf3dbbc4de03dd438f7eec6b002635a2de2c3fa13f9cba2044868
MD5 b67ad3d1ad9e9756e4050589ed50aa00
BLAKE2b-256 b5b3e820d160eb5d07a28057ec7764c7415577f29b6fb8fcc42057e79c5da21b

See more details on using hashes here.

File details

Details for the file bittensor_core-0.1.0rc9-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

  • Download URL: bittensor_core-0.1.0rc9-cp310-abi3-manylinux_2_28_aarch64.whl
  • Upload date:
  • Size: 5.2 MB
  • Tags: CPython 3.10+, manylinux: glibc 2.28+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for bittensor_core-0.1.0rc9-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7cf50dda9b0b9bb437cc7468685672bb6eb65a755132ded6cb74bd90a42109ea
MD5 fdb12b3f52a0ad8ac002d69867e7e69f
BLAKE2b-256 8e7a2e846220982ef73c1c1555ec9dc9bbf5419ac063e58a43b75e5bf3391351

See more details on using hashes here.

File details

Details for the file bittensor_core-0.1.0rc9-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: bittensor_core-0.1.0rc9-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 5.2 MB
  • Tags: CPython 3.10+, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for bittensor_core-0.1.0rc9-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8da5be08a70b3c745ce2dbf9310c9b6cd7d291c59afdace4e80e873f0ab4528c
MD5 671a6b7bfe75b24619d155031429eacf
BLAKE2b-256 1cf5c92a49a6e598ab84f1ed93f6edf70ccea010d295b1b6b54ac1e06d95c176

See more details on using hashes here.

File details

Details for the file bittensor_core-0.1.0rc9-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

  • Download URL: bittensor_core-0.1.0rc9-cp310-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 4.7 MB
  • Tags: CPython 3.10+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for bittensor_core-0.1.0rc9-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 33a3e472f8b6ab2b74c7aa27aa41fbd0364b1b3060da2903a0106f73e12639c9
MD5 e294e56425eede21f33f8773ddefa612
BLAKE2b-256 efcfabdc2be5e669d9ecb1dfc454325f4e1791ef437db616da7f8542a29a8658

See more details on using hashes here.

File details

Details for the file bittensor_core-0.1.0rc9-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: bittensor_core-0.1.0rc9-cp310-abi3-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 4.6 MB
  • Tags: CPython 3.10+, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for bittensor_core-0.1.0rc9-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 be1a44b06374c3e0a5b1a2bbf9bf530cbf9330dc6729f85e06ea5cbfc281e2cf
MD5 33ca27391fad30b4a90d78948207c491
BLAKE2b-256 adeb1e7219f5d5cbd09d57283fe97a3e4d5d6eead2e638a1717e431e6dc53d31

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page