Skip to main content

base58

PyPI Version PyPI Downloads

Base58 and Base58Check implementation compatible with what is used by the groestlcoin network.

Starting from version 2.0.0 python2 is no longer supported the 1.x series will remain supported but no new features will be added.

Command line usage

$ printf "hello world" | base58grs
StV1DL6CwTryKyV

$ printf "hello world" | base58grs -c
3vQB7B6MrGQZaxCpm9RU5

$ printf "3vQB7B6MrGQZaxCpm9RU5" | base58grs -dc
hello world

$ printf "4vQB7B6MrGQZaxCpm9RU5" | base58grs -dc
Invalid checksum

Module usage

>>> import base58grs
>>> base58grs.b58encode(b'hello world')
b'StV1DL6CwTryKyV'
>>> base58grs.b58decode(b'StV1DL6CwTryKyV')
b'hello world'
>>> base58grs.b58encode_check(b'hello world')
b'3vQB7B6MrGQZaxCpm9RU5'
>>> base58grs.b58decode_check(b'3vQB7B6MrGQZaxCpm9RU5')
b'hello world'
>>> base58grs.b58decode_check(b'4vQB7B6MrGQZaxCpm9RU5')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "base58.py", line 89, in b58decode_check
    raise ValueError("Invalid checksum")
ValueError: Invalid checksum

Download files

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

Source Distribution

base58grs-2.1.1.tar.gz (6.4 kB view details)

Uploaded Source

File details

Details for the file base58grs-2.1.1.tar.gz.

File metadata

  • Download URL: base58grs-2.1.1.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.8.0 urllib3/1.26.8 tqdm/4.19.5 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.9

File hashes

Hashes for base58grs-2.1.1.tar.gz
Algorithm Hash digest
SHA256 fd90d1ac80fa6b64efe8ad528d414e6201a7b9a3dcaccbd6c97bbbe7356368fe
MD5 efd692489ed571c5b4eac361a36cab3a
BLAKE2b-256 64a096ce191d9c60bb28558a46782df8e5066596234b6164201c39c63f26e467

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.1.1 This release

1 file

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