Bitcoin Forum
May 04, 2024, 03:26:22 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What is the probability of a bitcoin address starting with "11..." ?  (Read 1318 times)
schnuber (OP)
Member
**
Offline Offline

Activity: 96
Merit: 18


View Profile
May 14, 2016, 08:11:58 PM
 #1

Hi
This is not a very important question that some statistics geeks of you probably may answer easily.
I wonder because I am currently writing code that creates a bitcoin address, and this question just occurred to me.

Greets
1714836382
Hero Member
*
Offline Offline

Posts: 1714836382

View Profile Personal Message (Offline)

Ignore
1714836382
Reply with quote  #2

1714836382
Report to moderator
1714836382
Hero Member
*
Offline Offline

Posts: 1714836382

View Profile Personal Message (Offline)

Ignore
1714836382
Reply with quote  #2

1714836382
Report to moderator
1714836382
Hero Member
*
Offline Offline

Posts: 1714836382

View Profile Personal Message (Offline)

Ignore
1714836382
Reply with quote  #2

1714836382
Report to moderator
BitcoinCleanup.com: Learn why Bitcoin isn't bad for the environment
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714836382
Hero Member
*
Offline Offline

Posts: 1714836382

View Profile Personal Message (Offline)

Ignore
1714836382
Reply with quote  #2

1714836382
Report to moderator
vlamer
Member
**
Offline Offline

Activity: 101
Merit: 11

N.E.E.T


View Profile WWW
May 14, 2016, 09:40:53 PM
 #2

can i answer this question with yes or no  Grin
maybe this can explain your question https://en.bitcoin.it/wiki/Vanitygen , because I also just learned from there.

hhanh00
Sr. Member
****
Offline Offline

Activity: 467
Merit: 266


View Profile
May 15, 2016, 02:38:28 AM
 #3

The first 1 comes from the address version and is always there for a normal bitcoin address. Every other 1 requires a byte equal to 0 is the pub key hash.
- 11: 1/2^8 = 1/256
- 111: 1/2^16 = 1/65536
- 1111: 1/2^24
etc

jl777
Legendary
*
Offline Offline

Activity: 1176
Merit: 1132


View Profile WWW
May 15, 2016, 03:41:06 AM
 #4

The first 1 comes from the address version and is always there for a normal bitcoin address. Every other 1 requires a byte equal to 0 is the pub key hash.
- 11: 1/2^8 = 1/256
- 111: 1/2^16 = 1/65536
- 1111: 1/2^24
etc

are you sure?
It seems base58 would have a 1/58th chance for a '1'

http://www.digitalcatallaxy.com/report2015.html
100+ page annual report for SuperNET
2c0de
Full Member
***
Offline Offline

Activity: 138
Merit: 102


View Profile
May 15, 2016, 08:47:02 AM
 #5

1/58

about 1.7%

DHjxvnHB9RirtPbvkovSotn1fY2poNffoi
LWeT4wwDVdJ9x49UcXPyS6CznRpbQFM6nx
0x96273C2FD825f0A2745d917bbbfabD6032dC1aDD
amaclin
Legendary
*
Offline Offline

Activity: 1260
Merit: 1019


View Profile
May 15, 2016, 09:06:16 AM
 #6

are you sure?
It seems base58 would have a 1/58th chance for a '1'
There are no bitcoin addresses starting with "1Z...", "1Y..."
The formula for probability is more complicated
hhanh00
Sr. Member
****
Offline Offline

Activity: 467
Merit: 266


View Profile
May 15, 2016, 09:42:58 AM
 #7

1/58

about 1.7%

That can't be this simple since 100% of the p2kh addresses begin with 1  Wink

shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1499


No I dont escrow anymore.


View Profile WWW
May 15, 2016, 07:58:47 PM
Merited by ABCbits (2)
 #8

are you sure?
It seems base58 would have a 1/58th chance for a '1'
There are no bitcoin addresses starting with "1Z...", "1Y..."
The formula for probability is more complicated

No?

Code:
Address: 1ZXt58NWzZaGxmdcYBccLJL2WNQrTqhuR
Privkey: 5JCQvCDYtQ9fKkkngyAMsS2przu41Gv5KfC4F7zC4XYbikJyXQX

Address: 1YoF7HgrHKxrSH3TyawU9r61DkShpqKd6
Privkey: 5K8r11CxkJy3nJURHEUjpt1zRP8gChNparReacZKsLi2zpCbzoR

For a reference that hhanh00 is correct, see the footnote (marked with *), here[1]

[1] https://en.bitcoin.it/w/images/en/9/9b/PubKeyToAddr.png

Im not really here, its just your imagination.
amaclin
Legendary
*
Offline Offline

Activity: 1260
Merit: 1019


View Profile
May 15, 2016, 08:04:20 PM
 #9

Oups. Sorry.
There are no 35-character long (this is most popular length for standard address) addresses starting with "1Z...", "1Y..."
The probability to generate such address is less than 1/58
So, the probability for others is not 1/58  Cheesy
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1028



View Profile WWW
May 16, 2016, 03:35:12 PM
Last edit: May 16, 2016, 04:08:24 PM by deepceleron
 #10

The first 1 comes from the address version and is always there for a normal bitcoin address. Every other 1 requires a byte equal to 0 is the pub key hash.
- 11: 1/2^8 = 1/256
- 111: 1/2^16 = 1/65536
- 1111: 1/2^24
etc

are you sure?
It seems base58 would have a 1/58th chance for a '1'

Base58 conversion always preserves leading 0 bytes by directly encoding them as a "1" at the start of an address. This is the reason all standard Bitcoin addresses start with 1, because of the hard-coded network ID byte of 00 for Bitcoin.

A byte can store a value 0-255; the chance that the next byte (the first digit of the hash) is also 0x00h is 1 in 256, and so on.

The Bitcoin address in it's native binary form (that you never see) is 25 bytes, it's parts are:
byte 0: Network ID Byte (0x00 for main bitcoin network)
byte 1-20: ripemd160 hash (20 bytes) of sha256 hash (32 bytes) of 0x04+public key (65 bytes)
byte 21-24: checksum: first four bytes of sha256 hash of sha256 hash of bytes 0-20 above


Only after the leading byte preservation is the address then put through Base58-encoding.

The other non-related "answers" seen in this thread are also wrong: because the largest Bitcoin address (all FFFFs for the hash plus checksum) is 1QLbz7JHiBTspS962RLKV8GndWFwi5j6Qr, there are strange address probabilities. The chance of an address starting with characters 12 - 1P is about 1-in-23; an address starting 1R-1z must be a 33 character or less address, and chances are 1-in-1353. As we now know, starting in 11 is 1-in-256.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!