Does anyone understand how kind 13 works? I’ve captured a message sent to myself on 0xChat, kind 1059. I then decrypted the content using NIP-44 and the pubkey on the note. The result is a kind 13.

I’ve the attempted to perform the same NIP-44 decryption steps for the content of the kind 13 using the pubkey in the note, but decryption fails.

Burnt a few hours on this. Any ideas? Tried with multiple message and get the same issue. #asknostr #nostrdev

Reply to this note

Please Login to reply.

Discussion

Sorry I don’t used it . So don’t know , hope someone with experienced can answer your questioned . Good luck bro 👊

the kind 13 is encrypted to the pubkey you're sending to AND optionally a second 1059 will have one encrypted to yourself (the receipt basically).

Wonder if that’s what confusing it. Looks like I may have been trying to decrypt the optional one. Looked at others sent to me from other people and they fully decrypt as expected.

heres a command line tester for this kind of thing if it helps..

https://github.com/jeremyd/nip17pipe