Bitcoin Forum
May 08, 2024, 01:24:30 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Vanitygen is possible, is such a modification possible?  (Read 78 times)
Pidberezkiy (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 6


View Profile
January 06, 2022, 09:18:02 AM
Merited by OmegaStarScream (2), Welsh (2), NotATether (2)
 #1

Hi dear friends, before I start, I want to warn you that English is not my first language.
Now let's move on to the question. I studied Vanitigen, I became curious, is it possible to search for a public key by teg?

For example: Standard search command  vanitygen.exe -p 0 -d 1 -o result.txt 1BTCSEC
Is it possible to modify the Vanitegen source code for the following task, for example: vanitygen.exe -p 0 -d 1 -o result.txt 039efe7 or 02b81669.
Thanks!
"Your bitcoin is secured in a way that is physically impossible for others to access, no matter for what reason, no matter how good the excuse, no matter a majority of miners, no matter what." -- Greg Maxwell
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715174670
Hero Member
*
Offline Offline

Posts: 1715174670

View Profile Personal Message (Offline)

Ignore
1715174670
Reply with quote  #2

1715174670
Report to moderator
1715174670
Hero Member
*
Offline Offline

Posts: 1715174670

View Profile Personal Message (Offline)

Ignore
1715174670
Reply with quote  #2

1715174670
Report to moderator
henry_p
Newbie
*
Offline Offline

Activity: 22
Merit: 67


View Profile
January 07, 2022, 01:23:12 PM
Merited by Welsh (5), NotATether (3)
 #2

is it possible to search for a public key by teg?

Do you mean "tag"?  Either way, I don't know what that is, and I don't understand your question.  But the following may help:

First note that there is a difference between a public key and an address.  The address is derived from the public key, but is NOT the public key.  While it is possible to search for a vanity public key, I doubt that it is what you want and cannot think of any use for that.  So I assume that you are looking for a vanity address.

The code does not actually generate addresses in a special way that would fits the requirement.  Instead, it generates addresses randomly, and filters out everything that does not match what is wanted.

So as long as valid addresses can accommodate your constraint, then it is possible to modify the code to perform that different check instead of a prefix.

If you want to generate a bitcoin addresses that begins with "54321", that will not work because no address can begin with "5".

Legacy bitcoin address are encoded in Base58:  They must start with "1" and not all characters are allowed.  For example 0,O,o,I and l are not valid; for some apparent reason, therefore "039efe7" or "02b81669" would not be possible.

In case yo are looking for a bech32 (or taproot) address, I think the tool does not support that, at least yet.  Anyway, it is definitely possible to add such support if needed, though it would involve much more work.

The two examples you provided (039efe7 or 02b81669) are hexadecimal strings, which confuses me.  Are you are looking for a vanity address for something other than Bitcoin?

I hope that helps!
NotATether
Legendary
*
Offline Offline

Activity: 1596
Merit: 6730


bitcoincleanup.com / bitmixlist.org


View Profile WWW
January 07, 2022, 04:26:55 PM
Merited by Welsh (3)
 #3

First of all the public key prefix must always be 02, 03, or 04 so that can't be customized by vanity generator software.

Immediately following the prefix is the x-point. but the number of customizable characters is limited to hex chars. So a modification would see the SHA256 hash computation scrapped and the code simply comparing the first x-point hex bytes to the prefix, at the cost of less-customizable public keys.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
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!