aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
* fix localeAdam Soltys2026-02-261-4/+4
|
* ark testsAdam Soltys2026-02-261-10/+109
|
* fix lightning receive redirectAdam Soltys2026-02-252-2/+10
|
* Fix parse matching subdomain addresses as local usersAdam Soltys2026-02-251-1/+1
| | | | Co-Authored-By: Claude Opus 4.6 <[email protected]>
* fix dockerfileAdam Soltys2026-02-241-1/+1
|
* lintAdam Soltys2026-02-246-118/+135
|
* Merge remote-tracking branch 'origin/nip17dm' into ark2Adam Soltys2026-02-242-104/+99
|\ | | | | | | | | | | | | | | | | # Conflicts: # src/lib/nip07.ts # src/lib/nip17.ts # src/locales/en.json # src/locales/fr.json # src/routes/(app)/dm/+page.svelte
| * 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.
* | ark notificationsAdam Soltys2026-02-162-1/+3
| |
* | seed importAdam Soltys2026-02-162-2/+11
| |
* | nostr key derivationAdam Soltys2026-02-162-6/+73
| |
* | passkey tweaksAdam Soltys2026-02-163-5/+123
| |
* | passkey authAdam Soltys2026-02-163-31/+68
| |
* | e2e testsAdam Soltys2026-02-151-2/+62
| |
* | fix custodial bitcoin sendsAdam Soltys2026-02-151-7/+1
| |
* | Create only one event when sending DM to selfAdrien Hopkins2026-02-141-23/+18
| | | | | | | | | | | | | | | | | | | | | | 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.
* | pass nostr key as raw bytesAdam Soltys2026-02-141-6/+7
| |
* | custodial ark sendsAdam Soltys2026-02-141-1/+13
| |
* | ark payment notificationsAdam Soltys2026-02-131-0/+1
| |
* | fix svelte errorsAdam Soltys2026-02-117-19/+18
| |
* | formatAdam Soltys2026-02-1113-213/+61
| |
* | lintingAdam Soltys2026-02-1128-1719/+1880
| |
* | fix ts errorsAdam Soltys2026-02-115-95/+84
| |
* | remove unused importsAdam Soltys2026-02-111-1/+0
| |
* | fix importAdam Soltys2026-02-111-1/+1
| |
* | fix importsAdam Soltys2026-02-113-9/+9
| |
* | Merge branch 'nip17dm' into ark2Adam Soltys2026-02-118-0/+650
|\| | | | | | | | | | | | | | | | | # Conflicts: # .env.sample # .gitignore # src/locales/en.json # src/locales/fr.json # src/routes/(app)/settings/nostr/+page.svelte
| * 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.