You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bip85: address review on Nostr application, renumber to 128002'
Incorporate akarve's review of the Nostr application:
- Renumber 9000' -> 128002' and drop the origin explanation,
per the convention of leaving the app number's meaning implicit.
- State explicitly that the Nostr private key is the first 32 bytes
(most significant 256 bits) of the 64-byte BIP-85 entropy.
- Move the private-key sentence below the path and consolidate it
with the encoding description.
- Justify the reserved identity 0' and account 0' indices.
- Show the full 64-byte DERIVED ENTROPY in all test vectors for
consistency with the other applications.
Copy file name to clipboardExpand all lines: bip-0085.mediawiki
+15-19Lines changed: 15 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -425,49 +425,45 @@ OUTPUT
425
425
426
426
===Nostr===
427
427
428
-
Application number: 9000'
428
+
Application number: 128002'
429
429
430
-
9000 is the zip code of Funchal in Madeira, Portugal, where this specification was written during the Sovereign Engineering event.
430
+
The derivation path format is: <code>m/83696968'/128002'/{identity}'/{account_index}'</code>
431
431
432
-
The derivation path format is: <code>m/83696968'/9000'/{identity}'/{account_index}'</code>
432
+
Each <code>identity</code> is an independent, unlinkable Nostr key namespace, and each <code>account_index</code> is a distinct key within that identity.
433
433
434
-
Uses the entropy as a Nostr private key.
434
+
Identity index <code>0'</code> is reserved for future protocol-level use. Within every identity, account index <code>0'</code> is reserved as a management key for that identity (for example proof-of-linkage between an identity's keys, key rotation, and revocation). Usable signing keys therefore start at <code>identity >= 1'</code> and <code>account_index >= 1'</code>. The exact semantics of these reserved indices are defined by an external NIP that references this application.
435
435
436
-
Identity index <code>0'</code> is reserved for future protocol use.
437
-
Account index <code>0'</code> is reserved across all identities for key management operations.
438
-
Usable keys start at <code>identity >= 1'</code> and <code>account_index >= 1'</code>.
439
-
440
-
The resulting 32-byte private key is Bech32 encoded as an <code>nsec</code> per NIP19.
436
+
The standard application of BIP-85 produces 64 bytes of entropy. Take the first 32 bytes (the 256 most significant bits) as the Nostr private key and discard the trailing 32 bytes, as in the HEX application. This 32-byte private key is then Bech32 encoded as an <code>nsec</code> per NIP19.
0 commit comments