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 Core errors with database block

Bitfinex & Market Synergy To Offer Institutional Calibre Cryptocurrency Connectivity