Public Address is generated from the private key following some steps. Please refer Bitcoin wiki to see the process.


The version byte is used to differentiate between MainNet and TestNet addresses as well as between P2PKH and P2SH addresses.

  • Can you tell me the version byte of MainNet and TestNet addresses?
    – idk
    Jun 12 '18 at 12:09
  • 1
    @idk it is 0x00 for mainnet and 0x6f for testnet. You can find all the prefixes here : en.bitcoin.it/wiki/List_of_address_prefixes
    – Mike D
    Jun 12 '18 at 12:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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