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

What exactly is a block?

Firmware With Unlocked Overclock for Bitmain Antminer Z9 Equihash ASIC Miners

How to use this nodejs script (by:Raghav Sood) that have been posted on the stackexchange