Skip to main content

Tools for working with elrond pem files and json keystores

Project description

erdkeys

This are Flying Stone's little tools for converting between elrond wallet pem files and json keystores. Please be aware that the private key is written in plaintext in the pem file. The json keystores are much safer to use.

Use at your own risk and remember: if you run code you haven't read and understood, you can't be sure that it is not sending me your keys ;-)

installing

Before insptalling erdkeys, make sure that pip3 in installed. If you already installed erdpy, you should already have pip3.

$ pip3 install erdkeys

This will also install a couple of dependencies: the extremely cool cryptography library and a small module to deal with bech32 addresses.

usage

$ pem2json.py pem_file password

$ json2pem.py json_file password

For instance, one of my Battle of Nodes wallet keystore is erd1g2ufua664sxjvxmw5hh72he3xy6w4gk9l8e4lvfjeyh8d0jk7gdsfrpdu0.json and I need to convert it to pem format for use with erdpy:

json2pem.py erd1g2ufua664sxjvxmw5hh72he3xy6w4gk9l8e4lvfjeyh8d0jk7gdsfrpdu0.json mYpAsSwOrD

will produce a file erd1g2ufua664sxjvxmw5hh72he3xy6w4gk9l8e4lvfjeyh8d0jk7gdsfrpdu0.pem in the same directory. You will get an error in case the keystore is corrupted or you entered the wrong password.

When creating a keystore with pem2json, the password must satisfy the same requirements as the official wallet.

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 Distributions

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

Built Distribution

erdkeys-0.1.3-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file erdkeys-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: erdkeys-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9

File hashes

Hashes for erdkeys-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0bcbe6a3f94e246ec120420e932413c7d97e70f4011de77df92a15e3b9b97a52
MD5 b52ffdcbf3d93d295852477b688e1f03
BLAKE2b-256 403e164c33e598d6b027a38aa09f8a86e11ac1d0f6ae8f89ddc11252f1f26ddb

See more details on using hashes here.

Supported by

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