Skip to content

Instantly share code, notes, and snippets.

@mjmacleod
Created June 26, 2016 12:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjmacleod/4523cfd872ac6f2a295e9a6a28a0f53d to your computer and use it in GitHub Desktop.
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.
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