| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
| | |
|
| | |
|
| |\
| |
| |
| |
| |
| |
| |
| |
| | |
# Conflicts:
# src/lib/nip07.ts
# src/lib/nip17.ts
# src/locales/en.json
# src/locales/fr.json
# src/routes/(app)/dm/+page.svelte
|
| | |
| |
| |
| | |
This fixes a problem that occurs with muting users using secret keys.
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| |
| | |
Given that this is for all recipients combined,
2^16 is much more reasonable than 2^8.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| |
| | |
Given that this is for all recipients combined,
2^16 is much more reasonable than 2^8.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |\|
| |
| |
| |
| |
| |
| |
| |
| | |
# Conflicts:
# .env.sample
# .gitignore
# src/locales/en.json
# src/locales/fr.json
# src/routes/(app)/settings/nostr/+page.svelte
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 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]>
|
| | | |
|
| | |
| |
| |
| |
| | |
This is a helper method & isn't used anywhere else. It should have
never been exported.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
I will be using some of this elsewhere, so it really should be there.
|
| | |
| |
| |
| |
| |
| | |
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.
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| | |
This makes the system work with any nostr extensions you might be using.
|
| | |
| |
| |
| | |
This is based on an audited NIP-44 implementation.
|
| | | |
|