Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 1.54 KB

README.md

File metadata and controls

48 lines (33 loc) · 1.54 KB

image

piskg: Python IPFS Swarm Key Generator

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

Installing

$ pip install piskg

Usage

$ 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.

Credits

Direct port of https://github.com/Kubuxu/go-ipfs-swarm-key-gen/. Setup information derived from ipfs/kubo#3397 (comment).

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.

License

MIT