From c1805bc043e693312c3724a8fe2d93272970e317 Mon Sep 17 00:00:00 2001 From: Tracey Boydston Date: Mon, 21 Jun 2021 16:38:46 +0800 Subject: [PATCH] Removed debug code in examples.js. Updated version number. --- examples.js | 8 +++++--- package.json | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/examples.js b/examples.js index 2951734..05f9e1d 100644 --- a/examples.js +++ b/examples.js @@ -5,15 +5,17 @@ const seed = "09a0a3b58d10bbc456254f1915c2627d8f0e9968922505b39dbb08f6a5dc9dafde ;(async()=>{ /** - * Generate cryptographically random Mnemonic and seed buffer. + * Generate cryptographically random Mnemonic and seed buffer. + * This is a pass through for the Bip39 libraries generateMnemomic function. + * Please review the bip39 implementation to make sure you are comfortable with + * the implementation before using this for anything critical. */ -let sampleMnemonic = await HdAddGen.generateMnemonic('english',256) +let sampleMnemonic = await HdAddGen.generateMnemonic('english',128 /* 128=12words, 256=24words */ ) console.log( `\nSample Mnemonic and Seed Generation` ) console.log(`Mnemonic: ${sampleMnemonic.mnemonic}`) console.log(`Seed: ${sampleMnemonic.seed.toString('hex')}`) -process.exit() /** * Generate BIP 44 ( Legacy '1' ) addresses for bitcoin. */ diff --git a/package.json b/package.json index 556017e..deb349b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hdaddressgenerator", - "version": "1.0.4", + "version": "1.0.5", "description": "Generate hierarchical deterministic(HD) coin specific crypto addresses ( legacy, segwit, bech32 ) from single master key pair for over 190 different cryptocurrencies.", "main": "hdAddressGenerator.js", "scripts": {