samr7 / vanitygen

GNU Affero General Public License v3.0
1.23k stars 632 forks source link

Generate from partial private key #97

Open BrotherPhil opened 7 years ago

BrotherPhil commented 7 years ago

I'm trying to do a bit of key recovery, having damaged the only handy copy of a wallet's private key. I've got a program doing a brute-force attack on the address space for possible keys, which is running in parallel at the moment with a copy of oclvanitygen looking for partial matches on the public key, which I know. Obviously, this is not a fast process, and it strikes me it should be possible to speed things up. I'm not really a C programmer, but can sort of follow the code a bit, and could probably produce a variant version (or an update to this, if it seemed useful) if pointed in the right direction. Is there a way of modifying (or configuring) vanitygen - or preferably oclvanitygen - to generate keys using the known portion of the private key? It might be worth noting that the key in question is one of the 22 character short keys; not a problem for my brute-force program, but I can't exactly spot somewhere in vanitygen where I could work with keys in that format.

ARTEMKA-STOM commented 4 years ago

I should pass it through the bloom filter but I don't know how