Base58
Base58 is a group of binary-to-text encoding schemes used to represent large integers as alphanumeric text. It is similar to Base64 but has been modified to avoid both non-alphanumeric characters and letters which might look ambiguous when printed. It is therefore designed for human users who manually enter the data, copying from some visual source, but also allows easy copy and paste because a double-click will usually select the whole string.
Compared to Base64, the following similar-looking letters are omitted: 0 (zero), O (capital o), I (capital i) and l (lower case L) as well as the non-alphanumeric characters + (plus) and / (slash). In contrast to Base64, the digits of the encoding do not line up well with byte boundaries of the original data. For this reason, the method is well-suited to encode large integers, but not designed to encode longer portions of binary data. The actual order of letters in the alphabet depends on the application, which is the reason why the term “Base58” alone is not enough to fully describe the format. A variant, Base56, excludes 1 (one) and o (lowercase o) compared to Base 58.
Base58Check is a Base58 encoding format that unambiguously encodes the type of data in the first few characters and includes an error detection code in the last few characters.[1]
See also
Applications
Application | Alphabet |
---|---|
Bitcoin addresses[2] | 123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz [3] |
IPFS hashes[4] | 123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz [5] |
Ripple addresses[6] | rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz [7] |
short URLs for Flickr[8] | 123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ [9] |
References
- ↑ Andreas M. Antonopoulos. "Mastering Bitcoin". section "Base58 and Base58Check Encoding". (O’Reilly, 2015).
- ↑ https://en.bitcoin.it/wiki/Technical_background_of_version_1_Bitcoin_addresses
- ↑ https://en.bitcoin.it/wiki/Base58Check_encoding#Base58_symbol_chart
- ↑ https://github.com/ipfs/specs/blob/master/overviews/implement-api-bindings.md
- ↑ https://github.com/jbenet/go-base58
- ↑ https://wiki.ripple.com/Accounts
- ↑ https://wiki.ripple.com/Encodings
- ↑ https://www.flickr.com/services/api/misc.urls.html#short
- ↑ https://www.flickr.com/groups/api/discuss/72157616713786392/