Bitcoin Chainparams.cpp what is - base58Prefixes[PUBKEY_ADDRESS]?

Bitcoin Chainparams.cpp what is - base58Prefixes[PUBKEY_ADDRESS]?

I am creating an altcoin for fun from the Bitcoin core source code, and I am currently looking through the code in chainparams.cpp and I have come across this line:

base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,0);

What does this code do? Why would you want the first character in this vector to be 0?

http://ift.tt/2j4nMv9

Comments

Popular posts from this blog

bitcoin node: what is the difference between simnet and regtest?

How to check if Electrum is masking my IP with the Tor proxy?

Need help to recover blpckchain.info wallet, my wife forgot her password and the brute force with btcrecover is not catching the password