Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: xGravity on March 29, 2017, 02:47:53 AM



Title: Wallet address prefix: How to put multiple characters in it?
Post by: xGravity on March 29, 2017, 02:47:53 AM
Let's say you want to create a new wallet prefix. It is possible to change the prefix first starting character to any letter you want. But can you combine the prefix to exist out of 2? For example make addresses start with "12"

I would be happy if someone could help me out.


Title: Re: Wallet address prefix: How to put multiple characters in it?
Post by: xGravity on March 29, 2017, 01:11:32 PM
bump...

No idea anybody? I was googling this for hours but could not find it.


Title: Re: Wallet address prefix: How to put multiple characters in it?
Post by: elbandi on April 01, 2017, 10:51:33 PM
try this here: https://github.com/bitcoin/bitcoin/blob/master/src/chainparams.cpp#L130

Code:
 boost::assign::list_of(0x00)(0x01).convert_to_container<std::vector<unsigned char> >();