Skip to main content

Low level storj protocol reference implementation.

Project description

BuildLink CoverageLink BuildLink2 CoverageLink2 LicenseLink

Low level storj protocol reference implementation.



Download latest windows release from github.

Extract the zip file to the folder where you wish to have it installed.

$ storjnode.exe --help

Linux (Ubuntu/Mint/Debian)

Install client

$ sudo pip install storjnode
$ storjnode --help

Update client

$ sudo pip install storjnode --upgrade
$ storjnode --help


Install client

$ brew install python
$ rehash
$ pip install storjnode
$ storjnode --help

Update client

$ pip install storjnode --upgrade
$ storjnode --help

Python usage examples

Normal usage

Starting and using a node in python.

#!/usr/bin/env python
# from examples/
import time
import signal
import storjnode
from crochet import setup, TimeoutError

# start twisted via crochet and remove twisted handler
signal.signal(signal.SIGINT, signal.default_int_handler)

# start node (use bitcoin wif or hwif as node key)
node_key = "KzygUeD8qXaKBFdJWMk9c6AVib89keoZFBNdFBsj73kYZfAc4n1j"
node =

    print("Giving nodes some time to find peers.")

    # The blocking node interface is very simple and behaves like a dict.
    node["examplekey"] = "examplevalue"  # put key value pair into DHT
    retrieved = node["examplekey"]  # retrieve value by key from DHT
    print("{key} => {value}".format(key="examplekey", value=retrieved))

except TimeoutError:
    print("Got timeout error")

except KeyboardInterrupt:

    print("Stopping node")

Multinode usage

Using more then one node in a python script.

If your are using more then one node in a single script, you must assign them different ports.

See examples/network/

Node messaging

Relay messages are sent to the node nearest the receiver in the routing table that accepts the relay message. This continues until it reaches the destination or the nearest node to the receiver is reached.

Because messages are always relayed only to reachable nodes in the current routing table, there is a fare chance nodes behind a NAT can be reached if it is connected to the network.

See examples/network/

Network mapping

You can crawl the network to create a map of the network. Generating a graph of the network is also possable (though not reccomended for networks with many nodes).

See examples/network/

Project details

Download files

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

Source Distributions

No source distribution files available for this release. See tutorial on generating distribution archives.

Built Distribution

storjnode-0.0.21-py2-none-any.whl (93.4 kB view hashes)

Uploaded 2 7

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page