{"id":"657caf10f80ca2f21db343dea78f2e7878a2b023065e3c5cd6cd06525ec2f340","pubkey":"2b39b4ffe62933df970e19366c22c1e092f953f83fcfed754e0f04d5a3b459f9","created_at":1780225830,"kind":30817,"tags":[["d","nip-06"],["title","NIP-06: Basic key derivation from mnemonic seed phrase"],["summary","Deriving a key from a BIP39 mnemonic along the m/44'/1237' path."],["s","unrecommended"],["t","nostr"],["t","nip"],["alt","A specification: NIP-06: Basic key derivation from mnemonic seed phrase"],["client","openspecs-import"],["published_at","1651402137"],["proxy","https://github.com/nostr-protocol/nips/blob/656cecc7c0a815b6a2b218d3b5d6f078b3f4dbab/06.md","web"],["x","a7d86f43c3723b7a67765e81910a2478007d4655024e2899a163a09e2c834b3a"]],"content":"> __Warning__  `unrecommended`: prefer a single nsec\n\nNIP-06\n======\n\nBasic key derivation from mnemonic seed phrase\n----------------------------------------------\n\n`draft` `unrecommended` `optional`\n\n[BIP39](https://bips.xyz/39) is used to generate mnemonic seed words and derive a binary seed from them.\n\n[BIP32](https://bips.xyz/32) is used to derive the path `m/44'/1237'/<account>'/0/0` (according to the Nostr entry on [SLIP44](https://github.com/satoshilabs/slips/blob/master/slip-0044.md)).\n\nA basic client can simply use an `account` of `0` to derive a single key. For more advanced use-cases you can increment `account`, allowing generation of practically infinite keys from the 5-level path with hardened derivation.\n\nOther types of clients can still get fancy and use other derivation paths for their own other purposes.\n\n### Test vectors\n\nmnemonic: leader monkey parrot ring guide accident before fence cannon height naive bean\\\nprivate key (hex): 7f7ff03d123792d6ac594bfa67bf6d0c0ab55b6b1fdb6249303fe861f1ccba9a\\\nnsec: nsec10allq0gjx7fddtzef0ax00mdps9t2kmtrldkyjfs8l5xruwvh2dq0lhhkp\\\npublic key (hex): 17162c921dc4d2518f9a101db33695df1afb56ab82f5ff3e5da6eec3ca5cd917\\\nnpub: npub1zutzeysacnf9rru6zqwmxd54mud0k44tst6l70ja5mhv8jjumytsd2x7nu\n\n---\n\nmnemonic: what bleak badge arrange retreat wolf trade produce cricket blur garlic valid proud rude strong choose busy staff weather area salt hollow arm fade\\\nprivate key (hex): c15d739894c81a2fcfd3a2df85a0d2c0dbc47a280d092799f144d73d7ae78add\\\nnsec: nsec1c9wh8xy5eqdzln7n5t0ctgxjcrdug73gp5yj0x03gntn67h83twssdfhel\\\npublic key (hex): d41b22899549e1f3d335a31002cfd382174006e166d3e658e3a5eecdb6463573\\\nnpub: npub16sdj9zv4f8sl85e45vgq9n7nsgt5qphpvmf7vk8r5hhvmdjxx4es8rq74h\n","sig":"6c8bece4e83f9183ab3783090b06819bf1b13ab0890460bf172a1f0cd7dfb339e186a43f416df5031793b33e7c7ac637be60925b114fbac56bf1cf48455efc18"}