NIP06 support #425

Merged
w3irdrobot merged 5 commits from nip06 into main 2023-03-10 20:51:50 +00:00
w3irdrobot commented 2023-03-10 19:53:53 +00:00 (Migrated from github.com)

This PR updates the new private key generation to be NIP06-compliant. This basically means the entropy is generated using a mnemonic phrase per BIP39 and used as the seed for a BIP32 master key. The private key for the account is then derived from mater key using the designated derivation path of m/44'/1237'/0'/0/0. Support for restoring an account from a mnemonic key is also supported. Note: restoring from a phrase assumes the account was created using a phrase at the beginning.

This PR updates the new private key generation to be [NIP06-compliant](https://github.com/nostr-protocol/nips/blob/master/06.md). This basically means the entropy is generated using a mnemonic phrase per BIP39 and used as the seed for a BIP32 master key. The private key for the account is then derived from mater key using the designated derivation path of `m/44'/1237'/0'/0/0`. Support for restoring an account from a mnemonic key is also supported. Note: restoring from a phrase assumes the account was created using a phrase at the beginning.
v0l (Migrated from github.com) reviewed 2023-03-10 20:17:30 +00:00
w3irdrobot (Migrated from github.com) reviewed 2023-03-10 20:40:49 +00:00
w3irdrobot (Migrated from github.com) reviewed 2023-03-10 20:42:40 +00:00
v0l (Migrated from github.com) reviewed 2023-03-10 20:47:03 +00:00
v0l (Migrated from github.com) approved these changes 2023-03-10 20:48:51 +00:00
Sign in to join this conversation.
No description provided.