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

CC BY-SA 4.0
2018-06-12T12:09:10.400Z
Can you tell me the version byte of MainNet and TestNet addresses?
idk
CC BY-SA 4.0
2018-06-12T12:21:26.577Z
@idk it is `0x00` for mainnet and `0x6f` for testnet. You can find all the prefixes here : https://en.bitcoin.it/wiki/List_of_address_prefixes
Mike D
CC BY-SA 4.0
2018-06-12T11:06:07.980Z
2018-06-12T11:06:07.980Z
Mike D
<p>Public Address is generated from the private key following some steps. Please refer <a href="https://en.bitcoin.it/wiki/Technical_background_of_version_1_Bitcoin_addresses#How_to_create_Bitcoin_Address" rel="nofollow noreferrer">Bitcoin wiki</a> to see the process. </p>

<bitcoin-core><private-key><public-key>
What is the significance of the version byte in front of RIPEMD-160 hash?
idk
# What is the significance of the version byte in front of RIPEMD-160 hash?

(Asked by: username_0 on 2018-06-12)

Public Address is generated from the private key following some steps. Please refer [Bitcoin wiki](https://en.bitcoin.it/wiki/Technical_background_of_version_1_Bitcoin_addresses#How_to_create_Bitcoin_Address) to see the process.

**Tags:** bitcoin-core, private-key, public-key


---

## 1 answers

### Answer by username_1 on 2018-06-12. Score: 3 | Accepted answer

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

> **Comments:**
> **username_0**: Can you tell me the version byte of MainNet and TestNet addresses?  
> **username_1**: @username_0 it is `0x00` for mainnet and `0x6f` for testnet. You can find all the prefixes here : https://en.bitcoin.it/wiki/List_of_address_prefixes  

---

