Bitcoin Forum
September 22, 2018, 11:55:11 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Scan Bitcoin txt file to find collision  (Read 660 times)
dhlbusiness
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?
1537660511
Hero Member
*
Offline Offline

Posts: 1537660511

View Profile Personal Message (Offline)

Ignore
1537660511
Reply with quote  #2

1537660511
Report to moderator
1537660511
Hero Member
*
Offline Offline

Posts: 1537660511

View Profile Personal Message (Offline)

Ignore
1537660511
Reply with quote  #2

1537660511
Report to moderator
Make a difference with your Ether.
Donate Ether for the greater good.
SPRING.WETRUST.IO
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1537660511
Hero Member
*
Offline Offline

Posts: 1537660511

View Profile Personal Message (Offline)

Ignore
1537660511
Reply with quote  #2

1537660511
Report to moderator
xhomerx10
Legendary
*
Offline Offline

Activity: 1778
Merit: 1317



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

I'll do it for you right now manually.  There are no collisions.

Sidehack is making progress! Buy him a burger to keep his energy up - 1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr
aleksej996
Sr. Member
****
Offline Offline

Activity: 406
Merit: 301


Do not trust the government


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

░░░░░░░▄▄▄▄▄▄
░░░░▄██████████▄
░░░██████████████
░░██████▐▌██████
█████░░░░░░░▀█████
██████▄▄░░▄▄░░██████
████████░░▀▀▄██████
████████░░▄▄▄░░█████
██████▀▀░░▀▀▀░░█████
█████░░░░░░░░█████
░░██████▐▌██████
░░░██████████████
░░░░▀██████████▀
░░░░░░░▀▀▀▀▀▀
░░░

                   BitCloak Bitcoin Mixer  
  BTC & BCH | API| MULTIADDRESS| PGP PROOF|  FAST MIX |  ESCROW|  MORE !

░░░░░░░▄▄▄▄▄▄
░░░░▄██████████▄
░░░██████████████
░░██████▐▌██████
█████░░░░░░░▀█████
██████▄▄░░▄▄░░██████
████████░░▀▀▄██████
████████░░▄▄▄░░█████
██████▀▀░░▀▀▀░░█████
█████░░░░░░░░█████
░░██████▐▌██████
░░░██████████████
░░░░▀██████████▀
░░░░░░░▀▀▀▀▀▀
░░░

BenOnceAgain
Member
**
Offline Offline

Activity: 208
Merit: 72

🌐 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.

cr1776
Legendary
*
Offline Offline

Activity: 2002
Merit: 1007


View Profile
September 30, 2017, 10: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
DannyHamilton
Legendary
*
Offline Offline

Activity: 2198
Merit: 1373



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: 546
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?

    ▄█▄
   ██▀  ▄█▄
  ██▀  ▄█▀  ▄▀
 ██▀  ▄█▀  ▄▀
▐█▌  ▄█▀  ▄▀
██   ██   
██   ██   
██   ██   
▐█▌  ▀█▄  ▀▄
 ██▄  ▀█▄  ▀▄
  ██▄  ▀█▄  ▀▄
   ██▄  ▀█▀
    ▀█▀
████
▀▀▀▀
▄▀▀▄▄▄▄▄▄▄▄█████████████▐████
▀▀     ▄▄▄▄▄▀██████████▐████
▄▀▀▄▄▄▄▄█████▀ ▀▄▄▄     ▐████
▀▀     ▄▀███▄▄▄▄       ▐████
▄▄   ▀█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▐████
▀▄▄▀▀▀▀▀██████████████▐████
▄▄   ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▐████

▀▄▄▀▀▀  ██████           ▐████
██████▄▀▀▀▀▀▀▀▀▀ ▐████

▄▄  ████▀▄██████████▐████
▀▄▄▀▀▀▀ ▄████████████▐████
BIDIUM       ▄█▄
   ▄█▄
  ▀██

▀▄  ▀█▄  ▀██
 ▀▄  ▀█▄  ▀██
  ▀▄  ▀█▄  ▐█▌
   █   ██   ██
   █   ██   ██
   █   ██   ██
  ▄▀  ▄█▀  ▐█▌
 ▄▀  ▄█▀  ▄██
▄▀
  ▄█▀  ▄██
   ▀█▀
  ▄██
       ▀█▀






























LoyceV
Legendary
*
Offline Offline

Activity: 1246
Merit: 1982


Let's make Bitcointalk great again!


View Profile WWW
October 03, 2017, 11: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.

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!