Author

Topic: Scan Bitcoin txt file to find collision (Read 742 times)

legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
October 03, 2017, 07:16:48 AM
#8
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.
Even faster (on any Linux):
Code:
cat money.txt cash.txt | wc -l # this tells you how many addresses you have
cat money.txt cash.txt | sort | uniq | wc -l # this tells you how many unique addresses you have
Both numbers will be the same.

Even faster:
Code:
cat money.txt cash.txt | sort | uniq -d # this just gives you all duplicates
It'll also show if either one of the txt-files has duplicates on its own.
hero member
Activity: 560
Merit: 500
October 02, 2017, 11:54:11 AM
#7
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?

For what purpose? Is this to see how it can go with a larger file and to see if it works? If you are deep enough to know that there may be a collision, don't you know that there is nearly a zero chance with only a couple billions addresses?
legendary
Activity: 3388
Merit: 4615
October 01, 2017, 04:18:54 AM
#6
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.
legendary
Activity: 4018
Merit: 1299
September 30, 2017, 06:57:53 PM
#5
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
member
Activity: 208
Merit: 84
🌐 www.btric.org 🌐
September 30, 2017, 05:21:54 PM
#4
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?

Millions of addresses?  Now that's some vanity, lol.

The odds of an address collision are somewhere up there with the odds of you being teleported to Mars and back.
sr. member
Activity: 490
Merit: 389
Do not trust the government
September 30, 2017, 04:53:59 PM
#3
There are many topics about how unlikely it is to get an address collision. This is necessary for safety of Bitcoin, as if you could get a collision for your address, anyone could, which would make Bitcoin useless. So don't bother, there are no collisions if you generated the addresses correctly. There are quadrillion quadrillions of quadrillion quadrillions of addresses. 55k is nothing compared to that.
legendary
Activity: 3808
Merit: 7912
September 29, 2017, 10:56:16 PM
#2
I'll do it for you right now manually.  There are no collisions.
newbie
Activity: 28
Merit: 0
September 29, 2017, 10:47:17 PM
#1
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?
Jump to: