Post
Topic
Board Development & Technical Discussion
Re: Scan Bitcoin txt file to find collision
by
DannyHamilton
on 01/10/2017, 08:18:54 UTC
I have a issue, I am generating millions of addresses with vanitygen, I have 55 thousand bitcoin addresses that I have saved in my computer and I want all my vanity addresses been checked if collide with any of my 55k addresses.
for example:
money.txt is my vanitygen addresses
cash.txt is the addresses I have with bitcoins in it
I need all addresses in money.txt compare with all addresses in cash,txt to see if found any collision.
How can I do it?

I liked xhomerx10’s answer the best, but...

Use comm or grep or fgrep.

E.g something like:
grep -F -x -f file1 file2

Sort cash.txt before you save it.

Write a simple computer program that performs something like a binary search of the sorted data.

It will be faster, and more customizable than grep.