diff options
| author | Seth For Privacy <github.5dbwg@simplelogin.com> | 2023-04-04 13:43:59 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-04 13:43:59 -0400 |
| commit | c6e14c808775ec6ca0a721fe273b4de7124dd143 (patch) | |
| tree | 45b21bb0732163a2ee6028cf274c2ba65e05b7f0 /06.md | |
| parent | 8b39976e78f90fe766ad7149e250777cddacbb5e (diff) | |
Add address_index for NIP-06 generation
I propose a change to NIP-06 that would allow the generation of infinite root keys by using the address_index field of the 5-level path used to derive Nostr keys under BIP32.
The current 5-level path used for NIP-06 is "m/44'/1237'/0'/0/0", and only generates one private key. By changing it to "m/44'/1237'/0'/0/<address_index>", we can generate multiple keys from a single parent bitcoin seed.
Diffstat (limited to '06.md')
| -rw-r--r-- | 06.md | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -8,8 +8,8 @@ Basic key derivation from mnemonic seed phrase | |||
| 8 | 8 | ||
| 9 | [BIP39](https://bips.xyz/39) is used to generate mnemonic seed words and derive a binary seed from them. | 9 | [BIP39](https://bips.xyz/39) is used to generate mnemonic seed words and derive a binary seed from them. |
| 10 | 10 | ||
| 11 | [BIP32](https://bips.xyz/32) is used to derive the path `m/44'/1237'/0'/0/0` (according to the Nostr entry on [SLIP44](https://github.com/satoshilabs/slips/blob/master/slip-0044.md)). | 11 | [BIP32](https://bips.xyz/32) is used to derive the path `m/44'/1237'/0'/0/<address_index>` (according to the Nostr entry on [SLIP44](https://github.com/satoshilabs/slips/blob/master/slip-0044.md)). |
| 12 | 12 | ||
| 13 | This is the default for a basic, normal, single-key client. | 13 | A basic client can simply use an `address_index` of `0` to derive a single key. For more advanced use-cases you can increment `address_index`, allowing generation of practically infinite keys from the 5-level path. |
| 14 | 14 | ||
| 15 | Other types of clients can still get fancy and use other derivation paths for their own other purposes. | 15 | Other types of clients can still get fancy and use other derivation paths for their own other purposes. |