Skip to content

Commit 78e736b

Browse files
authored
Merge pull request #7 from jaonoctus/release/v1.1.1
Release/v1.1.1
2 parents 7fdd412 + 47516a5 commit 78e736b

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@ import {
2323
const mnemonic = 'zoo zoo zoo zoo zoo zoo zoo zoo zoo zoo zoo wrong'
2424
const passphrase = 'your super secure passphrase' // optional
2525

26-
// hex format
2726
const { privateKey } = privateKeyFromSeedWords({ mnemonic, passphrase })
2827
const { publicKey } = getPublicKey({ privateKey })
29-
// bech32 format
3028
const { bech32PrivateKey } = getBech32PrivateKey({ privateKey })
3129
const { bech32PublicKey } = getBech32PublicKey({ publicKey })
30+
31+
const extendedAccountIndex = 0
32+
const accountIndex = 0
33+
34+
const { privateExtendedKey, publicExtendedKey } = extendedPairFromSeedWords(mnemonic, passphrase, extendedAccountIndex)
35+
const { privateKey, publicKey } = accountFromExtendedKey(privateExtendedKey, accountIndex)
3236
```

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nip06",
3-
"version": "1.0.3",
3+
"version": "1.1.1",
44
"description": "Nostr basic key derivation from mnemonic seed phrase",
55
"author": "jaonoctus <jaonoctus@protonmail.com>",
66
"license": "MIT",

0 commit comments

Comments
 (0)