An open API service indexing awesome lists of open source software.

https://github.com/firedancer-io/python-fd58

Python package for fast Base58
https://github.com/firedancer-io/python-fd58

base58 python

Last synced: 3 months ago
JSON representation

Python package for fast Base58

Awesome Lists containing this project

README

        

python-fd58 bundles the fast Base58 from Firedancer as a Python package.

Source: https://github.com/firedancer-io/firedancer/tree/main/src/ballet/base58

Supports 32 and 64 byte data only.

Usage:

```python
>>> import fd58
>>> fd58.enc32(b'\x00' * 32)
b'11111111111111111111111111111111
>>> fd58.dec32(b'11111111111111111111111111111111')
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
```