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.
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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Since 1.0.0 every
window.nostr.nip44.encrypt/decryptcall fails withexpected Uint8Array, got type=string, which breaks NIP-17 DMs and anything else using NIP-44 on sites that use the extension.private_keyis stored as hex, and nostr-tools 2.23 (noble-curves v2) no longer accepts hex strings ingetConversationKey.signEventandgetPublicKeyalready convert withhexToBytes(sk); this does the same ingetSharedSecret.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 runpasses (50 tests), biome is clean, and abuild.js prod firefoxbundle encrypts where the published 1.0.0 throws.thank for your contributation