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.3.tar.gz (57.0 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.3-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.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

btlightning-0.1.3-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.3.tar.gz.

File metadata

  • Download URL: btlightning-0.1.3.tar.gz
  • Upload date:
  • Size: 57.0 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.3.tar.gz
Algorithm Hash digest
SHA256 0ec1807c1e96f59e5acd828f56e8f0eec32c591fa7548b0fda4b3d8223de1666
MD5 67e4263caa4ff817b9e4033f50eefb40
BLAKE2b-256 ff5df049da27784a1cbbdeb0e22aa3f2186c1087895474e5aeed6399b9aed5d7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for btlightning-0.1.3-cp312-cp312-manylinux_2_38_x86_64.whl
Algorithm Hash digest
SHA256 40d787dca60006f54d24d0ef73539ea25dbef469d0abe0d00d3cdd5b1954fd15
MD5 2f8e9e93e2159d6be7ade83d7c217d22
BLAKE2b-256 3c5f32b73e895dcdcbb32e906dbb03b6f5580893d189c36ef0621a95212877ea

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for btlightning-0.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 82fd879a210accd67a6bb7dba5042a402f4a03ac75475e6db80b99e8e52f854a
MD5 63528ae5cae858f1b6f3ebc6794bbd62
BLAKE2b-256 3906f3be52e23e4faab1028a1428faa4d072298fe13a90ea871900c76dd86dc1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for btlightning-0.1.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fed0f1d031b22de756a4edbb274aa16e532e0cf459871edb72e7de4a8d434505
MD5 eed6fcd8b21c546b8bfd184b34eb800b
BLAKE2b-256 b0726ba6633a4abacd82c8c7d68f97b9b9667a50977683693a8bc9319c2f2287

See more details on using hashes here.

Provenance

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