Giftwrap DM is coming to damus
nostr:nevent1qvzqqqqqqypzqvhpsfmr23gwhv795lgjc8uw0v44z3pe4sg2vlh08k0an3wx3cj9qqsrdwuf3r026ss4sul4txjns72ahyaamt3fu8en7caevgrqngmn40cm74y7r
Login to reply
Replies (12)
giftwrap everything is coming to damus! fully queryable giftwrapped notes. will unlock so many things
Cool, so we’ll have private notes?
private likes, private thread replies, anything
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
very excited about this. will this come with salt and 2fa support for added security?
not sure what you mean
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

