From d3512bdcef9b5ef89cf4f321c9b5958f2f45dd82 Mon Sep 17 00:00:00 2001 From: ethicnology Date: Fri, 20 Mar 2026 12:54:13 +0000 Subject: [PATCH 1/2] feat(BIP-85): add Nostr application 86' --- bip-0085.mediawiki | 54 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/bip-0085.mediawiki b/bip-0085.mediawiki index b0f00abbef..24a35cd60c 100644 --- a/bip-0085.mediawiki +++ b/bip-0085.mediawiki @@ -423,6 +423,52 @@ OUTPUT * DERIVED ENTROPY=5e41f8f5d5d9ac09a20b8a5797a3172b28c806aead00d27e36609e2dd116a59176a738804236586f668da8a51b90c708a4226d7f92259c69f64c51124b6f6cd2 * DERIVED ROLLS=1,0,0,2,0,1,5,5,2,4 +===Nostr=== + +Application number: 86' + +The application number is the sum of the alphabetical positions of the letters in Nostr (n=14 + o=15 + s=19 + t=20 + r=18) to avoid the confusion with NIP06. + +The derivation path format is: m/83696968'/86'/{identity}'/{account}' + +Uses the entropy as a Nostr private key. + +Identity index 0' is reserved for future protocol use. +Account index 0' is reserved across all identities for key management operations. +Usable keys start at identity >= 1' and account >= 1'. + +The resulting 32-byte private key is Bech32 encoded as an nsec per NIP19. + +====identity=1, account=1==== + +INPUT: +* MASTER BIP32 ROOT KEY: xprv9s21ZrQH143K2LBWUUQRFXhucrQqBpKdRRxNVq2zBqsx8HVqFk2uYo8kmbaLLHRdqtQpUm98uKfu3vca1LqdGhUtyoFnCNkfmXRyPXLjbKb +* PATH: m/83696968'/86'/1'/1' + +OUTPUT +* DERIVED ENTROPY=7f3313b1bdeacc4f395c666b473982550cdc66c225fd7e7b0f5d11d33cddde31 +* DERIVED NSEC=nsec10ue38vdaatxy7w2uve45wwvz25xdcekzyh7hu7c0t5gax0xamccsyuyesn + +====identity=1, account=2==== + +INPUT: +* MASTER BIP32 ROOT KEY: xprv9s21ZrQH143K2LBWUUQRFXhucrQqBpKdRRxNVq2zBqsx8HVqFk2uYo8kmbaLLHRdqtQpUm98uKfu3vca1LqdGhUtyoFnCNkfmXRyPXLjbKb +* PATH: m/83696968'/86'/1'/2' + +OUTPUT +* DERIVED ENTROPY=41fbfba9227f7d261ccb90f61264fd0b38e1f762108c31135f8fc138329594ff +* DERIVED NSEC=nsec1g8alh2fz0a7jv8xtjrmpye8apvuwramzzzxrzy6l3lqnsv54jnlsuxjsql + +====identity=2, account=1==== + +INPUT: +* MASTER BIP32 ROOT KEY: xprv9s21ZrQH143K2LBWUUQRFXhucrQqBpKdRRxNVq2zBqsx8HVqFk2uYo8kmbaLLHRdqtQpUm98uKfu3vca1LqdGhUtyoFnCNkfmXRyPXLjbKb +* PATH: m/83696968'/86'/2'/1' + +OUTPUT +* DERIVED ENTROPY=a159a41860a18457855511334a3c813430468ec3c1ef17700d4917d0e881a45a +* DERIVED NSEC=nsec159v6gxrq5xz90p24zye550ypxscydrkrc8h3wuqdfytap6yp53dq5gdpd6 + ==Backwards Compatibility== This specification is not backwards compatible with any other existing specification. @@ -431,7 +477,7 @@ This specification relies on BIP32 but is agnostic to how the BIP32 root key is ==References== -BIP32, BIP39 +BIP32, BIP39, [https://github.com/nostr-protocol/nips/blob/master/01.md NIP01], [https://github.com/nostr-protocol/nips/blob/master/06.md NIP06], [https://github.com/nostr-protocol/nips/blob/master/19.md NIP19] ==Reference Implementations== @@ -441,6 +487,12 @@ BIP32, BIP39 ==Changelog== +===2.1.0=== + +====Added==== + +* Nostr application 86' + ===2.0.0 (2025-09-19)=== ====Fixed==== From 371277d2e09a47c71aa8612d1e2351164e73babd Mon Sep 17 00:00:00 2001 From: ethicnology Date: Fri, 20 Mar 2026 13:23:08 +0000 Subject: [PATCH 2/2] fix: exclude nsec from typos --- .typos.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/.typos.toml b/.typos.toml index e30e9e6bd4..2cf21bd17f 100644 --- a/.typos.toml +++ b/.typos.toml @@ -17,6 +17,7 @@ extend-ignore-re = [ "value: .*", "pqNTRUsign", "Strnad", + "nsec1.*", ] [default.extend-words]