Skip to main content

cb58ref

https://img.shields.io/pypi/v/cb58ref.svg https://img.shields.io/travis/moreati/cb58ref.svg Documentation Status Updates

cb58ref is a reference implementation of the CB58 encoding used by AVA. CB58 is similar to the Base58Check encoding used in Bitcoin

  • both can encode arbitrary an arbitrary byte sequence

  • both use the same alphabet

  • both append a 4 byte checksum

they differ in the following respects

  • CB58 uses the final 4 bytes of SHA256(msg) as the checksum. Base58Check uses the first 4 bytes of SHA256(SHA256(msg)) as the checksum.

Usage

>>> import cb58ref
>>> cb58ref.cb58encode(b"Hello world"):
'32UWxgjUJd9s6Kyvxjj1u'
>>> cb58ref.cb58decode('32UWxgjUJd9s6Kyvxjj1u')
b"Hello world"
$ printf "Hello world" | python3 -m cb58ref
32UWxgjUJd9s6Kyvxjj1u

$ printf "32UWxgjUJd9s6Kyvxjj1u" | python3 -m cb58ref -d
Hello world

Installation

$ python3 -m pip install cb58ref

License

  • Free software: MIT license

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template. The b58decode(), and b58encode() functions are from base58.py, part of Bitcoin Core.

History

0.2.0 (2020-06-17)

  • Command line interface

  • Type hints

  • Unit tests

0.1.0 (2020-06-15)

Metadata

Release files for cb58ref 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cb58ref 0.2.0
File Size Uploaded Provenance Actions
cb58ref-0.2.0.tar.gz 12.2 kB Without provenance Details for cb58ref-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cb58ref 0.2.0
File Interpreter ABI Platform Actions
cb58ref-0.2.0-py3-none-any.whl Python 3 none any Details for cb58ref-0.2.0-py3-none-any.whl

Total release size: 19.0 kB

Release files / cb58ref-0.2.0.tar.gz

Download URL cb58ref-0.2.0.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3880111ca4dcda7d459f45610a49e6070de90ed52c23e89e11a4a34080378056
BLAKE2b-256 checksum
How to use checksums
255c0449b274bbb885215a349d9a76861341e2500a48eb4b1641f7cdcf78816b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.8

Release files / cb58ref-0.2.0-py3-none-any.whl

Download URL cb58ref-0.2.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4e3ab7bc7eca8bc9fecaac18d3909616fef6a36804b0b5927a46fa3cad2df82
BLAKE2b-256 checksum
How to use checksums
39d2ddb746797433a95b49b6fcb8947aad3eb4a2cfbcebc5663dbf87addf76ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.8

Security for cb58ref 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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