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

New ccminer 2.3.1 from Tpruvot with Lyra2REv3 Support and More

Bitcoin Gold (BTG) To Launch Mining on 12th November (7:00 UTC)

bitcoin rpc api createrawtransaction with python returns -3: Expected type array, got object