Skip to main content

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 https://github.com/ipfs/go-ipfs/issues/3397#issuecomment-284341649.

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

Release files for piskg 0.2018.8.14.1618

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for piskg 0.2018.8.14.1618
File Size Uploaded
piskg-0.2018.8.14.1618.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for piskg 0.2018.8.14.1618
File Interpreter ABI Platform
piskg-0.2018.8.14.1618-py2-none-any.whl Python 2 none any Details

Total release size: 5.2 kB

Release files / piskg-0.2018.8.14.1618.tar.gz

Download URL piskg-0.2018.8.14.1618.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2c9fb508e0c74a7642fe62ab42535cd336d76e83c6792754270676c2e1c73706
BLAKE2b-256 checksum
How to use checksums
f194b6e46e0498a6a32dae2bb1f8b5ca2b9de78b0a62c4dcaf3d90e630d2fd9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/2.7.15

Release files / piskg-0.2018.8.14.1618-py2-none-any.whl

Download URL piskg-0.2018.8.14.1618-py2-none-any.whl
Size 2.8 kB
Tags Python 2
SHA-256 checksum
How to use checksums
0258f48eaafd4672ffda6203111bece101d69610b0570da0b890f481121ff667
BLAKE2b-256 checksum
How to use checksums
12c9ad33246b59ec7d33bcfd4a3f4baf0d77e825663d82f8371818c0b42728d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/2.7.15
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page