NIP-49: Private key encryption (#133)

* Key export/import as implemented by gossip

* Added test data

* Last push didn't make sense, only this direction works

* Multiple updates: 100k rounds, random salt, version number, length indications

* Rename to NIP-49, include in README

* Change encoding to bech32 (ncryptsec)

* Major rework of the algorithm. NIP is now incomplete as I haven't coded it yet.

* renamed

* spelling

* minor fix

* formatting

* MORE CHANGES: scrypt, spelt out more detail of the steps to take

* spelling

* Mostly just removing some unnecesary stuff

* Remove the cafebabe note

* Remove confusing nonce statement

* Change title (and a bit of wording)

* remove author

* remove legacy event

* rename on README

---------

Co-authored-by: Mike Dilger <mike@ezicheq.com>
Co-authored-by: fiatjaf_ <fiatjaf@gmail.com>
This commit is contained in:
Michael Dilger
2024-01-30 04:45:16 +13:00
committed by GitHub
parent ff8e204061
commit 7ec060375c
2 changed files with 113 additions and 0 deletions

View File

@@ -57,6 +57,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos
- [NIP-46: Nostr Connect](46.md)
- [NIP-47: Wallet Connect](47.md)
- [NIP-48: Proxy Tags](48.md)
- [NIP-49: Private Key Encryption](49.md)
- [NIP-50: Search Capability](50.md)
- [NIP-51: Lists](51.md)
- [NIP-52: Calendar Events](52.md)