Welcome to the Developer Q&A for the MultiChain blockchain platform.

Please feel free to ask questions about the platform to receive answers from the MultiChain developers or other members of the community.

Multichain Vanitygen PUBKEY_ADDRESS

+1 vote

Hello, I would like to generate a vanity address for multichain. However, for this, I have to modify the vanitygen's addrtype which should match the PUBKEY_ADDRESS from base58.h of the bitcoin src. 

Could you please tell me the what the PUB_KEYADDRESS value is, or how to generate a vanity address?

asked Mar 8, 2016 by beyzaguirre

1 Answer

0 votes

It's related to the address-pubkeyhash-version value from your blockchain's params.dat file. However by default MultiChain uses 4-byte values for that, which will not be compatible with your vanity key generator.

So instead you should start a new chain, and set address-pubkeyhash-version to a 1-byte value (two hexadecimal digits) before you launch the chain. You should probably choose something other than 00 to make sure your addresses can't be confused with those of bitcoin. Note you'll also need to set address-checksum-value = 00000000 in params.dat as well - again, before starting the chain - so your vanity generator works.

answered Mar 9, 2016 by MultiChain
...