Skip to main content

Python IPFS Swarm Key Generator

Project description


piskg: Python IPFS Swarm Key Generator

This program generates swarm.key file for IPFS Private Network feature.


$ pip install piskg


$ piskg > ~/.ipfs/swarm.key

Change ~/.ipfs/ to different directory if you use custom IPFS_PATH. To join a private network, save the key value to your ~/.ipfs/swarm.key.

When using this feature, you will not be able to connect to the default bootstrap nodes since they are not part of your private network, so you will need to set up your own bootstrap nodes.

To prevent your node from even trying to connect to the default bootstrap nodes, run:

$ ipfs bootstrap rm --all

To be extra cautious, you can also set the LIBP2P_FORCE_PNET environment variable to 1 to force the usage of private networks. If no private network is configured, the daemon will fail to start.


Direct port of Setup information derived from

Logo derived from work by Eagle Eye (CC BY 3.0) and Sergey Demushkin (CC BY 3.0) and itself licensed CC BY-SA 4.0.



Project details

Download files

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

Files for piskg, version 0.2018.8.14.1618
Filename, size File type Python version Upload date Hashes
Filename, size piskg-0.2018.8.14.1618-py2-none-any.whl (2.8 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size piskg-0.2018.8.14.1618.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page