Skip to content

Commit

Permalink
Removed debug code in examples.js. Updated version number.
Browse files Browse the repository at this point in the history
  • Loading branch information
tboydston committed Jun 21, 2021
1 parent d9010ed commit c1805bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit c1805bc

Please sign in to comment.