aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
* Always use ensureSigner for nostr signingAdrien Hopkins2026-02-242-69/+70
| | | | This fixes a problem that occurs with muting users using secret keys.
* Fix bug that prevented sending nostr DMs with skAdrien Hopkins2026-02-241-2/+1
|
* Create only one event when sending DM to selfAdrien Hopkins2026-02-141-14/+21
| | | | | | | | | | | Normally, the system creates two identical events: one encrypted to the sender and one to the recipient. If those are the same (i.e. you send a message to yourself), this creates two identical messages. The gift-wraps already give the two different events different pubkeys, created_at times, IDs and tags, so there should be no way to associate them with each other. Therefore, this change should not allow attackers to see that a message is sent to oneself by looking for a matching one.
* Increase DM fetch limit to 2^16Adrien Hopkins2026-02-141-1/+1
| | | | | Given that this is for all recipients combined, 2^16 is much more reasonable than 2^8.
* Fix NIP-17 DM signer integration and relay authAdam Soltys2026-01-281-21/+139
| | | | | | | | | | | | | - Add ensureSigner() to trigger signer modal when no valid key available - Add NIP-42 relay auth support for publishing DMs via publishWithAuth() - Validate signer sk length (64 hex chars) before use - Clear invalid signer state to ensure modal shows correctly - Include default relays when fetching messages for better coverage - Add try/catch around decrypt to handle failures gracefully - Fix variable declaration in for loop (const event) - Fall back to default DM relays when user has no 10050 event Co-Authored-By: Claude Opus 4.5 <[email protected]>
* Add doc comments to my exported $lib methodsAdrien Hopkins2026-01-284-0/+7
|
* Unexport decryptNIP17MessageNIP07Adrien Hopkins2026-01-281-1/+1
| | | | | This is a helper method & isn't used anywhere else. It should have never been exported.
* Encrypt mute listsAdrien Hopkins2026-01-092-7/+51
|
* Preserve non-'p' tags in mute listsAdrien Hopkins2026-01-091-25/+15
|
* Add button to mute/unmute accountAdrien Hopkins2026-01-093-10/+38
|
* Hide muted chatsAdrien Hopkins2026-01-091-0/+47
|
* Use coinos username in DM homepage if availableAdrien Hopkins2025-12-171-3/+3
|
* Get NIP-05 usernamesAdrien Hopkins2025-12-131-0/+18
|
* Create initial DM selection pageAdrien Hopkins2025-12-051-0/+11
|
* Move some DM code to $libAdrien Hopkins2025-12-053-0/+136
| | | | 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.
* upgrade dependenciesAdam Soltys2025-09-101-22/+40
|
* prevent redirect while navigatingAdam Soltys2025-09-101-2/+1
|
* 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-262-0/+194
| | | | This is based on an audited NIP-44 implementation.
* look for bip21 lightning earlierAdam Soltys2025-07-261-6/+6
|
* handle null tipsAdam Soltys2025-07-192-2/+4
|
* prompt for tip for auto paysAdam Soltys2025-07-191-6/+5
|
* user onboardingAdam Soltys2025-07-101-1/+1
|
* fund sweepAdam Soltys2025-07-072-0/+52
|
* fix magic stringAdam Soltys2025-05-271-1/+1
|
* default to back camera for ios, remember cameraAdam Soltys2025-03-141-0/+1
|
* handle peanutsAdam Soltys2025-03-121-0/+21
|
* handle nostr inputsAdam Soltys2025-02-281-0/+7
|
* version bumpAdam Soltys2025-02-281-4/+0
|
* assetsAdam Soltys2025-02-281-0/+4
|
* fix bip21 parse without amountAdam Soltys2025-02-031-3/+5
|
* fix nostr connectAdam Soltys2025-01-231-3/+8
|
* use nsec if availableAdam Soltys2025-01-221-1/+12
|
* missing variableAdam Soltys2025-01-221-1/+1
|
* notesAdam Soltys2025-01-211-0/+22
|
* nostr routesAdam Soltys2025-01-201-0/+1
|
* allow mint self-paymentsAdam Soltys2025-01-171-0/+1
|
* wrap decrypt in tryAdam Soltys2025-01-171-5/+7
|
* event viewer and zapsAdam Soltys2025-01-161-0/+9
|
* update translationsAdam Soltys2025-01-123-3/+66
|
* nostr signingAdam Soltys2025-01-094-46/+96
|
* nostr signinAdam Soltys2025-01-072-45/+19
|
* scrap key generationAdam Soltys2024-12-301-23/+2
|
* bolt 12Adam Soltys2024-12-191-6/+4
|