From aac13a8817bdd6ec844a7c81177adab6445318ee Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Sun, 16 Mar 2014 07:09:46 -0300 Subject: [PATCH] remove uncompressed key example --- examples/CreateKey.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/examples/CreateKey.js b/examples/CreateKey.js index 5bc7196..8b162cf 100644 --- a/examples/CreateKey.js +++ b/examples/CreateKey.js @@ -25,19 +25,12 @@ var run = function() { console.log ('\tAddr : ' + wkObj.addr); }; - //Generate a new one (compressed public key, compressed WIK flag) + //Generate a new one (compressed public key, compressed WIF flag) var wk = new WalletKey(opts); wk.generate(); print(wk); - //Generate a new one (uncompressed public key, uncompressed WIK flag) - var wk = new WalletKey(opts); - wk.generate(); - wk.privKey.compressed = false; - wk.privKey.regenerateSync(); - print(wk); - - //Generate from private Key WIF + //Generate from private Key WIF. Compressed status taken from WIF. var wk2 = new WalletKey(opts); wk2.fromObj({priv:'cS62Ej4SobZnpFQYN1PEEBr2KWf5sgRYYnELtumcG6WVCfxno39V'}); print(wk2);