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
- Host: GitHub
- URL: https://github.com/firedancer-io/python-fd58
- Owner: firedancer-io
- License: other
- Created: 2024-04-04T11:01:54.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-04T14:26:11.000Z (about 1 year ago)
- Last Synced: 2025-02-20T06:40:53.158Z (4 months ago)
- Topics: base58, python
- Language: C
- Homepage: https://github.com/firedancer-io/firedancer/tree/main/src/ballet/base58
- Size: 36.1 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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'
```