From 34da9db5cf0570a22c6707f6e125225a18ab41d2 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 19 Jul 2014 07:51:27 -0700 Subject: Sweep key --- public/js/sweep.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 public/js/sweep.js (limited to 'public/js/sweep.js') diff --git a/public/js/sweep.js b/public/js/sweep.js new file mode 100644 index 00000000..b724bee8 --- /dev/null +++ b/public/js/sweep.js @@ -0,0 +1,14 @@ +(function() { + $(function() { + var e, key, pk; + pk = '5HseCGU8rMjxEXxiPuD5BDku4MkFqeZyd4dZ1jvhTVqvbTLvyTJ'; + try { + key = Bitcoin.ECKey.fromWIF(pk); + return $('body').append(key.pub.getAddress().toString()); + } catch (_error) { + e = _error; + return console.log(e); + } + }); + +}).call(this); -- cgit v1.2.3