nostr-tools
Advanced tools
Comparing version 0.16.2 to 0.17.0
@@ -11,3 +11,3 @@ import {wordlist} from 'micro-bip39/wordlists/english' | ||
let root = HDKey.fromMasterSeed(Buffer.from(seed, 'hex')) | ||
return Buffer.from(root.derive(`m/44'/1237'/0'/0'`).privateKey).toString( | ||
return Buffer.from(root.derive(`m/44'/1237'/0'/0/0`).privateKey).toString( | ||
'hex' | ||
@@ -18,3 +18,3 @@ ) | ||
export function seedFromWords(mnemonic) { | ||
return Buffer.from(mnemonicToSeedSync(mnemonic, wordlist)).toString('hex') | ||
return Buffer.from(mnemonicToSeedSync(mnemonic)).toString('hex') | ||
} | ||
@@ -21,0 +21,0 @@ |
{ | ||
"name": "nostr-tools", | ||
"version": "0.16.2", | ||
"version": "0.17.0", | ||
"description": "Tools for making a Nostr client.", | ||
@@ -5,0 +5,0 @@ "repository": { |
21679