Skip to main content

QUIC transport layer for Bittensor

Project description

Ligh𝞽ning

Rust QUIC transport layer for Bittensor

Persistent QUIC connections with sr25519 handshake authentication for validator-miner communication.

Python

pip install btlightning
from btlightning import Lightning

client = Lightning(wallet_hotkey="5GrwvaEF...")
client.set_python_signer(my_signer_callback)
client.initialize_connections([
    {"hotkey": "5FHneW46...", "ip": "192.168.1.1", "port": 8443}
])
response = client.query_axon(
    {"hotkey": "5FHneW46...", "ip": "192.168.1.1", "port": 8443},
    {"synapse_type": "MyQuery", "data": {"key": "value"}}
)

Rust

[dependencies]
btlightning = "0.1"
use btlightning::{LightningClient, Sr25519Signer, QuicAxonInfo, QuicRequest};

let mut client = LightningClient::new("5GrwvaEF...".into());
client.set_signer(Box::new(Sr25519Signer::from_seed(seed)));
client.initialize_connections(vec![
    QuicAxonInfo::new("5FHneW46...".into(), "192.168.1.1".into(), 8443, 4, 0, 0)
]).await?;

Build from source

cargo build -p btlightning
maturin develop --manifest-path crates/btlightning-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

btlightning-0.1.1.tar.gz (37.8 kB view details)

Uploaded Source

Built Distributions

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

btlightning-0.1.1-cp38-abi3-manylinux_2_34_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.34+ x86-64

btlightning-0.1.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.9 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

btlightning-0.1.1-cp38-abi3-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

btlightning-0.1.1-cp38-abi3-macosx_10_12_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file btlightning-0.1.1.tar.gz.

File metadata

  • Download URL: btlightning-0.1.1.tar.gz
  • Upload date:
  • Size: 37.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for btlightning-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2dcba90aca29bf54a866f10edd3c69bb16dff826daae1f1c8ef81d477a7f0b6d
MD5 958e9ad7c9c9fa7e6e57bfcb32117ed6
BLAKE2b-256 0f2ba838df4218a8fc71b20b37133d96cbe5939802377885c731f9cb91bb5335

See more details on using hashes here.

Provenance

The following attestation bundles were made for btlightning-0.1.1.tar.gz:

Publisher: release.yml on inference-labs-inc/lightning

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file btlightning-0.1.1-cp38-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for btlightning-0.1.1-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 53b870ff6e48502d9c2497e65aea31ff9b1a8e6e5a97baca10e0dc757afaf919
MD5 40d62232dbc641c01efea97116f722b9
BLAKE2b-256 5c49cb3b25d97aeed28acf0ee00a78457aa93f66676d8d841c35d2a8851b6eb1

See more details on using hashes here.

Provenance

The following attestation bundles were made for btlightning-0.1.1-cp38-abi3-manylinux_2_34_x86_64.whl:

Publisher: release.yml on inference-labs-inc/lightning

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file btlightning-0.1.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for btlightning-0.1.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 85c789269c1b8fbc705b6c9ab4942924d3f759a3dced04b27748f60b58be9fea
MD5 b4357b7bfb2072da550e2de51c391b1a
BLAKE2b-256 72f6939e03b9b4eb6c4017ddea9b7879bb7f2bed453c60456427d9848bd0ac5d

See more details on using hashes here.

Provenance

The following attestation bundles were made for btlightning-0.1.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yml on inference-labs-inc/lightning

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file btlightning-0.1.1-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for btlightning-0.1.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9ddf96c8f6b30910d64672651ff5397a4e4fb7f5ca543fad3b2fbdaeb3246077
MD5 3027e1bf4c6d23cb9529c93e152011e6
BLAKE2b-256 cb6fd9f017e059012f1def742a1c24b78346fd0a08b97ae4ad6dbc15d007fa0f

See more details on using hashes here.

Provenance

The following attestation bundles were made for btlightning-0.1.1-cp38-abi3-macosx_11_0_arm64.whl:

Publisher: release.yml on inference-labs-inc/lightning

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file btlightning-0.1.1-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for btlightning-0.1.1-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ae345043effdb9b44b55828eb0de11f33424289d84f0f255033c1f9b9bb43679
MD5 51aaf13ee71ed3b064198a589d5a332f
BLAKE2b-256 0acac24622fd6b627150100fb056ff4de13a877bea08643e19f250ee8f659df3

See more details on using hashes here.

Provenance

The following attestation bundles were made for btlightning-0.1.1-cp38-abi3-macosx_10_12_x86_64.whl:

Publisher: release.yml on inference-labs-inc/lightning

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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