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

Unable to send raw transaction: mandatory-script-verify-flag-failed

ETH To The Moon / Bank of England Cryptocurrency? / BTC Dominance / More (The Crypt0 Minute)

My blockchain.info wallet was hacked. How can I create a double send to foil the attacker?