Consolidating old Bitcoin Core Wallets

Recently I started digging through old backups to find some coins that people were telling me they were sending but to addresses that weren’t in my wallets anymore. I discovered I had dozens – or even more (i’m discovering more all the time).


  • Hash all wallets that are found in iCloud, DropBox, Google Drive, and other backups so that we can save time loading duplicates (when searching backups for wallets, you’ll often end up with hundreds or thousands of duplicates.
  • Upgrade all old wallet files.
  • Create an encrypted drive containing all of the wallet.dat files for backup purposes.
  • Import private keys from all wallets into bitcoin core’s latest version so that they are all in one master wallet file.
  • Import private keys from all wallets into electrum, in one master keyfile.

Hashing All Wallets

Since many backups will contain identical wallet files, we will first start by renaming all wallet.dat files to an md5 checksum of their content. This will prevent issues with accidentally overwriting a wallet.dat if one has many wallet.dat files. The chances of two md5 hashes being identical are very very low, so unless you’re messing with satoshi’s 1 million bitcoins, probably safe enough for de-duplication of identical wallets.

This is done very simple on osx with the following commands:

spikes-MacBook:~ spike$ md5 wallet.dat
MD5 (wallet.dat) = fdf25759f1c6d450a0f8425284867a3d
spikes-MacBook:~ spike$ mv wallet.dat fdf25759f1c6d450a0f8425284867a3d.wallet.dat

Importing and Upgrading all wallet files

First, we will start by installing the latest bitcoin daemon. Once that’s done, we will create a wallets directory, and put all of our wallets there (since the file names are dependant upon the md5 hash, we can safely overwrite whenever there are two files with the same name – they are both identical).

Within ~/.bitcoin/bitcoin.conf (you can create this if it doesn’t already exist), let’s add a couple of configuration options:


This is going to tell bitcoind to run in the background and to use the listed wallet file. You can list as many wallet files as you like (there are potentially limits of around 300 wallets at once).

Now we start bitcoind and give it some time to sync the blockchain. Now we will have all wallets in the same version of bitcoind and we can start to dump the private keys and then import them all into one new fresh wallet.

Step 1) Create a new wallet:

Step 2) Dump Private keys from each of the wallets we earlier imported.

Step 3) Import private keys from each of the wallets we earlier exported.

Spring Cleaning for online presence

In the past few years I have been targeted more and more by people trying to get into online accounts. As such I’ve been going through and doing some ‘spring cleaning.’

  • Go through KeyPass and update all important passwords (be sure to generate unique passwords, websites frequently get hacked, if you use the same password everywhere then this is a very easy attack vector).
  • Ensure that you are using Authy type 2-Factor Authentication, never SMS.
  • Check DropBox, Amazon S3, iCloud, Google Drive, Amazon Drive, etc and consolidate all information onto one service.
    • Ensure that all sensitive files are encrypted.
    • Ensure all important files are being backed up.
    • Reduce duplicates and clutter by conslidating.

Twilio Programmable Wireless

Today I finally activated my SIM cards from Twilio. This may be one of the coolest things I’ve ever used when it comes to mobile connectivity. I can now create and control my phone numbers, data plans, etc all right through my own interace – goodbye sprint/verizon/google/etc.

In Spain the Data is still expensive at $20/gigabyte, but I don’t actually use much data so i’m not too concerned. I have voice calls routed to my phone now from multiple numbers all over the world and outgoing calls are routed through the local numbers (so if i call to the USA, my callerid shows up as my USA number, if i’m calling to Spain, it shows up as Spanish number).

A+ Twilio – Now just work on getting the data rates cheaper.

Switching back to dropbox

So after switching to BittorrencSync for a few months (which was working well) they bloated out the software and made it no longer completely free. Next I tried Synching, but it had issues with files that were open while it was syncing (for example KeePass).

So now its back to dropbox with EncFs encryption. DropBox’s synchronization just works really well. They have fast servers, and over all its a great solution. Only issue is trusting them, but so long as we are encrypting everything that doesn’t matter.

Additionally what i’ve done is created a small script to run on any freshly formatted computer i’m trying to setup for use.

This makes my dock sync across all computers, the screen shot default location to dropbox, and documents being stored on dropbox.

mv ~/Library/Preferences/ ~/Library/Preferences/$

ln -s ~/Dropbox/File/osx/ ~/Library/Preferences/$

defaults write location ~/Dropbox/Screenshots

mv ~/Documents ~/Documents.old

ln -s ~/Dropbox/Documents ~/Documents

New Photo Backup Solution – Amazon Cloud Drive?

Recently Amazon Cloud Drive announced that they were doing a free unlimited photo storage deal for amazon prime members. After looking a little further into it I realized that indeed I can upload the .CR2 files from the Canon 5D, which is actually pretty awesome.

Next step was of course to figure out how to get my photos into their cloud (Approximately 500GB of photos, currently in an Aperture Library). They have a downloadable desktop application for OS X, but it doesn’t support any sort of syncing, just purely uploading. Additionally after using it a couple times it just started to hang on me. So ultimately I end up using multiple tabs in google chrome to upload one large folder each. I’m maxing out the crappy Comcast 150mbit internet I have (uploading at around 30mbit consistently to Amazon). The upload does prevent duplicates from being uploaded.

The interface is basic, but slick. I won’t likely use this as the primary place I keep my photos (currently a raid 0 dual SSD thuderbolt enclosure) but I do trust amazon to be around a while and see this is a great opportunity for some free off-site storage. And may someday, who knows, their website may be more powerful than the local computer based apps I currently use (i.e. Aperture).

I also tried a few other services such as Yahoo’s 1TB (doesn’t support raw) but Amazon seems to be the only unlimited, free photo storage supporting raw file formats.

Switching from iCloud to gmail

I get way too much email now and using the default apple service to manage email is hopeless. Both iPhone and OS X email applications suck at handling multiple email accounts or thousands of messages.

Since I’m using Google Apps on my own domain, the option to import email from your old email provider is not available so I’m using a tool called imapsync. According to google there is approximately a 500 megabyte per day IMAP transfer limit, however I found this not to exist, sending over 5GB of email over to google last night.

Now its jus ta matter of sorting out the hundreds of folders that were sent over and converted into google labels.


After using google apps gmail for a month or so now, i’m loving it. It works great. Only real thing lacking now is the ability to automatically PGP sign all outgoing emails without having to use thunderbird.

Gmail’s filters blow apple’s out of the water.

The search feature is fast and easy to use.


Voip Provider Review Followup

So after a few months I’ve narrowed down the voip providers I use to the following:

I’m using for all my US based DID’s. So far it works really well. It also supports SMS which is a great added plus.


I’m using flowroute for outgoing domestic calls.

While has great rates as well as DID’s from all over the world (and lax verification on if you’re actually a resident of such places) it doesn’t scale well. I use it for one dutch number, but when trying to add multiple numbers, I haven way within Asterisk to differentiate between the DID’s coming in over the same trunk. has good outgoing call quality and prices, so I’m using it for all my international call routings.

Encrypted Simplicity

With TrueCrypt’s recent issues I have once again redone the way I handle encryption, replication, and backup.


For encryption I am using encfs (installed via home-brew). This is fast, efficient, secure, file based encryption (so it works well for syncing).


For syncing I am using BtSync. It is free, open source, multi-platform, and works well.

~/Documents/ – Non-secure syncing of the documents folder on all my machines.

~/.crypt/ – Secure (enfs) encrypted files directory.

~/iPhone-photos/ – Unencrypted iPhone photos (sync’d whenever phone is on wifi – i prefer this over apple’s iCloud photo sync).

~/.ssh/ – Syncing password encrypted ssh private (and public) key pairs.


Using the Time Backup utility of Synology NAS I backup my documents, ssh, and encrypted files hourly to an external USB drive, maintaining many historical versions of each file incase something bad happens.

I also have traded BtSync read-only keys with a few friends to increase the number of copies of each file that is available in the BtSync cloud, this provides redundancy as well as speed in syncing.


Using ssh-add -K <path> in OS X I have managed to automate authentication to most of my remote servers.

Back to iCloud for email

After a few months of messing around with various mail solutions (iRedMail, hosting my own osx server, open bad mail server, citadel, Zohomail, etc) I have decided its just too much work and am going back to OS X. I have decided that instead of finding a better way to manage all the e-mail I receive that I am going to start aggressively reducing the number of emails I get. No more mailing lists, unsubscribing from all newsletters, etc. E-mail is just not an adequate way of communication any longer because it’s overwhelming. For all communications that occur regularly via email I am going to request we migrate the conversation to Skype chat or via one of the other messaging services (if necessary, encrypted with OTR).

Over the month of June, I received an average of 182 emails a day, I hope to get this to 20 or less over the coming months.