Skip to main content

Base58check encoding and decoding of binary data

Project description

Build Status Github Repo Pypi Version Pypi License Pypi Wheel Pypi Versions

Maintainer

Joe Black | me@joeblack.nyc | github

Introduction

A python implementation of the Base58Check encoding scheme.

The Base58Check encoding scheme is a modified Base 58 binary-to-text encoding. More generically, Base58Check encoding is used for encoding byte arrays in Bitcoin into human-typable strings.

PLEASE NOTE: For consistency with encoding schemes in python, encode inputs must be bytes and will be enforced. Use .encode('ascii') on text input to encode to bytes.

Installation

pip3 install base58check

Usage

>>> import base58check

encoding

>>> base58check.b58encode(b'1BoatSLRHtKNngkdXEeobR76b53LETtpyT')
b'\x00v\x80\xad\xec\x8e\xab\xca\xba\xc6v\xbe\x9e\x83\x85J\xde\x0b\xd2,\xdb\x0b\xb9`\xde'

decoding (input can be text or bytes here)

>>> base58check.b58decode('\x00v\x80\xad\xec\x8e\xab\xca\xba\xc6v\xbe\x9e\x83\x85J\xde\x0b\xd2,\xdb\x0b\xb9`\xde')
b'1BoatSLRHtKNngkdXEeobR76b53LETtpyT'

Changes

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

base58check-1.0.2.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

base58check-1.0.2-py2.py3-none-any.whl (6.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file base58check-1.0.2.tar.gz.

File metadata

File hashes

Hashes for base58check-1.0.2.tar.gz
Algorithm Hash digest
SHA256 a597d250ef564806d5c91a8882c92a69f542b90c6b4f04f581ee3202855cc396
MD5 31b0e98571126427a9562fff2d2d97fd
BLAKE2b-256 9c78cfbfd63b5dc23ad33ee5f1774e5828b7c6bf2f0302cbec95cbba191d3d62

See more details on using hashes here.

File details

Details for the file base58check-1.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for base58check-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a83863696845a9b0b5ec95aebb32ebfc6ce5596984302c0f2b7b27f24afc2719
MD5 b9cdb99beeef766abb9b4dc5b777fd2f
BLAKE2b-256 64d2a8e47d4cd73c416ea0d27b4dcfe3cde0bce17c0acce493c10791ee468a7a

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