From 948f4bb283e19367d4084088388100865fc9fd38 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Tue, 4 Mar 2014 17:45:01 -0300 Subject: [PATCH] add KeyModule example to browser --- examples/example.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/examples/example.html b/examples/example.html index 41d819c..21d7441 100644 --- a/examples/example.html +++ b/examples/example.html @@ -38,6 +38,15 @@ }); + + var Key = bitcore.KeyModule.Key; + var k = Key.generateSync(); + + print ('Generated Key Pair:'); + print ('Private:' + bitcore.buffertools.toHex(k.private)); + print ('Public:' + bitcore.buffertools.toHex(k.public)); + +