chad.curtis and reya
67d6e26093
fix: convert the stored hex key to bytes before nip44 getConversationKey ( #1 )
...
Since 1.0.0 every `window.nostr.nip44.encrypt`/`decrypt` call fails with `expected Uint8Array, got type=string`, which breaks NIP-17 DMs and anything else using NIP-44 on sites that use the extension.
`private_key` is stored as hex, and nostr-tools 2.23 (noble-curves v2) no longer accepts hex strings in `getConversationKey`. `signEvent` and `getPublicKey` already convert with `hexToBytes(sk)`; this does the same in `getSharedSecret`.
Also adds NIP-44 tests (hex key rejected, converted key round-trips with a peer) in place of the note saying NIP-44 was only covered by the build. `vitest run` passes (50 tests), biome is clean, and a `build.js prod firefox` bundle encrypts where the published 1.0.0 throws.
Reviewed-on: #1
Co-authored-by: Chad Curtis <chad@chadwick.site >
2026-10-16 00:37:09 +00:00
Ren Amamiya
4050afe93f
fix: production build
2026-04-08 12:57:04 +07:00
Ren Amamiya
72b9dcddc1
feat: add support for nip44
2026-04-08 11:54:00 +07:00
Ren Amamiya
387796faa3
chore: format and lint
2026-04-08 11:28:39 +07:00
Ren Amamiya
5b7b06ff5d
chore: revert last 3 commits
2026-04-08 10:35:58 +07:00
reya
a1d87bcd74
wip: update
2024-12-22 07:35:25 +07:00
reya
0bb9976497
add support for firefox android
2023-11-26 08:33:30 +07:00
reya
9f8df79be3
update icons and increase popup size
2023-11-21 10:04:38 +07:00
fiatjaf
282d730ff4
ensure new permissions are saved before releasing mutex.
2023-06-11 11:15:18 -03:00
fiatjaf
6938503893
fix handling popup closed.
2023-06-11 11:15:04 -03:00
fiatjaf
7117187e2c
fix notifications for people who haven't allowed them.
2023-06-11 10:06:22 -03:00
fiatjaf
f9ee7fe013
fix allow notification icon.
2023-06-11 09:43:42 -03:00
fiatjaf
b62d044b0a
show notifications when a request is denied or accepted.
2023-06-11 09:07:24 -03:00
fiatjaf
f42174b1cb
use nostr-tools's getSignature instead of signEvent.
2023-06-10 22:27:48 -03:00
fiatjaf
0b1d849f19
rework permissions and popup prompts, make each permission fine grained.
2023-06-10 22:26:51 -03:00
fiatjaf
4759ce6d36
remove nip26.
...
https://fiatjaf.com/4c79fd7b.html
2023-06-09 16:24:04 -03:00
pablof7z and fiatjaf_
e96683d235
add nip-26 support
2023-03-15 12:19:00 -03:00
Fernando López Guevara and fiatjaf_
185ee772e1
fix(background): nostr-tools doesn't export nip04 file
2023-02-28 12:08:44 -03:00
fiatjaf
9817ce90a6
fix error message for invalid event.
2023-01-14 15:47:11 -03:00
fiatjaf
bdcf19ecef
nostr: link replacing.
...
this commit also includes (unrelated) naïvely hiding the private key and displaying on blur/focus.
2023-01-05 22:48:54 -03:00
fiatjaf
6911f4b25b
Revert "get rid of polyfill since this is just chrome anyway."
...
This reverts commit a935a8c026 .
2022-12-18 14:42:37 -03:00
fiatjaf and fiatjaf
a935a8c026
get rid of polyfill since this is just chrome anyway.
2022-12-18 07:42:54 -03:00
fiatjaf and fiatjaf
546a6d35ef
open options when the extension is loaded.
2022-12-18 07:42:54 -03:00
SondreB and fiatjaf
43f4ee2785
Handle dismissal of extension prompt
...
- When user dismissed the window without choosing any option, it will now gracefully handle it.
- This has only been tested on Chromium.
- Closes #6
2022-07-25 13:19:23 -03:00
fiatjaf
64c12c2286
use a mutex to prevent multiple prompts from opening in loop.
2022-02-16 14:00:14 -03:00
fiatjaf
cce7cd00f9
change interface so signEvent() returns the full event with pubkey, sig and id.
2022-02-16 06:41:20 -03:00
fiatjaf
56cb50950f
update nostr-tools and remove Buffer calls.
2022-02-15 19:54:36 -03:00
fiatjaf
259a37d4d7
add interface for getRelays() and bump version.
2022-02-15 16:15:27 -03:00
fiatjaf
643a0b759e
return from onMessageExternal.
2022-02-15 14:08:44 -03:00
fiatjaf
d93f66675a
handle messages from other extensions.
2022-02-14 21:17:19 -03:00
fiatjaf
3eba55a80d
display params for immediate action on prompt window.
2022-02-14 21:15:55 -03:00
fiatjaf
4da894dea5
nip04.encrypt and nip04.decrypt.
2022-01-25 20:16:56 -03:00
fiatjaf
db20f0c370
working v1.
2022-01-14 09:54:14 -03:00
fiatjaf
0d38bc7eb3
a thousand fixes and now signEvent and getPublic are fully working.
2022-01-10 21:18:55 -03:00
fiatjaf
88a2dd806d
basic functionality, untested.
2022-01-10 14:11:49 -03:00
fiatjaf
853a2b304b
skeleton.
2022-01-09 21:30:15 -03:00