src/lib_crypto/base58.ml has lines such as
let ed25519_public_key_hash = "\006\161\159" (* tz1(36) *).
How does one get
Tezos Stack Exchange is a question and answer site for users, experts, and developers of the Tezos blockchain project. It only takes a minute to sign up.Sign up to join this community
Base58 encodes characters by appending a prefix, treating the bytes as a big endian number and writing that big endian number in base 58.
Therefore, specific prefixes can pin down the most significant "digits" in Base58.
The python script
b58_prefix.py in the
scripts directory of the Tezos repo can help find those prefixes. Note that to run it you will need this version of the python lib
pip install git+https://github.com/vbuterin/pybitcointools.git@aeb0a2bbb8bbfe421432d776c649650eaeb882a5#egg=master