aboutsummaryrefslogtreecommitdiffstats
path: root/public/js/sweep.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'public/js/sweep.coffee')
-rw-r--r--public/js/sweep.coffee10
1 files changed, 10 insertions, 0 deletions
diff --git a/public/js/sweep.coffee b/public/js/sweep.coffee
new file mode 100644
index 00000000..98124963
--- /dev/null
+++ b/public/js/sweep.coffee
@@ -0,0 +1,10 @@
+$(->
+
+ pk = '5HseCGU8rMjxEXxiPuD5BDku4MkFqeZyd4dZ1jvhTVqvbTLvyTJ'
+ try
+ key = Bitcoin.ECKey.fromWIF(pk)
+ $('body').append(key.pub.getAddress().toString())
+ catch e
+ console.log(e)
+
+)