Post
Topic
Board Development & Technical Discussion
Merits 6 from 3 users
Topic OP
Why creating Vanity Segwit address is easier than Legacy address?
by
MusaMohamed
on 05/07/2023, 04:15:50 UTC
⭐ Merited by hugeblack (4) ,ETFbitcoin (1) ,pooya87 (1)
I did not know about the difference and I didn't know about the math behind it but o_e_l_e_o  and ETFbitcoin forced me to learn.

It is impossible to create a Vanity address with too many customized characters like more than 8. It is discussed in Vanity address (Mastering Bitcoin book)
This is only for legacy addresses, and does not hold true for segwit addresses. I can generate an 8 character custom segwit address in around 3 minutes.

That's true when we're talking about legacy address, i used 9 customized characters only as example. Although 9 customized character on legacy address is still possible with few high end GPU in few months.

I looked at https://github.com/JeanLucPons/VanitySearch and found three examples for 3 address types: 1, 3, and bc1q.
I saw the code has figures for difficulty. Are they difficulty when creating that Vanity address?

Legacy: 1
Nested Segwit: 3
Native Segwit: bc1q

Difficulty for Legacy and Nested Segwit is both 15318045009, difficulty for Native Segwit is 1073741824.
Difference is 15318045009 / 1073741824  = 14.26604112.

Does it mean creating Vanity Legacy and Nested Segwit address is 14.26 times harder than Vanity Native Segwit address?

Quote
Exemple (Windows, Intel Core i7-4770 3.4GHz 8 multithreaded cores, GeForce GTX 1050 Ti):

C:\C++\VanitySearch\x64\Release>VanitySearch.exe -stop -gpu 1TryMe
VanitySearch v1.17
Difficulty: 15318045009
Search: 1TryMe [Compressed]
Start Fri Jan 31 08:12:19 2020
Base Key: DA12E013325F12D6B68520E327847218128B788E6A9F2247BC104A0EE2818F44
Number of CPU thread: 7
GPU: GPU #0 GeForce GTX 1050 Ti (6x128 cores) Grid(48x128)
[251.82 Mkey/s][GPU 235.91 Mkey/s][Total 2^32.82][Prob 39.1%][50% in 00:00:12][Found 0]
PubAddress: 1TryMeJT7cfs4M6csEyhWVQJPAPmJ4NGw
Priv (WIF): p2pkh:Kxs4iWcqYHGBfzVpH4K94STNMHHz72DjaCuNdZeM5VMiP9zxMg15
Priv (HEX): 0x310DBFD6AAB6A63FC71CAB1150A0305ECABBE46819641D2594155CD41D081AF1

C:\C++\VanitySearch\x64\Release>VanitySearch.exe -stop -gpu 3MyCoin
VanitySearch v1.11
Difficulty: 15318045009
Search: 3MyCoin [Compressed]
Start Wed Apr  3 14:52:45 2019
Base Key:FAF4F856077398AE087372110BF47A1A713C8F94B19CDD962D240B6A853CAD8B
Number of CPU thread: 7
GPU: GPU #0 GeForce GTX 1050 Ti (6x128 cores) Grid(48x128)
124.232 MK/s (GPU 115.601 MK/s) (2^33.18) [P 47.02%][50.00% in 00:00:07][0]
Pub Addr: 3MyCoinoA167kmgPprAidSvv5NoM3Nh6N3
Priv (WIF): p2wpkh-p2sh:L2qvghanHHov914THEzDMTpAyoRmxo7Rh85FLE9oKwYUrycWqudp
Priv (HEX): 0xA7D14FBF43696CA0B3DBFFD0AB7C9ED740FE338B2B856E09F2E681543A444D58

C:\C++\VanitySearch\x64\Release>VanitySearch.exe -stop -gpu bc1quantum
VanitySearch v1.11
Difficulty: 1073741824
Search: bc1quantum [Compressed]
Start Wed Apr  3 15:01:15 2019
Base Key:B00FD8CDA85B11D4744C09E65C527D35E231D19084FBCA0BF2E48186F31936AE
Number of CPU thread: 7
GPU: GPU #0 GeForce GTX 1050 Ti (6x128 cores) Grid(48x128)
256.896 MK/s (GPU 226.482 MK/s) (2^28.94) [P 38.03%][50.00% in 00:00:00][0]
Pub Addr: bc1quantum898l8mx5pkvq2x250kkqsj7enpx3u4yt
Priv (WIF): p2wpkh:L37xBVcFGeAZ9Tii7igqXBWmfiBhiwwiKQmchNXPV2LNREXQDLCp
Priv (HEX): 0xB00FD8CDA85B11D4744C09E65C527D35E2B1D19095CFCA0BF2E48186F31979C2