Mining into Bitcoin Adresses ! - What is the Version-Byte ?
Mining into Bitcoin Adresses ! - What is the Version-Byte ?

By CryptoUser | CryptoPublisher | 23 May 2020


 

Blockchain-based currencies use encoded strings, which are in a Base58Check encoding with the exception of Bech32 encodings. The Base58Check encoding includes a prefix (traditionally a single version byte), which affects the leading symbol(s) in the encoded result.

The Version-Byte is used to differentiate between MainNet and TestNet addresses as well as between P2PKH and P2SH addresses.

  1. P2PKH - Pay 2 Public Key Hash  - which begin with the number 1, eg: 1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2.
  2. P2SH   - Pay 2 Script Hash - type starting with the number 3, eg: 3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy.

 

1) When you create a P2PKH Bitcoin address (Address starting with the prefix, 1), a hash is created using the Public Key and RIPEMD160(SHA256(pubkey)) functionality.

f54a5851e9372b87810a8e60cdd2e7cfd80b6e31 - The Hash Created.

2) In the next step, the Version-Byte is added. 

00f54a5851e9372b87810a8e60cdd2e7cfd80b6e31 - 00 is added for a MainNet, Public Key Hash.

05f54a5851e9372b87810a8e60cdd2e7cfd80b6e31 - 05 Added for a MainNet, Script Hash.

6Ff54a5851e9372b87810a8e60cdd2e7cfd80b6e31 - 6F Added for a TestNet, Public Key Hash.

C4f54a5851e9372b87810a8e60cdd2e7cfd80b6e31 - C4 Added for a TestNet, Script Hash.

 

List of address prefixes

The following is a list of some prefixes which are in use in the reference Bitcoin codebase.

32466f98d881e6865801fccaa3590a5c48f9b5c9053ec48ca2ed0339de28000d.png

 

Then a double SHA256 is performed, to create the checksum and the process continues to Base58Check encoding. Read my article Mining into Bitcoin Addresses ! - How a Bitcoin Address is Created ? for further information.

 

Thank You for Viewing.

Please consider following and helping with a donation.

 

 
StarClicks - Earn Some Extra Money by Clicking Ads !

https://www.publish0x.com/economynext/starclicks-earn-some-extra-money-by-clicking-ads-xlllxyn

 

Honeygain - Money for Your Excess Internet Capacity !

https://www.publish0x.com/economynext/honeygain-money-for-your-excess-internet-capacity-xejjjyp

 

1) BTC
368UxYjPLyJ4TEDQ9X5PCAUwDhq6dwhxfQ

2) ETH
0xAA6f54B665702e6CBf29C94C4E51121fB959FcC8

3) LTC
LgH2TMAtLgzopSSiixWKDqR76AWRoqhSWJ

4) BCH
qr4hcjdc3p94q3dgucn770q7surq4gs8lvpc4afx2f

5) DGB
DB9ixZvnTfxqT5Udzy9wHULJNFKd1FxSnz

6) BTG
GWCfg95P1LQgSqeqJacNJvuRqLZ8qftw4R

7) BAT
0x1a116B3bef9D7291F5147d8a0E2b9389c94D18e7

8)DASH
XyES8Fd5gzMHbGqXCFF3immfSRoepps9ij

9)ZEC
t1KgedEbS1pyeWQWoehBDoCJJ3MspmCptv5

10)MONERO
47JrgDDuAvRboX1mRTyAbuHGtGC2LZj5Rggui3u1d5s6Z3UB3oaRZfvE2MhWwuAHGMV3Wn8Us7GTggc8MiCMSmrMUHVCsmW

 

If you haven't signed in to Publish0x, use My publish0x referral link

https://www.publish0x.com?a=openM14d7A

 

View Other Articles:

1) LocalCryptos - Non Custodial P2P marketplace for Cryptos !

https://www.publish0x.com/cryptopublisher/localcryptos-non-custodial-p2p-marketplace-for-cryptos-xkkkkrq

2) Create a Bitcoin SEGWIT P2SH Address using Electrum Wallet !

https://www.publish0x.com/cryptopublisher/create-a-bitcoin-segwit-p2sh-address-using-electrum-wallet-xllleez

3) StarClicks - Earn Some Extra Money by Clicking Ads !

https://www.publish0x.com/economynext/starclicks-earn-some-extra-money-by-clicking-ads-xlllxyn

4) Mining into Bitcoin Addresses ! - How a Bitcoin Address is Created ?

https://www.publish0x.com/cryptopublisher/mining-into-bitcoin-addresses-how-a-bitcoin-address-is-creat-xjjjzvr

5) If you are interested in some nice relaxing music, check my YouTube Channel

https://www.youtube.com/channel/UCCptwwc697hEo8vMA8nVCWw/

 

Sources:

https://en.bitcoin.it/wiki/List_of_address_prefixes

https://bitcoin.stackexchange.com/questions/76168/what-is-the-significance-of-the-version-byte-in-front-of-ripemd-160-hash



CryptoPublisher
CryptoPublisher

This blog will aid you to learn about various digital assets and a little bit about mining.

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.