aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/nip17.ts
Commit message (Collapse)AuthorAgeFilesLines
* Add doc comments to my exported $lib methodsAdrien Hopkins2026-01-281-0/+2
|
* Unexport decryptNIP17MessageNIP07Adrien Hopkins2026-01-281-1/+1
| | | | | This is a helper method & isn't used anywhere else. It should have never been exported.
* Add button to mute/unmute accountAdrien Hopkins2026-01-091-1/+1
|
* Move some DM code to $libAdrien Hopkins2025-12-051-0/+105
| | | | I will be using some of this elsewhere, so it really should be there.
* Add expiration timestamps to kind 13 sealsAdrien Hopkins2025-11-131-12/+24
| | | | | | In case these leak, they will expire automatically. Currently, they use the same method as the gift wrap expirations: expiration + 2 days after the creation timestamp.
* Add DM expiration functionalityAdrien Hopkins2025-10-181-7/+16
|
* Send copy of messages to senderAdrien Hopkins2025-10-021-6/+12
|
* Fetch & display received DMs from relaysAdrien Hopkins2025-10-011-4/+2
|
* Add message decryptionAdrien Hopkins2025-09-131-0/+11
| | | | | | | | | Currently, this just takes a message from the text box and returns its decrypted version, but next I will make it decrypt messages it gets from relays. This code works with both NIP-07 (window.nostr) and getPrivateKey(). If both are available, it chooses NIP-07 like the encryption code.
* Remove need for explicit key entryAdrien Hopkins2025-09-051-14/+16
| | | | | | | | | If window.nostr is available, I don't need the sender's SK, I can do everything with its functions. Otherwise, I'll ask for the SK using getPrivateKey(). The override public key was only for testing, but I still don't need it because I can get the users' private keys from the settings tab.
* Seal with NIP-07 if availableAdrien Hopkins2025-09-051-2/+21
| | | | This makes the system work with any nostr extensions you might be using.
* Add improved NIP-17 codeAdrien Hopkins2025-08-261-0/+59
This is based on an audited NIP-44 implementation.