Skip to main content

Python IPFS Swarm Key Generator

Project description

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

Project details


Download files

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

Source Distribution

piskg-0.2018.8.14.1618.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

piskg-0.2018.8.14.1618-py2-none-any.whl (2.8 kB view details)

Uploaded Python 2

File details

Details for the file piskg-0.2018.8.14.1618.tar.gz.

File metadata

  • Download URL: piskg-0.2018.8.14.1618.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for piskg-0.2018.8.14.1618.tar.gz
Algorithm Hash digest
SHA256 2c9fb508e0c74a7642fe62ab42535cd336d76e83c6792754270676c2e1c73706
MD5 c83b0f6007b38cdb1def0369a36e4f13
BLAKE2b-256 f194b6e46e0498a6a32dae2bb1f8b5ca2b9de78b0a62c4dcaf3d90e630d2fd9c

See more details on using hashes here.

File details

Details for the file piskg-0.2018.8.14.1618-py2-none-any.whl.

File metadata

  • Download URL: piskg-0.2018.8.14.1618-py2-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 2
  • Uploaded using 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

File hashes

Hashes for piskg-0.2018.8.14.1618-py2-none-any.whl
Algorithm Hash digest
SHA256 0258f48eaafd4672ffda6203111bece101d69610b0570da0b890f481121ff667
MD5 c271f68dce615d2089e093eec77198f6
BLAKE2b-256 12c9ad33246b59ec7d33bcfd4a3f4baf0d77e825663d82f8371818c0b42728d2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page