private likes, private thread replies, anything

Reply to this note

Please Login to reply.

Discussion

unwrapping is done in the multi-threaded ingester, so it won't have any performance impact

Nice, and how do you handle duplicate events to prevent decrypting them multiple times? Just curious.

I am marking a note flag that says it has already been unwrapped. the giftwraps themselves are stored as well like any other note, so its not processed twice.

we probably don't need to store the wraps. maybe eventually I won't and just add a noteid metadata entry that says they have already been processed

We store just the header of the wraps (empty content) so that if any client decides to tag a wrap (like for reports), we at least know what it is and which inner event it is talking about.

I wonder if i should store the original wrap id in the rumor signature for reference

I do this too. Rumor and seal store the id of the wrap in case the user hits broadcast note, which they I re-download the wrap and send it to his/her DM and public inbox relays. Wrap and seal store the id of the inner note so that I can set the relay list that has each chat message without having to decrypt them all the time.

i decided to add the pubkey that unwraps the giftwrap to the rumor signature as well, since we'll want to be able to filter this locally for multi account

I’m really excited! Can 0xChat private notes interoperate with Damus?

nostr:nevent1qqsx9tcp96qths5kfkk49ma5kcna4r44eclng009fyv6gdld5828xuqpp4mhxue69uhkummn9ekx7mq6fkzu6

very excited about this. will this come with salt and 2fa support for added security?

not sure what you mean