distributed-state-network
A peer-to-peer network of nodes that share replicated state over HTTP, with per-message AES encryption and ECDSA-signed packets. Each node gossips its state to peers; the network self-organizes from a set of bootstrap nodes.
This is the networking layer used by language-pipes, but has no dependency on it and can be used on its own.
Install
pip install distributed-state-network
Usage
from distributed_state_network import DSNodeServer, DSNodeConfig
key = DSNodeServer.generate_key()
server = DSNodeServer.start(DSNodeConfig(
node_id="node-a",
network_ip="127.0.0.1",
port=8000,
aes_key=key,
))
See src/distributed_state_network/ for the packet types, key management, and
node handler implementation.
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file distributed_state_network-1.1.0.tar.gz.
File metadata
- Download URL: distributed_state_network-1.1.0.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65d8a149bad69be3ed4fea183465f7c540f69047bd3d421eb38a82e196007e15
|
|
| MD5 |
7e1fe84fc625dc8223bab9ae8e17e667
|
|
| BLAKE2b-256 |
49b863d9b2d94b9914ab400cdc52f58380e1a61fb0bc398431bba01863e8a3a6
|
Provenance
The following attestation bundles were made for distributed_state_network-1.1.0.tar.gz:
Publisher:
publish-packages.yml on erinclemmer/language-pipes
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
distributed_state_network-1.1.0.tar.gz -
Subject digest:
65d8a149bad69be3ed4fea183465f7c540f69047bd3d421eb38a82e196007e15 - Sigstore transparency entry: 2230314186
- Sigstore integration time:
-
Permalink:
erinclemmer/language-pipes@290435434278489898dd3735ff7c8c958038b1df -
Branch / Tag:
refs/heads/main - Owner: https://github.com/erinclemmer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-packages.yml@290435434278489898dd3735ff7c8c958038b1df -
Trigger Event:
push
-
Statement type:
File details
Details for the file distributed_state_network-1.1.0-py3-none-any.whl.
File metadata
- Download URL: distributed_state_network-1.1.0-py3-none-any.whl
- Upload date:
- Size: 20.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffbbb53fa9a7411386b56a14cc0332344979ad19b10a9319889d477685daa8f4
|
|
| MD5 |
bf22285752dcd011cd9e13122bca151e
|
|
| BLAKE2b-256 |
97daf5e254fefe45985e000eea9693b293d8e692b245a14f1df6ed1eda2ca6b4
|
Provenance
The following attestation bundles were made for distributed_state_network-1.1.0-py3-none-any.whl:
Publisher:
publish-packages.yml on erinclemmer/language-pipes
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
distributed_state_network-1.1.0-py3-none-any.whl -
Subject digest:
ffbbb53fa9a7411386b56a14cc0332344979ad19b10a9319889d477685daa8f4 - Sigstore transparency entry: 2230314610
- Sigstore integration time:
-
Permalink:
erinclemmer/language-pipes@290435434278489898dd3735ff7c8c958038b1df -
Branch / Tag:
refs/heads/main - Owner: https://github.com/erinclemmer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-packages.yml@290435434278489898dd3735ff7c8c958038b1df -
Trigger Event:
push
-
Statement type: