You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Encrypting/decrypting with nip44.encrypt and nip44.decrypt fail for NIP-37 draft events.
The same application works with nos2x on Brave (Linux).
When I get the dialogs to confirm usage of my nsec I always clicked "Autorize forever".
encryption: [nos2x-fox:9366] calling nip44.encrypt with {"peer":"0f4795bf31824a414148daf1b589bb8138fb0a03963f984c84462e40a8365abe","plaintext":"{\"created_at\":1735923539,\"content\":\"text content\\n\",\"tags\":[[\"alt\",\"This is a long form article, you can read it in https://pareto.space/a/naddr1qqxnzdenx5unyv3h8qun2wp5qgsq73u4huccyjjpg9yd4ud43xaczw8mpgpev0ucfjzyvtjq4qm940srqsqqqa2gqyv8wumn8ghj7mn0wd68ytnsv9ex2ar09eehqctrv53cqza9\"],[\"client\",\"Pareto\",\"31990:0f479c7dff7bb53dae53f3bb32ad1109edbb07ba562bdd5168044b3f4364e7b5:8020802080208020\",\"wss://nostr.pareto.space\"],[\"d\",\"1735922789584\"],[\"summary\",\"z1\"],[\"title\",\"t1\"],[\"zap\",\"0f4795bf31824a414148daf1b589bb8138fb0a03963f984c84462e40a8365abe\",\"wss://nostr.pareto.space\",\"80\"],[\"zap\",\"0f479c7dff7bb53dae53f3bb32ad1109edbb07ba562bdd5168044b3f4364e7b5\",\"wss://nostr.pareto.space\",\"20\"]],\"kind\":30024,\"pubkey\":\"0f4795bf31824a414148daf1b589bb8138fb0a03963f984c84462e40a8365abe\",\"id\":\"945cbde5ad13fc6116684f8a313671773905816a4911a4aff0a576f29996f988\",\"sig\":\"a773c5fdd6b84fa101a2110bca8fb11f5b554ee64a12ecbad547738b8779a87fedf192d10ed9bbd3f02e8767225c7638363d9841fb741d7df1fed7836f846975\"}"}
decryption:
Which additional information should I provide for reproduction of the issue?
The text was updated successfully, but these errors were encountered:
I tried to encrypt the content you provided in your example (seen on the "plaintext" field in what you pasted) and I found no issues.
Just calling window.nostr.nip04.encrypt(pubkey, plaintext).
That function, in the extension, just calles the nip44 encryption from a library (https://github.com/nbd-wtf/nostr-tools). It does nothing more. If any NIP 44 encryption/decryption works, this should too.
If you can send me a website where I can test it in order to reproduce it perhaps it will help.
Encrypting/decrypting with
nip44.encrypt
andnip44.decrypt
fail for NIP-37 draft events.The same application works with nos2x on Brave (Linux).
When I get the dialogs to confirm usage of my nsec I always clicked "Autorize forever".
encryption:

[nos2x-fox:9366] calling nip44.encrypt with {"peer":"0f4795bf31824a414148daf1b589bb8138fb0a03963f984c84462e40a8365abe","plaintext":"{\"created_at\":1735923539,\"content\":\"text content\\n\",\"tags\":[[\"alt\",\"This is a long form article, you can read it in https://pareto.space/a/naddr1qqxnzdenx5unyv3h8qun2wp5qgsq73u4huccyjjpg9yd4ud43xaczw8mpgpev0ucfjzyvtjq4qm940srqsqqqa2gqyv8wumn8ghj7mn0wd68ytnsv9ex2ar09eehqctrv53cqza9\"],[\"client\",\"Pareto\",\"31990:0f479c7dff7bb53dae53f3bb32ad1109edbb07ba562bdd5168044b3f4364e7b5:8020802080208020\",\"wss://nostr.pareto.space\"],[\"d\",\"1735922789584\"],[\"summary\",\"z1\"],[\"title\",\"t1\"],[\"zap\",\"0f4795bf31824a414148daf1b589bb8138fb0a03963f984c84462e40a8365abe\",\"wss://nostr.pareto.space\",\"80\"],[\"zap\",\"0f479c7dff7bb53dae53f3bb32ad1109edbb07ba562bdd5168044b3f4364e7b5\",\"wss://nostr.pareto.space\",\"20\"]],\"kind\":30024,\"pubkey\":\"0f4795bf31824a414148daf1b589bb8138fb0a03963f984c84462e40a8365abe\",\"id\":\"945cbde5ad13fc6116684f8a313671773905816a4911a4aff0a576f29996f988\",\"sig\":\"a773c5fdd6b84fa101a2110bca8fb11f5b554ee64a12ecbad547738b8779a87fedf192d10ed9bbd3f02e8767225c7638363d9841fb741d7df1fed7836f846975\"}"}
decryption:

Which additional information should I provide for reproduction of the issue?
The text was updated successfully, but these errors were encountered: