Encode or decode base58 string.
Base58 is a binary-to-text encoding scheme that uses 58 alphanumeric characters.
It is designed to avoid visually ambiguous characters such as 0
(zero), O
(capital o), I
(capital i), and l
(lowercase L).
Base58 is commonly used in applications like Bitcoin addresses to make encoded data more human-readable and reduce the risk of confusion or transcription errors.
Base58 uses the following characters: 123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz
.
You can also use a custom set of characters to encode or decode data. However, the characters must be unique and not contain any duplicates. If the encoded characters contain any characters not in the base character set, decoding will fail.