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.2.tar.gz (54.7 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.2-cp312-cp312-manylinux_2_38_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.38+ x86-64

btlightning-0.1.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

btlightning-0.1.2-cp312-cp312-macosx_11_0_arm64.whl (4.5 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: btlightning-0.1.2.tar.gz
  • Upload date:
  • Size: 54.7 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.2.tar.gz
Algorithm Hash digest
SHA256 9f9f0b56ebcc6ccc3082d198a13f50769a71322787a3768d8c15c5a481f21acb
MD5 106e1af7f5aaccd9ef191445294a17b8
BLAKE2b-256 4f30fc290c8ec42d14abe296c658023c28434befe89d9902395cc8b04db136b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for btlightning-0.1.2.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.2-cp312-cp312-manylinux_2_38_x86_64.whl.

File metadata

File hashes

Hashes for btlightning-0.1.2-cp312-cp312-manylinux_2_38_x86_64.whl
Algorithm Hash digest
SHA256 65d9fe1b4f2cb5768b971f683c97adc1f0033fa35c2c9c95e74bf78cabe59360
MD5 44ec6f67366f278e01a06bad253ebd68
BLAKE2b-256 9aa5be673221283df62e0fdb26c72181f8ac0728347fcaa22721c642d661e84d

See more details on using hashes here.

Provenance

The following attestation bundles were made for btlightning-0.1.2-cp312-cp312-manylinux_2_38_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.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for btlightning-0.1.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8097fde5184b665e51951025967ce8fefb0b30e58e4dc1b93e6f22eb60119f97
MD5 0561d72bb27d6ef733f4213055c02bed
BLAKE2b-256 2601cac0594db9b547c9ed3595c5f89b9f469ba5340686c98abb88f86a067207

See more details on using hashes here.

Provenance

The following attestation bundles were made for btlightning-0.1.2-cp312-cp312-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.2-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for btlightning-0.1.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 31e3e4f0abbb6fd1b19c956fa33a07003d35390c413c23329dcbadfee2ca7994
MD5 f34aea2d373bdfa20a34d2fa1c73df1d
BLAKE2b-256 8369975d1eb5b65a9678ba44d2456147986d7f6271146cf055dec46e3c358226

See more details on using hashes here.

Provenance

The following attestation bundles were made for btlightning-0.1.2-cp312-cp312-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.

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