You can use this open source tool to send all the coins from your Coinbase Multisig Vault to any bitcoin address you choose.
In order to do this you will need the data from your vault backup that you either printed out or saved somewhere.
http://coinbase.github.io/multisig-tool
To complete this recovery process, you will need the following information:
- 3 extended public keys (xpubkeys)
- User seed
- Shared encrypted seed
- Your vault password
Internet connection is only required in Step 1, where you input the public keys, so that we can fetch the unspent outputs from your vault addresses.
Before inputting your keys in Step 2 and signing the transaction you can safely go offline.
In Step 3 you will get a signed transaction in raw hex form.
You can then copy this transaction and verify it with Bitcoin Core and decoderawtransaction
or using an online tool like Coinb.in.
After verifying you then broadcast it using Bitcoin Core and sendrawtransaction
or any other API or client that supports broadcasting transactions into the Bitcoin network.
You can download this tool and run it locally or use our hosted version at http://coinbase.github.io/multisig-tool.
If you wish to run the tool locally, you need to do it through a local web server. This is because we use Web Workers for decrypting your BIP38 encrypted shared key seed, and Web Workers are not permitted to run through the file:///
protocol.
Protip™: If you use Ruby, you can spin up a web server in the current directory with this one-liner:
gem install thin; ruby -rrack -e "include Rack; Handler::Thin.run Builder.new { run Directory.new '' }"
One alternative is to run Chrome with the --allow-access-from-files
parameter.
This tool was designed to have a minimal code foot print so it could be easily auditable.
All the domain specific crypto is done in multisig.js
.
Everything else is either UI code or dependency libraries.
We use the BitcoinJS library to handle HD wallets, Bitcoin keys, addresses and transactions.
We used this command to build the lib/bitcoinjs.js
:
-
Install packages with
npm
:npm install bitcoinjs-lib --save
-
Use
browserify
to resolve dependencies:browserify -r bitcoinjs-lib -r buffer > lib/bitcoinjs.js
We use the BIP38 library to decrypt the encrypted shared key seeds.
To build the multisig/bip38.js
we used:
-
Install packages with
npm
:npm install bip38 crypto-browserify --save
-
Use
browserify
to resolve dependencies:browserify -r bip38 -s Bip38 > multisig/bip38.js
Then we amend the multisig/bip38.js
to support progress callbacks and Web Worker messages handling.
-
There is currently no error checking whatsoever. That means the tool won't let you know if something is wrong with your input or with anything else. It will just silently stop working.
-
There is also currently no support for group vaults.
-
At the moment if your highest HD index is more than 12, it won't be able to fetch the unspent outputs, because of API limitations.
We plan to tackle those issues soon, but we do accept community contributions as well. So if you have a solution for some of these, please submit a pull request!