Is there any list of Dash constants available? Something like Bitcoin list of address prefixes


Yes. This Table will be very useful for techies. The application of version numbers in the referenced table are used to compute prefixes for various private keys for numerous alts. The file references to the far right of the table should be correct. However, the line numbers have surely changed during the last 3 years. Then also look at the 1st column of the lower table you referenced.

Here is how the referenced libbitcoin table can be utilized for Dash. Let's assume the DASH secp256k1 private key is one of the worst private keys possible in hexadecimal format is


and its associated hexadecimal compressed public key can be calculated simply with:

% echo "0000111122223333444455556666777788889999aaaabbbbccccddddeeeeffff" | bx ec-to-public


Associated Compressed Wallet Input Format (WIF) Private Key:

% echo "0000111122223333444455556666777788889999aaaabbbbccccddddeeeeffff" | sed 's/$/01/' | bx base58check-encode -v 204


Associated Wallet Input Format (WIF) Private Key:

% echo "0000111122223333444455556666777788889999aaaabbbbccccddddeeeeffff" | bx base58check-encode -v 204


Associated Compressed Pay to Public Key Hash (P2PKH) Address:

% echo "0000111122223333444455556666777788889999aaaabbbbccccddddeeeeffff" | bx ec-to-public | bx ec-to-address -v 76


where: bx ec-to-address -v 76 == bx sha256 | bx ripemd160 | bx base58check-encode -v 76

Associated Uncompressed Pay to Public Key Hash (P2PKH) Address:

% echo "0000111122223333444455556666777788889999aaaabbbbccccddddeeeeffff" | bx ec-to-public -u | bx ec-to-address -v 76


An Associated Simple Pay to Script Hash (P2SH) Address:

% echo "[020d47568a5e517067a2836c3823fbc58169a7662bfae934a4d41da3e23c98d816] checksig" | bx script-to-address -v 16


where: bx script-to-address -v 16 == bx script-encode | bx sha256 | bx ripemd160 | bx base58check-encode -v 16


The version bytes commonly used by Dash are:

   0x4c for P2PKH addresses on the main Dash network (mainnet)
   0x8c for P2PKH addresses on the Dash testing network (testnet)
   0x10 for P2SH addresses on mainnet
   0x13 for P2SH addresses on testnet
New contributor
iPC is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.