Bitcoin Forum
April 23, 2024, 07:45:47 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Scan Bitcoin txt file to find collision  (Read 742 times)
dhlbusiness (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
September 30, 2017, 02:47:17 AM
 #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?
1713858347
Hero Member
*
Offline Offline

Posts: 1713858347

View Profile Personal Message (Offline)

Ignore
1713858347
Reply with quote  #2

1713858347
Report to moderator
The forum strives to allow free discussion of any ideas. All policies are built around this principle. This doesn't mean you can post garbage, though: posts should actually contain ideas, and these ideas should be argued reasonably.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713858347
Hero Member
*
Offline Offline

Posts: 1713858347

View Profile Personal Message (Offline)

Ignore
1713858347
Reply with quote  #2

1713858347
Report to moderator
1713858347
Hero Member
*
Offline Offline

Posts: 1713858347

View Profile Personal Message (Offline)

Ignore
1713858347
Reply with quote  #2

1713858347
Report to moderator
xhomerx10
Legendary
*
Offline Offline

Activity: 3822
Merit: 7962



View Profile
September 30, 2017, 02:56:16 AM
 #2

I'll do it for you right now manually.  There are no collisions.
aleksej996
Sr. Member
****
Offline Offline

Activity: 490
Merit: 389


Do not trust the government


View Profile
September 30, 2017, 08:53:59 PM
Merited by ABCbits (1)
 #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.
BenOnceAgain
Member
**
Offline Offline

Activity: 208
Merit: 84

🌐 www.btric.org 🌐


View Profile WWW
September 30, 2017, 09: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.

Dream it. Plan it. Build it.
Need help with your project? [MY WEBSITE] | [MY COMPANY] | [BLOG] | [TWITTER] | [LINKEDIN] | [EMAIL]
Want to help support the blockchain charity I'm building? [LEARN ABOUT BTRIC] | [DONATE] | [TWITTER] | [EMAIL]
cr1776
Legendary
*
Offline Offline

Activity: 4018
Merit: 1299


View Profile
September 30, 2017, 10:57:53 PM
Last edit: October 01, 2017, 02:02:32 AM by cr1776
 #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
DannyHamilton
Legendary
*
Offline Offline

Activity: 3374
Merit: 4576



View Profile
October 01, 2017, 08: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.
mrayazgul
Hero Member
*****
Offline Offline

Activity: 560
Merit: 500


View Profile
October 02, 2017, 03:54:11 PM
 #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?
LoyceV
Legendary
*
Offline Offline

Activity: 3290
Merit: 16538


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
October 03, 2017, 11:16:48 AM
Merited by ABCbits (1)
 #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.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
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!