Please tell me how you can change the code in VanitySearch, instead of looking for an address, I need to replace it with a search public key? That is, set the Gx point search function.
You need to add another
searchType called something like PUBLICKEY and then in VanitySearch::initPrefix() and other places the variable is used, you need to detect the new search type
here by looking for "0x" or "0X" at the beginning and add fields to the
PREFIX_ITEM structure for x point, y point and the private key number.
How do I add fields to the structure? Something in this moment I am at a loss, what needs to be added?
....
....
typedef struct {
char *prefix;
int prefixLength;
prefix_t sPrefix;
double difficulty;
bool *found;
// For dreamer ;)
bool isFull;
prefixl_t lPrefix;
uint8_t hash160[20];
} PREFIX_ITEM;
typedef struct {
std::vector<PREFIX_ITEM> *items;
bool found;
} PREFIX_TABLE_ITEM;
...
...