Post
Topic
Board Development & Technical Discussion
Merits 2 from 1 user
Topic OP
Pubkey variable characters distribution
by
vshoes
on 20/11/2024, 09:42:31 UTC
⭐ Merited by ABCbits (2)
I'm using a python script and bitcoinlib to generate a vanity address; I'm looking for a public key that looks like 1(name) where (name) is only 4 characters long, so I didn't think it would take me too long, guessed maybe the order of days or weeks.

Code:
from bitcoinlib import wallets

# create new wallet
w = wallets.Wallet.create('TestWallet1')

# key info as dictionary
keyInfo = w.get_key()

# get pub and priv key in WIF format
pubKey = keyInfo.address
privKey = keyInfo.wif

I ran it for a short time exporting the results, and analyzed the output. What surprised me was the distribution of the first variable character. After 1, these are the most frequently occurring characters

https://talkimg.com/images/2024/11/20/b1d0v.png

Clearly the first cluster of 2 through to P (less I) appears evenly distributed (will run a Grubb's test to confirm). Can anyone explain why characters(1, I, Q, R, S, T, U, V, W, X, Y, Z) are so less likely to appear in the first position? Thanks