Created
June 26, 2016 12:05
-
-
Save mjmacleod/4523cfd872ac6f2a295e9a6a28a0f53d to your computer and use it in GitHub Desktop.
How to recover a bitcoin address from a colu.co account - requested by one of our users who wanted to recover money he spent on mycellium funding.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var HDWallet = require('hdwallet') | |
var bitcoin = require('bitcoinjs-lib') | |
var hdwallet = new HDWallet({ | |
privateSeedWIF: 'privatewiffromcoluwebsitegoeshere'} | |
) | |
hdwallet.on('connect', function () | |
{ | |
hdwallet.getAddressPrivateKey("bitcoinaddresswheremoneyisgoeshere", function (err, priv) | |
{ | |
console.log(priv.getFormattedValue()) | |
done() | |
}) | |
}) | |
hdwallet.init(function(){}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment