SkillAgentSearch skills...

Base58check

A python implementation of the Base58Check encoding scheme

Install / Use

/learn @joeblackwaslike/Base58check
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Base58Check

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.

  • ref: https://en.bitcoin.it/wiki/Base58Check_encoding

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

View on GitHub
GitHub Stars5
CategoryDevelopment
Updated1y ago
Forks2

Languages

Python

Security Score

70/100

Audited on Nov 17, 2024

No findings